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

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

Issue 11364053: make StackingClient dispatch to either ash or desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + disable prerender tests on win-aura Created 8 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/client/stacking_client.cc ('k') | ui/aura/desktop/desktop_stacking_client.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.h" 9 #include "base/message_loop.h"
10 #include "third_party/skia/include/core/SkXfermode.h" 10 #include "third_party/skia/include/core/SkXfermode.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 explicit DemoStackingClient(aura::RootWindow* root_window) 93 explicit DemoStackingClient(aura::RootWindow* root_window)
94 : root_window_(root_window) { 94 : root_window_(root_window) {
95 aura::client::SetStackingClient(this); 95 aura::client::SetStackingClient(this);
96 } 96 }
97 97
98 virtual ~DemoStackingClient() { 98 virtual ~DemoStackingClient() {
99 aura::client::SetStackingClient(NULL); 99 aura::client::SetStackingClient(NULL);
100 } 100 }
101 101
102 // Overridden from aura::client::StackingClient: 102 // Overridden from aura::client::StackingClient:
103 virtual aura::Window* GetDefaultParent(aura::Window* window, 103 virtual aura::Window* GetDefaultParent(aura::Window* context,
104 aura::Window* window,
104 const gfx::Rect& bounds) OVERRIDE { 105 const gfx::Rect& bounds) OVERRIDE {
105 if (!capture_client_.get()) { 106 if (!capture_client_.get()) {
106 capture_client_.reset( 107 capture_client_.reset(
107 new aura::client::DefaultCaptureClient(root_window_)); 108 new aura::client::DefaultCaptureClient(root_window_));
108 } 109 }
109 return root_window_; 110 return root_window_;
110 } 111 }
111 112
112 private: 113 private:
113 aura::RootWindow* root_window_; 114 aura::RootWindow* root_window_;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 168
168 // The exit manager is in charge of calling the dtors of singleton objects. 169 // The exit manager is in charge of calling the dtors of singleton objects.
169 base::AtExitManager exit_manager; 170 base::AtExitManager exit_manager;
170 171
171 ui::RegisterPathProvider(); 172 ui::RegisterPathProvider();
172 icu_util::Initialize(); 173 icu_util::Initialize();
173 ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL); 174 ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL);
174 175
175 return DemoMain(); 176 return DemoMain();
176 } 177 }
OLDNEW
« no previous file with comments | « ui/aura/client/stacking_client.cc ('k') | ui/aura/desktop/desktop_stacking_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698