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

Unified Diff: chrome/browser/ui/views/frame/immersive_mode_controller_ash.h

Issue 22238003: Keep the top-of-window views revealed when clicking on the top-of-window views with a bubble open (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « no previous file | chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/immersive_mode_controller_ash.h
diff --git a/chrome/browser/ui/views/frame/immersive_mode_controller_ash.h b/chrome/browser/ui/views/frame/immersive_mode_controller_ash.h
index 482c5b2a364f7a748fddc7522285656272b40b51..c904f05f6d25898455f725f2fafd740e1b08d284 100644
--- a/chrome/browser/ui/views/frame/immersive_mode_controller_ash.h
+++ b/chrome/browser/ui/views/frame/immersive_mode_controller_ash.h
@@ -118,6 +118,10 @@ class ImmersiveModeControllerAsh : public ImmersiveModeController,
private:
friend class ImmersiveModeControllerAshTest;
+ enum AllowRevealWhileClosing {
+ ALLOW_REVEAL_WHILE_CLOSING_YES,
+ ALLOW_REVEAL_WHILE_CLOSING_NO
+ };
enum Animate {
ANIMATE_NO,
ANIMATE_SLOW,
@@ -156,7 +160,12 @@ class ImmersiveModeControllerAsh : public ImmersiveModeController,
// Updates |located_event_revealed_lock_| based on the current mouse state and
// the current touch state.
// |event| is NULL if the source event is not known.
- void UpdateLocatedEventRevealedLock(ui::LocatedEvent* event);
+ // |allow_reveal_while_closing| indicates whether the mouse and touch
+ // are allowed to initiate a reveal while the top-of-window views are sliding
+ // closed.
+ void UpdateLocatedEventRevealedLock(
+ ui::LocatedEvent* event,
+ AllowRevealWhileClosing allow_reveal_while_closing);
// Acquires |located_event_revealed_lock_| if it is not already held.
void AcquireLocatedEventRevealedLock();
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698