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

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

Issue 7740044: Implement fullscreen info bubble on Win and Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win work Created 9 years, 2 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_exit_bubble.h
diff --git a/chrome/browser/ui/fullscreen_exit_bubble.h b/chrome/browser/ui/fullscreen_exit_bubble.h
index 0f2c14c094ad1e9aa38c42c22b3d9a90943ede7c..1d1aba585b1c359422391486702f184505ff2a69 100644
--- a/chrome/browser/ui/fullscreen_exit_bubble.h
+++ b/chrome/browser/ui/fullscreen_exit_bubble.h
@@ -9,9 +9,12 @@
#include "base/memory/scoped_ptr.h"
#include "base/timer.h"
#include "chrome/browser/command_updater.h"
+#include "googleurl/src/gurl.h"
#include "ui/base/animation/animation_delegate.h"
#include "ui/gfx/point.h"
+class Browser;
+
namespace ui {
class SlideAnimation;
}
@@ -22,8 +25,7 @@ class Rect;
class FullscreenExitBubble : public ui::AnimationDelegate {
public:
- explicit FullscreenExitBubble(
- CommandUpdater::CommandUpdaterDelegate* delegate);
+ explicit FullscreenExitBubble(Browser* browser);
virtual ~FullscreenExitBubble();
protected:
@@ -66,11 +68,14 @@ class FullscreenExitBubble : public ui::AnimationDelegate {
void ToggleFullscreen();
- private:
- // Someone who can toggle fullscreen mode on and off when the user requests
- // it.
- CommandUpdater::CommandUpdaterDelegate* delegate_;
+ void AcceptFullscreen(const GURL& url);
+
+ void CancelFullscreen();
+ // The browser this bubble is in.
+ Browser* browser_;
+
+ private:
// Timer to delay before allowing the bubble to hide after it's initially
// shown.
base::OneShotTimer<FullscreenExitBubble> initial_delay_;

Powered by Google App Engine
This is Rietveld 408576698