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

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

Issue 11829040: Fix the content_browsertests everywhere maybe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: And fix the final ExtensionApiTest.AlertBasic case. Created 7 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 unified diff | Download patch | Annotate | Revision Log
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 private: 74 private:
75 SkColor color_; 75 SkColor color_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(DemoWindowDelegate); 77 DISALLOW_COPY_AND_ASSIGN(DemoWindowDelegate);
78 }; 78 };
79 79
80 class DemoStackingClient : public aura::client::StackingClient { 80 class DemoStackingClient : public aura::client::StackingClient {
81 public: 81 public:
82 explicit DemoStackingClient(aura::RootWindow* root_window) 82 explicit DemoStackingClient(aura::RootWindow* root_window)
83 : root_window_(root_window) { 83 : root_window_(root_window) {
84 aura::client::SetStackingClient(this); 84 aura::client::SetStackingClient(root_window_, this);
85 } 85 }
86 86
87 virtual ~DemoStackingClient() { 87 virtual ~DemoStackingClient() {
88 aura::client::SetStackingClient(NULL); 88 aura::client::SetStackingClient(root_window_, NULL);
89 } 89 }
90 90
91 // Overridden from aura::client::StackingClient: 91 // Overridden from aura::client::StackingClient:
92 virtual aura::Window* GetDefaultParent(aura::Window* context, 92 virtual aura::Window* GetDefaultParent(aura::Window* context,
93 aura::Window* window, 93 aura::Window* window,
94 const gfx::Rect& bounds) OVERRIDE { 94 const gfx::Rect& bounds) OVERRIDE {
95 if (!capture_client_.get()) { 95 if (!capture_client_.get()) {
96 capture_client_.reset( 96 capture_client_.reset(
97 new aura::client::DefaultCaptureClient(root_window_)); 97 new aura::client::DefaultCaptureClient(root_window_));
98 } 98 }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 // The exit manager is in charge of calling the dtors of singleton objects. 160 // The exit manager is in charge of calling the dtors of singleton objects.
161 base::AtExitManager exit_manager; 161 base::AtExitManager exit_manager;
162 162
163 ui::RegisterPathProvider(); 163 ui::RegisterPathProvider();
164 icu_util::Initialize(); 164 icu_util::Initialize();
165 ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL); 165 ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL);
166 166
167 return DemoMain(); 167 return DemoMain();
168 } 168 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698