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

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

Issue 131153007: Send size to NativeViewportClient::OnCreated instead of GLES2Client::DidCreateContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix various issues 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
« no previous file with comments | « mojo/apps/js/main.js ('k') | mojo/examples/aura_demo/root_window_host_mojo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/aura_demo/aura_demo.cc
diff --git a/mojo/examples/aura_demo/aura_demo.cc b/mojo/examples/aura_demo/aura_demo.cc
index 1cf80770978889fea4c697663f195619048508c8..0b7c759229bf1629d4ddd2a5212c33f8fc30467b 100644
--- a/mojo/examples/aura_demo/aura_demo.cc
+++ b/mojo/examples/aura_demo/aura_demo.cc
@@ -139,7 +139,8 @@ class AuraDemo : public ShellClient {
private:
void HostContextCreated() {
- aura::RootWindow::CreateParams params(gfx::Rect(0, 0, 500, 500));
+ aura::RootWindow::CreateParams params(
+ gfx::Rect(root_window_host_->bounds().size()));
params.host = root_window_host_.get();
root_window_.reset(new aura::RootWindow(params));
root_window_host_->set_delegate(root_window_.get());
« no previous file with comments | « mojo/apps/js/main.js ('k') | mojo/examples/aura_demo/root_window_host_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698