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

Unified Diff: chrome/browser/ui/fullscreen/fullscreen_exit_bubble.h

Issue 13866033: Animate the fullscreen exit bubble's opacity instead of its bounds when in immersive fullscreen (Closed) Base URL: http://git.chromium.org/chromium/src.git@exit_bubble
Patch Set: Created 7 years, 8 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
Index: chrome/browser/ui/fullscreen/fullscreen_exit_bubble.h
diff --git a/chrome/browser/ui/fullscreen/fullscreen_exit_bubble.h b/chrome/browser/ui/fullscreen/fullscreen_exit_bubble.h
index 6bb80827a2b7c52c75cf6722bd32d9a5df0dd761..da20148a27ae56635b312dbbe41f9bbfbf0d2588 100644
--- a/chrome/browser/ui/fullscreen/fullscreen_exit_bubble.h
+++ b/chrome/browser/ui/fullscreen/fullscreen_exit_bubble.h
@@ -56,12 +56,17 @@ class FullscreenExitBubble : public ui::AnimationDelegate {
virtual bool IsAnimating() = 0;
- // Called repeatedly to get the current mouse position and animate the bubble
- // on or off the screen as appropriate.
- void CheckMousePosition();
+ // True if the mouse position can trigger sliding in the exit fullscreen
+ // bubble when the bubble is hidden.
+ virtual bool CanMouseTriggerSlideIn() const = 0;
void StartWatchingMouse();
void StopWatchingMouse();
+ bool IsWatchingMouse() const;
+
+ // Called repeatedly to get the current mouse position and animate the bubble
+ // on or off the screen as appropriate.
+ void CheckMousePosition();
void ToggleFullscreen();
// Accepts the request. Can cause FullscreenExitBubble to be deleted.

Powered by Google App Engine
This is Rietveld 408576698