| 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_window_tree_host_win.h" | 5 #include "ui/aura/remote_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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 } | 366 } |
| 367 | 367 |
| 368 bool RemoteWindowTreeHostWin::IsForegroundWindow() { | 368 bool RemoteWindowTreeHostWin::IsForegroundWindow() { |
| 369 return ::GetForegroundWindow() == remote_window_; | 369 return ::GetForegroundWindow() == remote_window_; |
| 370 } | 370 } |
| 371 | 371 |
| 372 Window* RemoteWindowTreeHostWin::GetAshWindow() { | 372 Window* RemoteWindowTreeHostWin::GetAshWindow() { |
| 373 return window(); | 373 return window(); |
| 374 } | 374 } |
| 375 | 375 |
| 376 ui::EventSource* RemoteWindowTreeHostWin::GetEventSource() { |
| 377 return this; |
| 378 } |
| 379 |
| 376 gfx::AcceleratedWidget RemoteWindowTreeHostWin::GetAcceleratedWidget() { | 380 gfx::AcceleratedWidget RemoteWindowTreeHostWin::GetAcceleratedWidget() { |
| 377 if (remote_window_) | 381 if (remote_window_) |
| 378 return remote_window_; | 382 return remote_window_; |
| 379 // Getting here should only happen for ash_unittests.exe and related code. | 383 // Getting here should only happen for ash_unittests.exe and related code. |
| 380 return ::GetDesktopWindow(); | 384 return ::GetDesktopWindow(); |
| 381 } | 385 } |
| 382 | 386 |
| 383 void RemoteWindowTreeHostWin::Show() { | 387 void RemoteWindowTreeHostWin::Show() { |
| 384 ui::RemoteInputMethodPrivateWin* remote_input_method_private = | 388 ui::RemoteInputMethodPrivateWin* remote_input_method_private = |
| 385 GetRemoteInputMethodPrivate(); | 389 GetRemoteInputMethodPrivate(); |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 } | 753 } |
| 750 | 754 |
| 751 void RemoteWindowTreeHostWin::SetEventFlags(uint32 flags) { | 755 void RemoteWindowTreeHostWin::SetEventFlags(uint32 flags) { |
| 752 if (flags == event_flags_) | 756 if (flags == event_flags_) |
| 753 return; | 757 return; |
| 754 event_flags_ = flags; | 758 event_flags_ = flags; |
| 755 SetVirtualKeyStates(event_flags_); | 759 SetVirtualKeyStates(event_flags_); |
| 756 } | 760 } |
| 757 | 761 |
| 758 } // namespace aura | 762 } // namespace aura |
| OLD | NEW |