OLD | NEW |
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_FULLSCREEN_EXIT_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_UI_FULLSCREEN_EXIT_BUBBLE_H_ |
6 #define CHROME_BROWSER_UI_FULLSCREEN_EXIT_BUBBLE_H_ | 6 #define CHROME_BROWSER_UI_FULLSCREEN_EXIT_BUBBLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/timer.h" | 10 #include "base/timer.h" |
11 #include "chrome/browser/command_updater.h" | 11 #include "chrome/browser/command_updater.h" |
12 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" | 12 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "ui/base/animation/animation_delegate.h" | 14 #include "ui/base/animation/animation_delegate.h" |
15 #include "ui/gfx/point.h" | 15 #include "ui/gfx/point.h" |
16 | 16 |
17 class Browser; | 17 class Browser; |
18 | 18 |
19 namespace ui { | |
20 class SlideAnimation; | |
21 } | |
22 | |
23 namespace gfx { | 19 namespace gfx { |
24 class Rect; | 20 class Rect; |
25 } | 21 } |
26 | 22 |
27 class FullscreenExitBubble : public ui::AnimationDelegate { | 23 class FullscreenExitBubble : public ui::AnimationDelegate { |
28 public: | 24 public: |
29 explicit FullscreenExitBubble(Browser* browser, | 25 explicit FullscreenExitBubble(Browser* browser, |
30 const GURL& url, | 26 const GURL& url, |
31 FullscreenExitBubbleType bubble_type); | 27 FullscreenExitBubbleType bubble_type); |
32 virtual ~FullscreenExitBubble(); | 28 virtual ~FullscreenExitBubble(); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 101 |
106 protected: | 102 protected: |
107 // The host the bubble is for, can be empty. | 103 // The host the bubble is for, can be empty. |
108 GURL url_; | 104 GURL url_; |
109 | 105 |
110 // The type of the bubble; controls e.g. which buttons to show. | 106 // The type of the bubble; controls e.g. which buttons to show. |
111 FullscreenExitBubbleType bubble_type_; | 107 FullscreenExitBubbleType bubble_type_; |
112 }; | 108 }; |
113 | 109 |
114 #endif // CHROME_BROWSER_UI_FULLSCREEN_EXIT_BUBBLE_H_ | 110 #endif // CHROME_BROWSER_UI_FULLSCREEN_EXIT_BUBBLE_H_ |
OLD | NEW |