| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 void RemoteRootWindowHostWin::ToggleFullScreen() { | 108 void RemoteRootWindowHostWin::ToggleFullScreen() { |
| 109 } | 109 } |
| 110 | 110 |
| 111 gfx::Rect RemoteRootWindowHostWin::GetBounds() const { | 111 gfx::Rect RemoteRootWindowHostWin::GetBounds() const { |
| 112 gfx::Rect r(gfx::Point(0, 0), aura::RootWindowHost::GetNativeScreenSize()); | 112 gfx::Rect r(gfx::Point(0, 0), aura::RootWindowHost::GetNativeScreenSize()); |
| 113 return r; | 113 return r; |
| 114 } | 114 } |
| 115 | 115 |
| 116 void RemoteRootWindowHostWin::SetBounds(const gfx::Rect& bounds) { | 116 void RemoteRootWindowHostWin::SetBounds(const gfx::Rect& bounds) { |
| 117 delegate_->OnHostResized(bounds.size()); |
| 117 } | 118 } |
| 118 | 119 |
| 119 gfx::Point RemoteRootWindowHostWin::GetLocationOnNativeScreen() const { | 120 gfx::Point RemoteRootWindowHostWin::GetLocationOnNativeScreen() const { |
| 120 return gfx::Point(0, 0); | 121 return gfx::Point(0, 0); |
| 121 } | 122 } |
| 122 | 123 |
| 123 void RemoteRootWindowHostWin::SetCursor(gfx::NativeCursor native_cursor) { | 124 void RemoteRootWindowHostWin::SetCursor(gfx::NativeCursor native_cursor) { |
| 124 if (!host_) | 125 if (!host_) |
| 125 return; | 126 return; |
| 126 host_->Send( | 127 host_->Send( |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 int32 y, | 265 int32 y, |
| 265 uint64 timestamp) { | 266 uint64 timestamp) { |
| 266 ui::TouchEvent event(ui::ET_TOUCH_MOVED, | 267 ui::TouchEvent event(ui::ET_TOUCH_MOVED, |
| 267 gfx::Point(x, y), | 268 gfx::Point(x, y), |
| 268 kRemoteWindowTouchId, | 269 kRemoteWindowTouchId, |
| 269 base::TimeDelta::FromMicroseconds(timestamp)); | 270 base::TimeDelta::FromMicroseconds(timestamp)); |
| 270 delegate_->OnHostTouchEvent(&event); | 271 delegate_->OnHostTouchEvent(&event); |
| 271 } | 272 } |
| 272 | 273 |
| 273 } // namespace aura | 274 } // namespace aura |
| OLD | NEW |