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