OLD | NEW |
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_GTK_FULLSCREEN_EXIT_BUBBLE_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_FULLSCREEN_EXIT_BUBBLE_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_FULLSCREEN_EXIT_BUBBLE_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_FULLSCREEN_EXIT_BUBBLE_GTK_H_ |
7 | 7 |
8 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble.h" | 8 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble.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 "chrome/browser/ui/gtk/slide_animator_gtk.h" | 10 #include "chrome/browser/ui/gtk/slide_animator_gtk.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 FullscreenExitBubbleType bubble_type); | 35 FullscreenExitBubbleType bubble_type); |
36 protected: | 36 protected: |
37 // FullScreenExitBubble | 37 // FullScreenExitBubble |
38 virtual gfx::Rect GetPopupRect(bool ignore_animation_state) const OVERRIDE; | 38 virtual gfx::Rect GetPopupRect(bool ignore_animation_state) const OVERRIDE; |
39 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; | 39 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; |
40 virtual bool WindowContainsPoint(gfx::Point pos) OVERRIDE; | 40 virtual bool WindowContainsPoint(gfx::Point pos) OVERRIDE; |
41 virtual bool IsWindowActive() OVERRIDE; | 41 virtual bool IsWindowActive() OVERRIDE; |
42 virtual void Hide() OVERRIDE; | 42 virtual void Hide() OVERRIDE; |
43 virtual void Show() OVERRIDE; | 43 virtual void Show() OVERRIDE; |
44 virtual bool IsAnimating() OVERRIDE; | 44 virtual bool IsAnimating() OVERRIDE; |
| 45 virtual bool CanMouseTriggerSlideIn() const OVERRIDE; |
45 | 46 |
46 private: | 47 private: |
47 void InitWidgets(); | 48 void InitWidgets(); |
48 std::string GetMessage(const GURL& url); | 49 std::string GetMessage(const GURL& url); |
49 void StartWatchingMouseIfNecessary(); | 50 void StartWatchingMouseIfNecessary(); |
50 | 51 |
51 GtkWidget* widget() const { | 52 GtkWidget* widget() const { |
52 return slide_widget_->widget(); | 53 return slide_widget_->widget(); |
53 } | 54 } |
54 | 55 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 base::OneShotTimer<FullscreenExitBubbleGtk> initial_delay_; | 87 base::OneShotTimer<FullscreenExitBubbleGtk> initial_delay_; |
87 | 88 |
88 ui::GtkSignalRegistrar signals_; | 89 ui::GtkSignalRegistrar signals_; |
89 | 90 |
90 content::NotificationRegistrar registrar_; | 91 content::NotificationRegistrar registrar_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(FullscreenExitBubbleGtk); | 93 DISALLOW_COPY_AND_ASSIGN(FullscreenExitBubbleGtk); |
93 }; | 94 }; |
94 | 95 |
95 #endif // CHROME_BROWSER_UI_GTK_FULLSCREEN_EXIT_BUBBLE_GTK_H_ | 96 #endif // CHROME_BROWSER_UI_GTK_FULLSCREEN_EXIT_BUBBLE_GTK_H_ |
OLD | NEW |