| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 ui::PlatformWindowState new_state) { | 97 ui::PlatformWindowState new_state) { |
| 98 } | 98 } |
| 99 | 99 |
| 100 void WindowTreeHostOzone::OnLostCapture() { | 100 void WindowTreeHostOzone::OnLostCapture() { |
| 101 } | 101 } |
| 102 | 102 |
| 103 void WindowTreeHostOzone::OnAcceleratedWidgetAvailable( | 103 void WindowTreeHostOzone::OnAcceleratedWidgetAvailable( |
| 104 gfx::AcceleratedWidget widget, | 104 gfx::AcceleratedWidget widget, |
| 105 float device_pixel_ratio) { | 105 float device_pixel_ratio) { |
| 106 widget_ = widget; | 106 widget_ = widget; |
| 107 CreateCompositor(widget_); | 107 CreateCompositor(); |
| 108 WindowTreeHost::OnAcceleratedWidgetAvailable(); |
| 108 } | 109 } |
| 109 | 110 |
| 110 void WindowTreeHostOzone::OnActivationChanged(bool active) { | 111 void WindowTreeHostOzone::OnActivationChanged(bool active) { |
| 111 } | 112 } |
| 112 | 113 |
| 113 // static | 114 // static |
| 114 WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds) { | 115 WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds) { |
| 115 return new WindowTreeHostOzone(bounds); | 116 return new WindowTreeHostOzone(bounds); |
| 116 } | 117 } |
| 117 | 118 |
| 118 // static | 119 // static |
| 119 gfx::Size WindowTreeHost::GetNativeScreenSize() { | 120 gfx::Size WindowTreeHost::GetNativeScreenSize() { |
| 120 NOTIMPLEMENTED(); | 121 NOTIMPLEMENTED(); |
| 121 return gfx::Size(); | 122 return gfx::Size(); |
| 122 } | 123 } |
| 123 | 124 |
| 124 } // namespace aura | 125 } // namespace aura |
| OLD | NEW |