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/remote_root_window_host_win.h" | 5 #include "ui/aura/remote_root_window_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 RemoteRootWindowHostWin::SetBounds(const gfx::Rect& bounds) { | 107 void RemoteRootWindowHostWin::SetBounds(const gfx::Rect& bounds) { |
108 } | 108 } |
109 | 109 |
110 gfx::Point RemoteRootWindowHostWin::GetLocationOnNativeScreen() const { | 110 gfx::Point RemoteRootWindowHostWin::GetLocationOnNativeScreen() const { |
111 return gfx::Point(0, 0); | 111 return gfx::Point(0, 0); |
112 } | 112 } |
113 | 113 |
114 void RemoteRootWindowHostWin::SetCursor(gfx::NativeCursor native_cursor) { | 114 void RemoteRootWindowHostWin::SetCursor(gfx::NativeCursor native_cursor) { |
| 115 if (!host_) |
| 116 return; |
| 117 host_->Send( |
| 118 new MetroViewerHostMsg_SetCursor(uint64(native_cursor.platform()))); |
115 } | 119 } |
116 | 120 |
117 void RemoteRootWindowHostWin::SetCapture() { | 121 void RemoteRootWindowHostWin::SetCapture() { |
118 } | 122 } |
119 | 123 |
120 void RemoteRootWindowHostWin::ReleaseCapture() { | 124 void RemoteRootWindowHostWin::ReleaseCapture() { |
121 } | 125 } |
122 | 126 |
123 bool RemoteRootWindowHostWin::QueryMouseLocation(gfx::Point* location_return) { | 127 bool RemoteRootWindowHostWin::QueryMouseLocation(gfx::Point* location_return) { |
124 POINT pt; | 128 POINT pt; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 true); | 225 true); |
222 delegate_->OnHostKeyEvent(&event); | 226 delegate_->OnHostKeyEvent(&event); |
223 } | 227 } |
224 | 228 |
225 void RemoteRootWindowHostWin::OnVisibilityChanged(bool visible) { | 229 void RemoteRootWindowHostWin::OnVisibilityChanged(bool visible) { |
226 if (visible) | 230 if (visible) |
227 delegate_->OnHostActivated(); | 231 delegate_->OnHostActivated(); |
228 } | 232 } |
229 | 233 |
230 } // namespace aura | 234 } // namespace aura |
OLD | NEW |