diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-01 20:31:30 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-01 20:31:30 +0000 |
commit | 5d7688381483532b842b500b95042f4548f22291 (patch) | |
tree | e8db4aacb20eb8cb7221be60d951cae20f5f23a5 /views/widget/native_widget.h | |
parent | 32de41423d352fb1932f538803193f54b3cc2a26 (diff) | |
download | chromium_src-5d7688381483532b842b500b95042f4548f22291.zip chromium_src-5d7688381483532b842b500b95042f4548f22291.tar.gz chromium_src-5d7688381483532b842b500b95042f4548f22291.tar.bz2 |
Move the last of the easy stuff from Window onto Widget.
BUG=72040
TEST=none
Review URL: http://codereview.chromium.org/7080060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87517 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/native_widget.h')
-rw-r--r-- | views/widget/native_widget.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/views/widget/native_widget.h b/views/widget/native_widget.h index 070a462..f3faba0 100644 --- a/views/widget/native_widget.h +++ b/views/widget/native_widget.h @@ -122,6 +122,28 @@ class NativeWidget { // widget. It's only for testing purpose. virtual void ReplaceInputMethod(InputMethod* input_method) = 0; + // Centers the window and sizes it to the specified size. + virtual void CenterWindow(const gfx::Size& size) = 0; + + // Retrieves the window's current restored bounds and maximized state, for + // persisting. + virtual void GetWindowBoundsAndMaximizedState(gfx::Rect* bounds, + bool* maximized) const = 0; + + // Sets the NativeWindow title. + virtual void SetWindowTitle(const std::wstring& title) = 0; + + // Sets the Window icons. |window_icon| is a 16x16 icon suitable for use in + // a title bar. |app_icon| is a larger size for use in the host environment + // app switching UI. + virtual void SetWindowIcons(const SkBitmap& window_icon, + const SkBitmap& app_icon) = 0; + + // Update native accessibility properties on the native window. + virtual void SetAccessibleName(const std::wstring& name) = 0; + virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) = 0; + virtual void SetAccessibleState(ui::AccessibilityTypes::State state) = 0; + protected: friend class Widget; friend class NativeWidgetViews; @@ -157,6 +179,7 @@ class NativeWidget { virtual void SetFullscreen(bool fullscreen) = 0; virtual bool IsFullscreen() const = 0; virtual void SetOpacity(unsigned char opacity) = 0; + virtual void SetUseDragFrame(bool use_drag_frame) = 0; virtual bool IsAccessibleWidget() const = 0; virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0; virtual void RunShellDrag(View* view, |