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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 platform_window_->SetCursor(cursor.platform()); | 65 platform_window_->SetCursor(cursor.platform()); |
66 } | 66 } |
67 | 67 |
68 void WindowTreeHostOzone::MoveCursorToNative(const gfx::Point& location) { | 68 void WindowTreeHostOzone::MoveCursorToNative(const gfx::Point& location) { |
69 platform_window_->MoveCursorTo(location); | 69 platform_window_->MoveCursorTo(location); |
70 } | 70 } |
71 | 71 |
72 void WindowTreeHostOzone::OnCursorVisibilityChangedNative(bool show) { | 72 void WindowTreeHostOzone::OnCursorVisibilityChangedNative(bool show) { |
73 } | 73 } |
74 | 74 |
| 75 void WindowTreeHostOzone::OnChangedSurface() { |
| 76 // compositor_; |
| 77 } |
| 78 |
75 void WindowTreeHostOzone::OnBoundsChanged(const gfx::Rect& new_bounds) { | 79 void WindowTreeHostOzone::OnBoundsChanged(const gfx::Rect& new_bounds) { |
76 // TOOD(spang): Should we determine which parts changed? | 80 // TOOD(spang): Should we determine which parts changed? |
77 OnHostResized(new_bounds.size()); | 81 OnHostResized(new_bounds.size()); |
78 OnHostMoved(new_bounds.origin()); | 82 OnHostMoved(new_bounds.origin()); |
79 } | 83 } |
80 | 84 |
81 void WindowTreeHostOzone::OnDamageRect(const gfx::Rect& damaged_region) { | 85 void WindowTreeHostOzone::OnDamageRect(const gfx::Rect& damaged_region) { |
82 } | 86 } |
83 | 87 |
84 void WindowTreeHostOzone::DispatchEvent(ui::Event* event) { | 88 void WindowTreeHostOzone::DispatchEvent(ui::Event* event) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 return new WindowTreeHostOzone(bounds); | 122 return new WindowTreeHostOzone(bounds); |
119 } | 123 } |
120 | 124 |
121 // static | 125 // static |
122 gfx::Size WindowTreeHost::GetNativeScreenSize() { | 126 gfx::Size WindowTreeHost::GetNativeScreenSize() { |
123 NOTIMPLEMENTED(); | 127 NOTIMPLEMENTED(); |
124 return gfx::Size(); | 128 return gfx::Size(); |
125 } | 129 } |
126 | 130 |
127 } // namespace aura | 131 } // namespace aura |
OLD | NEW |