Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Side by Side Diff: ui/aura/remote_root_window_host_win.cc

Issue 11446078: Add suport for changing cursors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | ui/metro_viewer/metro_viewer_messages.h » ('j') | win8/metro_driver/chrome_app_view_ash.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698