OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/window_tree_host_ozone.h" | 5 #include "ui/aura/window_tree_host_ozone.h" |
6 | 6 |
7 #include "ui/aura/window_event_dispatcher.h" | 7 #include "ui/aura/window_event_dispatcher.h" |
8 #include "ui/ozone/public/cursor_factory_ozone.h" | 8 #include "ui/ozone/public/cursor_factory_ozone.h" |
9 #include "ui/ozone/public/event_factory_ozone.h" | 9 #include "ui/ozone/public/event_factory_ozone.h" |
10 #include "ui/ozone/public/ozone_platform.h" | 10 #include "ui/platform_window/platform_window_factory.h" |
11 #include "ui/platform_window/platform_window.h" | 11 #include "ui/platform_window/types/platform_window.h" |
12 | 12 |
13 namespace aura { | 13 namespace aura { |
14 | 14 |
15 WindowTreeHostOzone::WindowTreeHostOzone(const gfx::Rect& bounds) | 15 WindowTreeHostOzone::WindowTreeHostOzone(const gfx::Rect& bounds) |
16 : widget_(gfx::kNullAcceleratedWidget) { | 16 : widget_(gfx::kNullAcceleratedWidget), |
17 platform_window_ = | 17 platform_window_(ui::PlatformWindowFactory::GetInstance() |
18 ui::OzonePlatform::GetInstance()->CreatePlatformWindow(this, bounds); | 18 ->CreatePlatformWindow(this, bounds)) { |
19 } | 19 } |
20 | 20 |
21 WindowTreeHostOzone::~WindowTreeHostOzone() { | 21 WindowTreeHostOzone::~WindowTreeHostOzone() { |
22 DestroyCompositor(); | 22 DestroyCompositor(); |
23 DestroyDispatcher(); | 23 DestroyDispatcher(); |
24 } | 24 } |
25 | 25 |
26 void WindowTreeHostOzone::OnBoundsChanged(const gfx::Rect& new_bounds) { | 26 void WindowTreeHostOzone::OnBoundsChanged(const gfx::Rect& new_bounds) { |
27 // TOOD(spang): Should we determine which parts changed? | 27 // TOOD(spang): Should we determine which parts changed? |
28 OnHostResized(new_bounds.size()); | 28 OnHostResized(new_bounds.size()); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 return new WindowTreeHostOzone(bounds); | 123 return new WindowTreeHostOzone(bounds); |
124 } | 124 } |
125 | 125 |
126 // static | 126 // static |
127 gfx::Size WindowTreeHost::GetNativeScreenSize() { | 127 gfx::Size WindowTreeHost::GetNativeScreenSize() { |
128 NOTIMPLEMENTED(); | 128 NOTIMPLEMENTED(); |
129 return gfx::Size(); | 129 return gfx::Size(); |
130 } | 130 } |
131 | 131 |
132 } // namespace aura | 132 } // namespace aura |
OLD | NEW |