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_CONSTRAINED_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 ConstrainedWindowGtk(content::WebContents* web_contents, | 53 ConstrainedWindowGtk(content::WebContents* web_contents, |
54 ConstrainedWindowGtkDelegate* delegate); | 54 ConstrainedWindowGtkDelegate* delegate); |
55 virtual ~ConstrainedWindowGtk(); | 55 virtual ~ConstrainedWindowGtk(); |
56 | 56 |
57 // Overridden from WebContentsModalDialog: | 57 // Overridden from WebContentsModalDialog: |
58 virtual void ShowWebContentsModalDialog() OVERRIDE; | 58 virtual void ShowWebContentsModalDialog() OVERRIDE; |
59 virtual void CloseWebContentsModalDialog() OVERRIDE; | 59 virtual void CloseWebContentsModalDialog() OVERRIDE; |
60 virtual void FocusWebContentsModalDialog() OVERRIDE; | 60 virtual void FocusWebContentsModalDialog() OVERRIDE; |
61 virtual void PulseWebContentsModalDialog() OVERRIDE; | 61 virtual void PulseWebContentsModalDialog() OVERRIDE; |
62 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; | 62 virtual gfx::NativeView GetNativeView() OVERRIDE; |
63 | 63 |
64 // Called when the result of GetBackgroundColor may have changed. | 64 // Called when the result of GetBackgroundColor may have changed. |
65 void BackgroundColorChanged(); | 65 void BackgroundColorChanged(); |
66 | 66 |
67 // Returns the WebContents that constrains this Constrained Window. | 67 // Returns the WebContents that constrains this Constrained Window. |
68 content::WebContents* owner() const { return web_contents_; } | 68 content::WebContents* owner() const { return web_contents_; } |
69 | 69 |
70 // Returns the toplevel widget that displays this "window". | 70 // Returns the toplevel widget that displays this "window". |
71 GtkWidget* widget() { return border_.get(); } | 71 GtkWidget* widget() { return border_.get(); } |
72 | 72 |
(...skipping 20 matching lines...) Expand all Loading... |
93 | 93 |
94 // Stores if |ShowWebContentsModalDialog()| has been called. | 94 // Stores if |ShowWebContentsModalDialog()| has been called. |
95 bool visible_; | 95 bool visible_; |
96 | 96 |
97 base::WeakPtrFactory<ConstrainedWindowGtk> weak_factory_; | 97 base::WeakPtrFactory<ConstrainedWindowGtk> weak_factory_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowGtk); | 99 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowGtk); |
100 }; | 100 }; |
101 | 101 |
102 #endif // CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ | 102 #endif // CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ |
OLD | NEW |