OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |