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(); |