OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 VIEWS_WIDGET_WIDGET_H_ | 5 #ifndef VIEWS_WIDGET_WIDGET_H_ |
6 #define VIEWS_WIDGET_WIDGET_H_ | 6 #define VIEWS_WIDGET_WIDGET_H_ |
7 | 7 |
8 #include "base/gfx/native_widget_types.h" | 8 #include "base/gfx/native_widget_types.h" |
9 | 9 |
10 class ThemeProvider; | 10 class ThemeProvider; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 Accelerator* accelerator) = 0; | 97 Accelerator* accelerator) = 0; |
98 | 98 |
99 // Returns the Window containing this Widget, or NULL if not contained in a | 99 // Returns the Window containing this Widget, or NULL if not contained in a |
100 // window. | 100 // window. |
101 virtual Window* GetWindow() { return NULL; } | 101 virtual Window* GetWindow() { return NULL; } |
102 virtual const Window* GetWindow() const { return NULL; } | 102 virtual const Window* GetWindow() const { return NULL; } |
103 | 103 |
104 // Get the theme provider. | 104 // Get the theme provider. |
105 virtual ThemeProvider* GetThemeProvider() const { return NULL; } | 105 virtual ThemeProvider* GetThemeProvider() const { return NULL; } |
106 | 106 |
107 // Get the dialog theme provider; this is necessary for when a dialog has | 107 // Get the default theme provider; this is necessary for when a widget has |
108 // no profile (and ThemeProvider) associated with it. The dialog theme | 108 // no profile (and ThemeProvider) associated with it. The default theme |
109 // provider provides a default set of bitmaps that such dialogs can use. | 109 // provider provides a default set of bitmaps that such widgets can use. |
110 virtual ThemeProvider* GetDialogThemeProvider() { return NULL; } | 110 virtual ThemeProvider* GetDefaultThemeProvider() { return NULL; } |
111 }; | 111 }; |
112 | 112 |
113 } // namespace views | 113 } // namespace views |
114 | 114 |
115 #endif // VIEWS_WIDGET_WIDGET_H_ | 115 #endif // VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |