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

Unified Diff: mojo/services/native_viewport/native_viewport_service.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_service.cc
diff --git a/mojo/services/native_viewport/native_viewport_service.cc b/mojo/services/native_viewport/native_viewport_service.cc
index 97bc9090f68ed07c53480a5b04af4b6c2681f60b..409a342717243c79bbf741c6b46f82350b59d5a6 100644
--- a/mojo/services/native_viewport/native_viewport_service.cc
+++ b/mojo/services/native_viewport/native_viewport_service.cc
@@ -51,6 +51,10 @@ class NativeViewportService::NativeViewportImpl
native_viewport_->Show();
}
+ virtual void Hide() MOJO_OVERRIDE {
+ native_viewport_->Hide();
+ }
+
virtual void Close() MOJO_OVERRIDE {
gles2_.reset();
DCHECK(native_viewport_);
@@ -147,7 +151,7 @@ class NativeViewportService::NativeViewportImpl
virtual void OnBoundsChanged(const gfx::Rect& bounds) MOJO_OVERRIDE {
CreateGLES2ContextIfNeeded();
- AllocationScope allocation;
+ AllocationScope scope;
client_->OnBoundsChanged(bounds);
}
« no previous file with comments | « mojo/services/native_viewport/native_viewport_mac.mm ('k') | mojo/services/native_viewport/native_viewport_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698