Chromium Code Reviews| Index: ui/views/widget/native_widget_win.h |
| diff --git a/ui/views/widget/native_widget_win.h b/ui/views/widget/native_widget_win.h |
| index d5843904ff3e74aadcb473976c67838f28c958dc..b7eabbfe9620bf13c821ea105de66e2289be5f98 100644 |
| --- a/ui/views/widget/native_widget_win.h |
| +++ b/ui/views/widget/native_widget_win.h |
| @@ -115,6 +115,11 @@ class VIEWS_EXPORT NativeWidgetWin : public ui::WindowImpl, |
| // the top of the stack. See PushForceHidden. |
| void PopForceHidden(); |
| + // Places the window in a pseudo-fullscreen mode where it looks and acts as |
| + // like a fullscreen window except that it remains within the boundaries |
| + // of the metro snap divider. |
| + void SetMetroSnapFullscreen(bool metro_snap); |
| + |
| BOOL IsWindow() const { |
| return ::IsWindow(GetNativeView()); |
| } |
| @@ -531,6 +536,10 @@ class VIEWS_EXPORT NativeWidgetWin : public ui::WindowImpl, |
| // Overridden from internal::InputMethodDelegate |
| virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE; |
| + // Common implementation of fullscreen-related code. |
|
sky
2012/06/11 17:04:31
fullscreen is confusingly named here. Additionally
robertshield
2012/06/11 21:06:57
Added more detailed comment. Please let me know if
|
| + void SetFullscreenInternal(bool fullscreen, |
| + const gfx::Rect& window_rect); |
| + |
| // A delegate implementation that handles events received here. |
| // See class documentation for Widget in widget.h for a note about ownership. |
| internal::NativeWidgetDelegate* delegate_; |
| @@ -612,6 +621,9 @@ class VIEWS_EXPORT NativeWidgetWin : public ui::WindowImpl, |
| // True if we're in fullscreen mode. |
| bool fullscreen_; |
| + // True if we're in metro snap mode. |
| + bool metro_snap_; |
|
sky
2012/06/11 17:04:31
Initialize this.
robertshield
2012/06/11 21:06:57
Done.
|
| + |
| // If this is greater than zero, we should prevent attempts to make the window |
| // visible when we handle WM_WINDOWPOSCHANGING. Some calls like |
| // ShowWindow(SW_RESTORE) make the window visible in addition to restoring it, |