1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25

ash / public / cpp / system / scoped_nudge_pause.h [blame]

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_PUBLIC_CPP_SYSTEM_SCOPED_NUDGE_PAUSE_H_
#define ASH_PUBLIC_CPP_SYSTEM_SCOPED_NUDGE_PAUSE_H_

#include "ash/public/cpp/ash_public_export.h"

namespace ash {

// An object that pauses both anchored nudge and system nudge for its lifetime.
// TODO(b/295378782): Move this class to `AnchoredNudgeManager` once complete
// migrating all nudges to `AnchoredNudgeManager`.
class ASH_PUBLIC_EXPORT ScopedNudgePause {
 public:
  ScopedNudgePause();
  ScopedNudgePause(const ScopedNudgePause&) = delete;
  ScopedNudgePause& operator=(const ScopedNudgePause&) = delete;
  ~ScopedNudgePause();
};

}  // namespace ash

#endif  // ASH_PUBLIC_CPP_SYSTEM_SCOPED_NUDGE_PAUSE_H_