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

Unified Diff: mojo/examples/surfaces_app/surfaces_app.cc

Issue 534843002: Convert view manager to surfaces with uploading shim in client lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove overzealous shutdown check in cc/surfaces, add NON_EXPORTED_BASE for windows build, saturate… Created 6 years, 3 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
« no previous file with comments | « mojo/examples/sample_app/sample_app.cc ('k') | mojo/mojo.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/surfaces_app/surfaces_app.cc
diff --git a/mojo/examples/surfaces_app/surfaces_app.cc b/mojo/examples/surfaces_app/surfaces_app.cc
index df24e7017026b874e0106e70b4873a4fe0b70676..c34c0e5cab430d4ea45e8f1d57dc46803e5cb9e0 100644
--- a/mojo/examples/surfaces_app/surfaces_app.cc
+++ b/mojo/examples/surfaces_app/surfaces_app.cc
@@ -46,7 +46,7 @@ class SurfacesApp : public ApplicationDelegate,
size_ = gfx::Size(800, 600);
- viewport_->Create(Rect::From(gfx::Rect(gfx::Point(10, 10), size_)));
+ viewport_->Create(Size::From(size_));
viewport_->Show();
child_size_ = gfx::Size(size_.width() / 3, size_.height() / 2);
@@ -104,7 +104,7 @@ class SurfacesApp : public ApplicationDelegate,
}
// NativeViewportClient implementation.
virtual void OnCreated(uint64_t native_viewport_id) OVERRIDE {}
- virtual void OnBoundsChanged(mojo::RectPtr bounds) OVERRIDE {}
+ virtual void OnBoundsChanged(mojo::SizePtr bounds) OVERRIDE {}
virtual void OnDestroyed() OVERRIDE {}
virtual void OnEvent(mojo::EventPtr event,
const mojo::Callback<void()>& callback) OVERRIDE {
« no previous file with comments | « mojo/examples/sample_app/sample_app.cc ('k') | mojo/mojo.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698