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

Unified Diff: ash/wm/immersive_revealed_lock.cc

Issue 48963002: [Refactor] Move the non-browser specific logic of ImmersiveModeControllerAsh into ash part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/wm/immersive_revealed_lock.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/immersive_revealed_lock.cc
diff --git a/ash/wm/immersive_revealed_lock.cc b/ash/wm/immersive_revealed_lock.cc
new file mode 100644
index 0000000000000000000000000000000000000000..052c213179075108f7e61f089f70d09e1078a400
--- /dev/null
+++ b/ash/wm/immersive_revealed_lock.cc
@@ -0,0 +1,21 @@
+// 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.
+
+#include "ash/wm/immersive_revealed_lock.h"
+
+namespace ash {
+
+ImmersiveRevealedLock::ImmersiveRevealedLock(
+ const base::WeakPtr<Delegate>& delegate,
+ Delegate::AnimateReveal animate_reveal)
+ : delegate_(delegate) {
+ delegate_->LockRevealedState(animate_reveal);
+}
+
+ImmersiveRevealedLock::~ImmersiveRevealedLock() {
+ if (delegate_)
+ delegate_->UnlockRevealedState();
+}
+
+} // namespace ash
« no previous file with comments | « ash/wm/immersive_revealed_lock.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698