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

Side by Side Diff: chrome/browser/ui/views/fullscreen_exit_bubble_views.h

Issue 7740044: Implement fullscreen info bubble on Win and Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_VIEWS_FULLSCREEN_EXIT_BUBBLE_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FULLSCREEN_EXIT_BUBBLE_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_FULLSCREEN_EXIT_BUBBLE_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FULLSCREEN_EXIT_BUBBLE_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/fullscreen_exit_bubble.h" 10 #include "chrome/browser/ui/fullscreen_exit_bubble.h"
11 #include "googleurl/src/gurl.h"
11 #include "views/controls/link_listener.h" 12 #include "views/controls/link_listener.h"
12 13
13 namespace views { 14 namespace views {
14 class View; 15 class View;
15 class Widget; 16 class Widget;
16 } 17 }
17 18
18 // FullscreenExitBubbleViews is responsible for showing a bubble atop the 19 // FullscreenExitBubbleViews is responsible for showing a bubble atop the
19 // screen in fullscreen mode, telling users how to exit and providing a click 20 // screen in fullscreen mode, telling users how to exit and providing a click
20 // target. The bubble auto-hides, and re-shows when the user moves to the 21 // target. The bubble auto-hides, and re-shows when the user moves to the
21 // screen top. 22 // screen top.
22 class FullscreenExitBubbleViews : public views::LinkListener, 23 class FullscreenExitBubbleViews : public views::LinkListener,
23 public FullscreenExitBubble { 24 public FullscreenExitBubble {
24 public: 25 public:
25 FullscreenExitBubbleViews( 26 FullscreenExitBubbleViews(views::Widget* frame,
26 views::Widget* frame, 27 Browser* browser,
27 CommandUpdater::CommandUpdaterDelegate* delegate); 28 const GURL& url,
29 bool ask_permission);
28 virtual ~FullscreenExitBubbleViews(); 30 virtual ~FullscreenExitBubbleViews();
29 31
32 void OnAcceptFullscreen();
33 void OnCancelFullscreen();
34
30 protected: 35 protected:
31 // FullScreenExitBubble 36 // FullScreenExitBubble
32 virtual gfx::Rect GetPopupRect(bool ignore_animation_state) const OVERRIDE; 37 virtual gfx::Rect GetPopupRect(bool ignore_animation_state) const OVERRIDE;
33 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; 38 virtual gfx::Point GetCursorScreenPoint() OVERRIDE;
34 virtual bool WindowContainsPoint(gfx::Point pos) OVERRIDE; 39 virtual bool WindowContainsPoint(gfx::Point pos) OVERRIDE;
35 virtual bool IsWindowActive() OVERRIDE; 40 virtual bool IsWindowActive() OVERRIDE;
36 virtual void Hide() OVERRIDE; 41 virtual void Hide() OVERRIDE;
37 virtual void Show() OVERRIDE; 42 virtual void Show() OVERRIDE;
38 virtual bool IsAnimating() OVERRIDE; 43 virtual bool IsAnimating() OVERRIDE;
39 44
(...skipping 11 matching lines...) Expand all
51 // Animation controlling sliding into/out of the top of the screen. 56 // Animation controlling sliding into/out of the top of the screen.
52 scoped_ptr<ui::SlideAnimation> size_animation_; 57 scoped_ptr<ui::SlideAnimation> size_animation_;
53 58
54 // ui::AnimationDelegate: 59 // ui::AnimationDelegate:
55 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 60 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
56 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; 61 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
57 62
58 // The contents of the popup. 63 // The contents of the popup.
59 FullscreenExitView* view_; 64 FullscreenExitView* view_;
60 65
66 const GURL url_;
67
61 DISALLOW_COPY_AND_ASSIGN(FullscreenExitBubbleViews); 68 DISALLOW_COPY_AND_ASSIGN(FullscreenExitBubbleViews);
62 }; 69 };
63 70
64 #endif // CHROME_BROWSER_UI_VIEWS_FULLSCREEN_EXIT_BUBBLE_VIEWS_H_ 71 #endif // CHROME_BROWSER_UI_VIEWS_FULLSCREEN_EXIT_BUBBLE_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/fullscreen_exit_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698