Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: ui/views/widget/native_widget_win.h

Issue 10446106: Preliminary metro snap plumbing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix test errors, unify fullscreen code in browser view. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698