| 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 "base/trace_event/trace_event.h" | 7 #include "base/trace_event/trace_event.h" |
| 8 #include "ui/aura/window_event_dispatcher.h" | 8 #include "ui/aura/window_event_dispatcher.h" |
| 9 #include "ui/ozone/public/ozone_platform.h" | 9 #include "ui/ozone/public/ozone_platform.h" |
| 10 #include "ui/platform_window/platform_window.h" | 10 #include "ui/platform_window/platform_window.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 void WindowTreeHostOzone::OnAcceleratedWidgetAvailable( | 103 void WindowTreeHostOzone::OnAcceleratedWidgetAvailable( |
| 104 gfx::AcceleratedWidget widget) { | 104 gfx::AcceleratedWidget widget) { |
| 105 widget_ = widget; | 105 widget_ = widget; |
| 106 CreateCompositor(widget_); | 106 CreateCompositor(widget_); |
| 107 } | 107 } |
| 108 | 108 |
| 109 void WindowTreeHostOzone::OnActivationChanged(bool active) { | 109 void WindowTreeHostOzone::OnActivationChanged(bool active) { |
| 110 } | 110 } |
| 111 | 111 |
| 112 ui::EventProcessor* WindowTreeHostOzone::GetEventProcessor() { | |
| 113 return dispatcher(); | |
| 114 } | |
| 115 | |
| 116 // static | 112 // static |
| 117 WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds) { | 113 WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds) { |
| 118 return new WindowTreeHostOzone(bounds); | 114 return new WindowTreeHostOzone(bounds); |
| 119 } | 115 } |
| 120 | 116 |
| 121 // static | 117 // static |
| 122 gfx::Size WindowTreeHost::GetNativeScreenSize() { | 118 gfx::Size WindowTreeHost::GetNativeScreenSize() { |
| 123 NOTIMPLEMENTED(); | 119 NOTIMPLEMENTED(); |
| 124 return gfx::Size(); | 120 return gfx::Size(); |
| 125 } | 121 } |
| 126 | 122 |
| 127 } // namespace aura | 123 } // namespace aura |
| OLD | NEW |