| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_win.h" | 5 #include "ui/aura/window_tree_host_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 } | 105 } |
| 106 | 106 |
| 107 void WindowTreeHostWin::MoveCursorToNative(const gfx::Point& location) { | 107 void WindowTreeHostWin::MoveCursorToNative(const gfx::Point& location) { |
| 108 // Deliberately not implemented. | 108 // Deliberately not implemented. |
| 109 } | 109 } |
| 110 | 110 |
| 111 void WindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) { | 111 void WindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) { |
| 112 NOTIMPLEMENTED(); | 112 NOTIMPLEMENTED(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 ui::EventProcessor* WindowTreeHostWin::GetEventProcessor() { | |
| 116 return dispatcher(); | |
| 117 } | |
| 118 | |
| 119 void WindowTreeHostWin::OnBoundsChanged(const gfx::Rect& new_bounds) { | 115 void WindowTreeHostWin::OnBoundsChanged(const gfx::Rect& new_bounds) { |
| 120 gfx::Rect old_bounds = bounds_; | 116 gfx::Rect old_bounds = bounds_; |
| 121 bounds_ = new_bounds; | 117 bounds_ = new_bounds; |
| 122 if (bounds_.origin() != old_bounds.origin()) | 118 if (bounds_.origin() != old_bounds.origin()) |
| 123 OnHostMoved(bounds_.origin()); | 119 OnHostMoved(bounds_.origin()); |
| 124 if (bounds_.size() != old_bounds.size()) | 120 if (bounds_.size() != old_bounds.size()) |
| 125 OnHostResized(bounds_.size()); | 121 OnHostResized(bounds_.size()); |
| 126 } | 122 } |
| 127 | 123 |
| 128 void WindowTreeHostWin::OnDamageRect(const gfx::Rect& damage_rect) { | 124 void WindowTreeHostWin::OnDamageRect(const gfx::Rect& damage_rect) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 159 widget_ = widget; | 155 widget_ = widget; |
| 160 CreateCompositor(widget); | 156 CreateCompositor(widget); |
| 161 } | 157 } |
| 162 | 158 |
| 163 void WindowTreeHostWin::OnActivationChanged(bool active) { | 159 void WindowTreeHostWin::OnActivationChanged(bool active) { |
| 164 if (active) | 160 if (active) |
| 165 OnHostActivated(); | 161 OnHostActivated(); |
| 166 } | 162 } |
| 167 | 163 |
| 168 } // namespace aura | 164 } // namespace aura |
| OLD | NEW |