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

Side by Side Diff: ui/aura/demo/demo_main.cc

Issue 72503002: Remove some pass-thrus on RootWindow API in favor of exposing the RootWindowHost again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/bench/bench_main.cc ('k') | ui/aura/remote_root_window_host_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/i18n/icu_util.h" 7 #include "base/i18n/icu_util.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "third_party/skia/include/core/SkXfermode.h" 10 #include "third_party/skia/include/core/SkXfermode.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 &window2, root_window->window(), gfx::Rect()); 144 &window2, root_window->window(), gfx::Rect());
145 145
146 DemoWindowDelegate window_delegate3(SK_ColorGREEN); 146 DemoWindowDelegate window_delegate3(SK_ColorGREEN);
147 aura::Window window3(&window_delegate3); 147 aura::Window window3(&window_delegate3);
148 window3.set_id(3); 148 window3.set_id(3);
149 window3.Init(ui::LAYER_TEXTURED); 149 window3.Init(ui::LAYER_TEXTURED);
150 window3.SetBounds(gfx::Rect(10, 10, 50, 50)); 150 window3.SetBounds(gfx::Rect(10, 10, 50, 50));
151 window3.Show(); 151 window3.Show();
152 window2.AddChild(&window3); 152 window2.AddChild(&window3);
153 153
154 root_window->ShowRootWindow(); 154 root_window->host()->Show();
155 base::MessageLoopForUI::current()->Run(); 155 base::MessageLoopForUI::current()->Run();
156 156
157 return 0; 157 return 0;
158 } 158 }
159 159
160 } // namespace 160 } // namespace
161 161
162 int main(int argc, char** argv) { 162 int main(int argc, char** argv) {
163 CommandLine::Init(argc, argv); 163 CommandLine::Init(argc, argv);
164 164
165 // The exit manager is in charge of calling the dtors of singleton objects. 165 // The exit manager is in charge of calling the dtors of singleton objects.
166 base::AtExitManager exit_manager; 166 base::AtExitManager exit_manager;
167 167
168 ui::RegisterPathProvider(); 168 ui::RegisterPathProvider();
169 base::i18n::InitializeICU(); 169 base::i18n::InitializeICU();
170 ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL); 170 ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL);
171 171
172 return DemoMain(); 172 return DemoMain();
173 } 173 }
OLDNEW
« no previous file with comments | « ui/aura/bench/bench_main.cc ('k') | ui/aura/remote_root_window_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698