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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/fullscreen/fullscreen_exit_bubble.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_EXIT_BUBBLE_H_ 5 #ifndef CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_EXIT_BUBBLE_H_
6 #define CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_EXIT_BUBBLE_H_ 6 #define CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_EXIT_BUBBLE_H_
7 7
8 #include "base/timer.h" 8 #include "base/timer.h"
9 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" 9 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Hides the bubble. This is a separate function so it can be called by a 50 // Hides the bubble. This is a separate function so it can be called by a
51 // timer. 51 // timer.
52 virtual void Hide() = 0; 52 virtual void Hide() = 0;
53 53
54 // Shows the bubble. 54 // Shows the bubble.
55 virtual void Show() = 0; 55 virtual void Show() = 0;
56 56
57 virtual bool IsAnimating() = 0; 57 virtual bool IsAnimating() = 0;
58 58
59 // True if the mouse position can trigger sliding in the exit fullscreen
60 // bubble when the bubble is hidden.
61 virtual bool CanMouseTriggerSlideIn() const = 0;
62
63 void StartWatchingMouse();
64 void StopWatchingMouse();
65 bool IsWatchingMouse() const;
66
59 // Called repeatedly to get the current mouse position and animate the bubble 67 // Called repeatedly to get the current mouse position and animate the bubble
60 // on or off the screen as appropriate. 68 // on or off the screen as appropriate.
61 void CheckMousePosition(); 69 void CheckMousePosition();
62 70
63 void StartWatchingMouse();
64 void StopWatchingMouse();
65
66 void ToggleFullscreen(); 71 void ToggleFullscreen();
67 // Accepts the request. Can cause FullscreenExitBubble to be deleted. 72 // Accepts the request. Can cause FullscreenExitBubble to be deleted.
68 void Accept(); 73 void Accept();
69 // Denys the request. Can cause FullscreenExitBubble to be deleted. 74 // Denys the request. Can cause FullscreenExitBubble to be deleted.
70 void Cancel(); 75 void Cancel();
71 76
72 // The following strings may change according to the content type and URL. 77 // The following strings may change according to the content type and URL.
73 string16 GetCurrentMessageText() const; 78 string16 GetCurrentMessageText() const;
74 string16 GetCurrentDenyButtonText() const; 79 string16 GetCurrentDenyButtonText() const;
75 80
(...skipping 25 matching lines...) Expand all
101 base::RepeatingTimer<FullscreenExitBubble> mouse_position_checker_; 106 base::RepeatingTimer<FullscreenExitBubble> mouse_position_checker_;
102 107
103 // The most recently seen mouse position, in screen coordinates. Used to see 108 // The most recently seen mouse position, in screen coordinates. Used to see
104 // if the mouse has moved since our last check. 109 // if the mouse has moved since our last check.
105 gfx::Point last_mouse_pos_; 110 gfx::Point last_mouse_pos_;
106 111
107 DISALLOW_COPY_AND_ASSIGN(FullscreenExitBubble); 112 DISALLOW_COPY_AND_ASSIGN(FullscreenExitBubble);
108 }; 113 };
109 114
110 #endif // CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_EXIT_BUBBLE_H_ 115 #endif // CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_EXIT_BUBBLE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/fullscreen/fullscreen_exit_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698