Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2392)

Unified Diff: ash/common/wm/immersive_revealed_lock.h

Issue 2265563002: Shuffles around immersive related classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@immersive_pure_virtual
Patch Set: move comment Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/wm/immersive_context_ash.cc ('k') | ash/common/wm/immersive_revealed_lock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/immersive_revealed_lock.h
diff --git a/ash/common/wm/immersive_revealed_lock.h b/ash/common/wm/immersive_revealed_lock.h
deleted file mode 100644
index 251879b24902a63a35b9910157c9a877d539377f..0000000000000000000000000000000000000000
--- a/ash/common/wm/immersive_revealed_lock.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_COMMON_WM_IMMERSIVE_REVEALED_LOCK_H_
-#define ASH_COMMON_WM_IMMERSIVE_REVEALED_LOCK_H_
-
-#include "ash/ash_export.h"
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-
-namespace ash {
-
-// Class which keeps the top-of-window views revealed for the duration of its
-// lifetime. If acquiring the lock causes a reveal, the top-of-window views
-// will animate according to the |animate_reveal| parameter passed in the
-// constructor. See ImmersiveFullscreenController::GetRevealedLock() for more
-// details.
-class ASH_EXPORT ImmersiveRevealedLock {
- public:
- class ASH_EXPORT Delegate {
- public:
- enum AnimateReveal { ANIMATE_REVEAL_YES, ANIMATE_REVEAL_NO };
-
- virtual void LockRevealedState(AnimateReveal animate_reveal) = 0;
- virtual void UnlockRevealedState() = 0;
-
- protected:
- virtual ~Delegate() {}
- };
-
- ImmersiveRevealedLock(const base::WeakPtr<Delegate>& delegate,
- Delegate::AnimateReveal animate_reveal);
- ~ImmersiveRevealedLock();
-
- private:
- base::WeakPtr<Delegate> delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(ImmersiveRevealedLock);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_WM_IMMERSIVE_REVEALED_LOCK_H_
« no previous file with comments | « ash/common/wm/immersive_context_ash.cc ('k') | ash/common/wm/immersive_revealed_lock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698