diff options
Diffstat (limited to 'views/window/native_window.h')
-rw-r--r-- | views/window/native_window.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/views/window/native_window.h b/views/window/native_window.h index 5347eab..30fb87a 100644 --- a/views/window/native_window.h +++ b/views/window/native_window.h @@ -6,6 +6,8 @@ #define VIEWS_WIDGET_NATIVE_WINDOW_H_ #pragma once +#include "views/accessibility/accessibility_types.h" + namespace views { //////////////////////////////////////////////////////////////////////////////// @@ -15,7 +17,32 @@ namespace views { // class NativeWindow { public: + enum ShowState { + SHOW_RESTORED, + SHOW_MAXIMIZED + }; + virtual ~NativeWindow() {} + + // Shows the window. + virtual void Show(ShowState state) = 0; + + // Makes the NativeWindow modal. + virtual void BecomeModal() = 0; + + // Centers the window and sizes it to the specified size. + virtual void CenterWindow(const gfx::Size& size) = 0; + + // Sets the NativeWindow title. + virtual void SetWindowTitle(const std::wstring& title) = 0; + + // Update native accessibility properties on the native window. + virtual void SetAccessibleName(const std::wstring& name) = 0; + virtual void SetAccessibleRole(AccessibilityTypes::Role role) = 0; + virtual void SetAccessibleState(AccessibilityTypes::State state) = 0; + + virtual NativeWidget* AsNativeWidget() = 0; + virtual const NativeWidget* AsNativeWidget() const = 0; }; } // namespace views |