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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 ConstrainedWindowGtk(content::WebContents* web_contents, | 52 ConstrainedWindowGtk(content::WebContents* web_contents, |
53 ConstrainedWindowGtkDelegate* delegate); | 53 ConstrainedWindowGtkDelegate* delegate); |
54 virtual ~ConstrainedWindowGtk(); | 54 virtual ~ConstrainedWindowGtk(); |
55 | 55 |
56 // Overridden from ConstrainedWindow: | 56 // Overridden from ConstrainedWindow: |
57 virtual void ShowConstrainedWindow() OVERRIDE; | 57 virtual void ShowConstrainedWindow() OVERRIDE; |
58 virtual void CloseConstrainedWindow() OVERRIDE; | 58 virtual void CloseConstrainedWindow() OVERRIDE; |
59 virtual void FocusConstrainedWindow() OVERRIDE; | 59 virtual void FocusConstrainedWindow() OVERRIDE; |
60 | 60 |
| 61 // Called when the result of GetBackgroundColor may have changed. |
| 62 void BackgroundColorChanged(); |
| 63 |
61 // Returns the WebContents that constrains this Constrained Window. | 64 // Returns the WebContents that constrains this Constrained Window. |
62 content::WebContents* owner() const { return web_contents_; } | 65 content::WebContents* owner() const { return web_contents_; } |
63 | 66 |
64 // Returns the toplevel widget that displays this "window". | 67 // Returns the toplevel widget that displays this "window". |
65 GtkWidget* widget() { return border_.get(); } | 68 GtkWidget* widget() { return border_.get(); } |
66 | 69 |
67 // Returns the View that we collaborate with to position ourselves. | 70 // Returns the View that we collaborate with to position ourselves. |
68 TabContentsViewType* ContainingView(); | 71 TabContentsViewType* ContainingView(); |
69 | 72 |
70 private: | 73 private: |
(...skipping 16 matching lines...) Expand all Loading... |
87 | 90 |
88 // Stores if |ShowConstrainedWindow()| has been called. | 91 // Stores if |ShowConstrainedWindow()| has been called. |
89 bool visible_; | 92 bool visible_; |
90 | 93 |
91 base::WeakPtrFactory<ConstrainedWindowGtk> weak_factory_; | 94 base::WeakPtrFactory<ConstrainedWindowGtk> weak_factory_; |
92 | 95 |
93 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowGtk); | 96 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowGtk); |
94 }; | 97 }; |
95 | 98 |
96 #endif // CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ | 99 #endif // CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ |
OLD | NEW |