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 UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "ui/base/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Centers the window and sizes it to the specified size. | 145 // Centers the window and sizes it to the specified size. |
146 virtual void CenterWindow(const gfx::Size& size) = 0; | 146 virtual void CenterWindow(const gfx::Size& size) = 0; |
147 | 147 |
148 // Retrieves the window's current restored bounds and "show" state, for | 148 // Retrieves the window's current restored bounds and "show" state, for |
149 // persisting. | 149 // persisting. |
150 virtual void GetWindowPlacement( | 150 virtual void GetWindowPlacement( |
151 gfx::Rect* bounds, | 151 gfx::Rect* bounds, |
152 ui::WindowShowState* show_state) const = 0; | 152 ui::WindowShowState* show_state) const = 0; |
153 | 153 |
154 // Sets the NativeWindow title. Returns true if the title changed. | 154 // Sets the NativeWindow title. Returns true if the title changed. |
155 virtual bool SetWindowTitle(const string16& title) = 0; | 155 virtual bool SetWindowTitle(const base::string16& title) = 0; |
156 | 156 |
157 // Sets the Window icons. |window_icon| is a 16x16 icon suitable for use in | 157 // Sets the Window icons. |window_icon| is a 16x16 icon suitable for use in |
158 // a title bar. |app_icon| is a larger size for use in the host environment | 158 // a title bar. |app_icon| is a larger size for use in the host environment |
159 // app switching UI. | 159 // app switching UI. |
160 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, | 160 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, |
161 const gfx::ImageSkia& app_icon) = 0; | 161 const gfx::ImageSkia& app_icon) = 0; |
162 | 162 |
163 // Initializes the modal type of the window to |modal_type|. Called from | 163 // Initializes the modal type of the window to |modal_type|. Called from |
164 // NativeWidgetDelegate::OnNativeWidgetCreated() before the widget is | 164 // NativeWidgetDelegate::OnNativeWidgetCreated() before the widget is |
165 // initially parented. | 165 // initially parented. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 220 |
221 // Overridden from NativeWidget: | 221 // Overridden from NativeWidget: |
222 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 222 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
223 virtual ui::EventHandler* GetEventHandler() = 0; | 223 virtual ui::EventHandler* GetEventHandler() = 0; |
224 }; | 224 }; |
225 | 225 |
226 } // namespace internal | 226 } // namespace internal |
227 } // namespace views | 227 } // namespace views |
228 | 228 |
229 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 229 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |