OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ui/aura/mus/window_tree_host_mus.h" | 5 #include "ui/aura/mus/window_tree_host_mus.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "ui/aura/env.h" | 8 #include "ui/aura/env.h" |
9 #include "ui/aura/mus/input_method_mus.h" | 9 #include "ui/aura/mus/input_method_mus.h" |
10 #include "ui/aura/mus/window_port_mus.h" | 10 #include "ui/aura/mus/window_port_mus.h" |
11 #include "ui/aura/mus/window_tree_client.h" | 11 #include "ui/aura/mus/window_tree_client.h" |
12 #include "ui/aura/mus/window_tree_host_mus_delegate.h" | 12 #include "ui/aura/mus/window_tree_host_mus_delegate.h" |
13 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
14 #include "ui/aura/window_event_dispatcher.h" | 14 #include "ui/aura/window_event_dispatcher.h" |
15 #include "ui/aura/window_property.h" | 15 #include "ui/base/class_property.h" |
16 #include "ui/display/display.h" | 16 #include "ui/display/display.h" |
17 #include "ui/display/screen.h" | 17 #include "ui/display/screen.h" |
18 #include "ui/events/event.h" | 18 #include "ui/events/event.h" |
19 #include "ui/platform_window/stub/stub_window.h" | 19 #include "ui/platform_window/stub/stub_window.h" |
20 | 20 |
21 DECLARE_WINDOW_PROPERTY_TYPE(aura::WindowTreeHostMus*); | 21 DECLARE_UI_CLASS_PROPERTY_TYPE(aura::WindowTreeHostMus*); |
22 | 22 |
23 namespace aura { | 23 namespace aura { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 DEFINE_WINDOW_PROPERTY_KEY(WindowTreeHostMus*, kWindowTreeHostMusKey, nullptr); | 27 DEFINE_UI_CLASS_PROPERTY_KEY( |
| 28 WindowTreeHostMus*, kWindowTreeHostMusKey, nullptr); |
28 | 29 |
29 static uint32_t accelerated_widget_count = 1; | 30 static uint32_t accelerated_widget_count = 1; |
30 | 31 |
31 bool IsUsingTestContext() { | 32 bool IsUsingTestContext() { |
32 return aura::Env::GetInstance()->context_factory()->DoesCreateTestContexts(); | 33 return aura::Env::GetInstance()->context_factory()->DoesCreateTestContexts(); |
33 } | 34 } |
34 | 35 |
35 } // namespace | 36 } // namespace |
36 | 37 |
37 //////////////////////////////////////////////////////////////////////////////// | 38 //////////////////////////////////////////////////////////////////////////////// |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 void WindowTreeHostMus::OnCloseRequest() { | 206 void WindowTreeHostMus::OnCloseRequest() { |
206 OnHostCloseRequested(); | 207 OnHostCloseRequested(); |
207 } | 208 } |
208 | 209 |
209 gfx::ICCProfile WindowTreeHostMus::GetICCProfileForCurrentDisplay() { | 210 gfx::ICCProfile WindowTreeHostMus::GetICCProfileForCurrentDisplay() { |
210 // TODO: This should read the profile from mus. crbug.com/647510 | 211 // TODO: This should read the profile from mus. crbug.com/647510 |
211 return gfx::ICCProfile(); | 212 return gfx::ICCProfile(); |
212 } | 213 } |
213 | 214 |
214 } // namespace aura | 215 } // namespace aura |
OLD | NEW |