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

Unified Diff: mojo/services/native_viewport/native_viewport_win.cc

Issue 145403002: view manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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: mojo/services/native_viewport/native_viewport_win.cc
diff --git a/mojo/services/native_viewport/native_viewport_win.cc b/mojo/services/native_viewport/native_viewport_win.cc
index 167ce456c0aa308a71b8cf6133262cc69021db8c..948731f3f07b1f0e666c365a2ca8a5a8ea17ee6d 100644
--- a/mojo/services/native_viewport/native_viewport_win.cc
+++ b/mojo/services/native_viewport/native_viewport_win.cc
@@ -39,7 +39,7 @@ class NativeViewportWin : public gfx::WindowImpl,
// Overridden from NativeViewport:
virtual void Init(const gfx::Rect& bounds) OVERRIDE {
gfx::Rect window_bounds = GetWindowBoundsForClientBounds(
- window_style(), window_ex_style(), bounds);
+ WS_OVERLAPPEDWINDOW, window_ex_style(), bounds);
gfx::WindowImpl::Init(NULL, window_bounds);
SetWindowText(hwnd(), L"native_viewport::NativeViewportWin!");
}
@@ -48,6 +48,10 @@ class NativeViewportWin : public gfx::WindowImpl,
ShowWindow(hwnd(), SW_SHOWNORMAL);
}
+ virtual void Hide() OVERRIDE {
+ ShowWindow(hwnd(), SW_HIDE);
+ }
+
virtual void Close() OVERRIDE {
DestroyWindow(hwnd());
}
« no previous file with comments | « mojo/services/native_viewport/native_viewport_stub.cc ('k') | mojo/services/native_viewport/native_viewport_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698