| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 } | 179 } |
| 180 | 180 |
| 181 void RemoteRootWindowHostWin::OnDeviceScaleFactorChanged( | 181 void RemoteRootWindowHostWin::OnDeviceScaleFactorChanged( |
| 182 float device_scale_factor) { | 182 float device_scale_factor) { |
| 183 NOTIMPLEMENTED(); | 183 NOTIMPLEMENTED(); |
| 184 } | 184 } |
| 185 | 185 |
| 186 void RemoteRootWindowHostWin::PrepareForShutdown() { | 186 void RemoteRootWindowHostWin::PrepareForShutdown() { |
| 187 } | 187 } |
| 188 | 188 |
| 189 void RemoteRootWindowHostWin::SetIntProperty(const std::string& name, |
| 190 int value) { |
| 191 } |
| 192 |
| 189 void RemoteRootWindowHostWin::OnMouseMoved(int32 x, int32 y, int32 flags) { | 193 void RemoteRootWindowHostWin::OnMouseMoved(int32 x, int32 y, int32 flags) { |
| 190 gfx::Point location(x, y); | 194 gfx::Point location(x, y); |
| 191 ui::MouseEvent event(ui::ET_MOUSE_MOVED, location, location, flags); | 195 ui::MouseEvent event(ui::ET_MOUSE_MOVED, location, location, flags); |
| 192 delegate_->OnHostMouseEvent(&event); | 196 delegate_->OnHostMouseEvent(&event); |
| 193 } | 197 } |
| 194 | 198 |
| 195 void RemoteRootWindowHostWin::OnMouseButton( | 199 void RemoteRootWindowHostWin::OnMouseButton( |
| 196 int32 x, int32 y, int32 extra, ui::EventType type, ui::EventFlags flags) { | 200 int32 x, int32 y, int32 extra, ui::EventType type, ui::EventFlags flags) { |
| 197 gfx::Point location(x, y); | 201 gfx::Point location(x, y); |
| 198 ui::MouseEvent mouse_event(type, location, location, 0); | 202 ui::MouseEvent mouse_event(type, location, location, 0); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 int32 y, | 269 int32 y, |
| 266 uint64 timestamp) { | 270 uint64 timestamp) { |
| 267 ui::TouchEvent event(ui::ET_TOUCH_MOVED, | 271 ui::TouchEvent event(ui::ET_TOUCH_MOVED, |
| 268 gfx::Point(x, y), | 272 gfx::Point(x, y), |
| 269 kRemoteWindowTouchId, | 273 kRemoteWindowTouchId, |
| 270 base::TimeDelta::FromMicroseconds(timestamp)); | 274 base::TimeDelta::FromMicroseconds(timestamp)); |
| 271 delegate_->OnHostTouchEvent(&event); | 275 delegate_->OnHostTouchEvent(&event); |
| 272 } | 276 } |
| 273 | 277 |
| 274 } // namespace aura | 278 } // namespace aura |
| OLD | NEW |