Index: views/window/window.h |
=================================================================== |
--- views/window/window.h (revision 85647) |
+++ views/window/window.h (working copy) |
@@ -52,6 +52,12 @@ |
Widget::InitParams widget_init_params; |
}; |
+ enum FrameType { |
+ FRAME_TYPE_DEFAULT, // Use whatever the default would be. |
+ FRAME_TYPE_FORCE_CUSTOM, // Force the custom frame. |
+ FRAME_TYPE_FORCE_NATIVE // Force the native frame. |
+ }; |
+ |
Window(); |
virtual ~Window(); |
@@ -162,9 +168,16 @@ |
// Retrieves the Window's native window handle. |
gfx::NativeWindow GetNativeWindow() const; |
+ void set_frame_type(FrameType frame_type) { frame_type_ = frame_type; } |
+ FrameType frame_type() const { return frame_type_; } |
+ |
// Whether we should be using a native frame. |
bool ShouldUseNativeFrame() const; |
+ // Forces the frame into the alternate frame type (custom or native) depending |
+ // on its current state. |
+ void DebugToggleFrameType(); |
+ |
// Tell the window that something caused the frame type to change. |
void FrameTypeChanged(); |
@@ -201,7 +214,6 @@ |
virtual void EnableInactiveRendering() OVERRIDE; |
virtual bool IsModal() const OVERRIDE; |
virtual bool IsDialogBox() const OVERRIDE; |
- virtual bool IsUsingNativeFrame() const OVERRIDE; |
virtual gfx::Size GetMinimumSize() const OVERRIDE; |
virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
virtual bool ExecuteCommand(int command_id) OVERRIDE; |
@@ -248,6 +260,10 @@ |
// Set to true if the window is in the process of closing . |
bool window_closed_; |
+ // The current frame type in use by this window. Defaults to |
+ // FRAME_TYPE_DEFAULT. |
+ FrameType frame_type_; |
+ |
DISALLOW_COPY_AND_ASSIGN(Window); |
}; |