| 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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 | 482 |
| 483 void RemoteWindowTreeHostWin::OnDeviceScaleFactorChanged( | 483 void RemoteWindowTreeHostWin::OnDeviceScaleFactorChanged( |
| 484 float device_scale_factor) { | 484 float device_scale_factor) { |
| 485 NOTIMPLEMENTED(); | 485 NOTIMPLEMENTED(); |
| 486 } | 486 } |
| 487 | 487 |
| 488 void RemoteWindowTreeHostWin::PrepareForShutdown() { | 488 void RemoteWindowTreeHostWin::PrepareForShutdown() { |
| 489 } | 489 } |
| 490 | 490 |
| 491 ui::EventProcessor* RemoteWindowTreeHostWin::GetEventProcessor() { | 491 ui::EventProcessor* RemoteWindowTreeHostWin::GetEventProcessor() { |
| 492 return dispatcher(); | 492 return delegate_->GetEventProcessor(); |
| 493 } | 493 } |
| 494 | 494 |
| 495 void RemoteWindowTreeHostWin::CancelComposition() { | 495 void RemoteWindowTreeHostWin::CancelComposition() { |
| 496 if (!host_) | 496 if (!host_) |
| 497 return; | 497 return; |
| 498 host_->Send(new MetroViewerHostMsg_ImeCancelComposition); | 498 host_->Send(new MetroViewerHostMsg_ImeCancelComposition); |
| 499 } | 499 } |
| 500 | 500 |
| 501 void RemoteWindowTreeHostWin::OnTextInputClientUpdated( | 501 void RemoteWindowTreeHostWin::OnTextInputClientUpdated( |
| 502 const std::vector<int32>& input_scopes, | 502 const std::vector<int32>& input_scopes, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 | 584 |
| 585 void RemoteWindowTreeHostWin::OnChar(uint32 key_code, | 585 void RemoteWindowTreeHostWin::OnChar(uint32 key_code, |
| 586 uint32 repeat_count, | 586 uint32 repeat_count, |
| 587 uint32 scan_code, | 587 uint32 scan_code, |
| 588 uint32 flags) { | 588 uint32 flags) { |
| 589 DispatchKeyboardMessage(ui::ET_KEY_PRESSED, key_code, repeat_count, | 589 DispatchKeyboardMessage(ui::ET_KEY_PRESSED, key_code, repeat_count, |
| 590 scan_code, flags, true); | 590 scan_code, flags, true); |
| 591 } | 591 } |
| 592 | 592 |
| 593 void RemoteWindowTreeHostWin::OnWindowActivated() { | 593 void RemoteWindowTreeHostWin::OnWindowActivated() { |
| 594 OnHostActivated(); | 594 delegate_->OnHostActivated(); |
| 595 } | 595 } |
| 596 | 596 |
| 597 void RemoteWindowTreeHostWin::OnEdgeGesture() { | 597 void RemoteWindowTreeHostWin::OnEdgeGesture() { |
| 598 ui::GestureEvent event( | 598 ui::GestureEvent event( |
| 599 ui::ET_GESTURE_WIN8_EDGE_SWIPE, | 599 ui::ET_GESTURE_WIN8_EDGE_SWIPE, |
| 600 0, | 600 0, |
| 601 0, | 601 0, |
| 602 0, | 602 0, |
| 603 ui::EventTimeForNow(), | 603 ui::EventTimeForNow(), |
| 604 ui::GestureEventDetails(ui::ET_GESTURE_WIN8_EDGE_SWIPE, 0, 0), | 604 ui::GestureEventDetails(ui::ET_GESTURE_WIN8_EDGE_SWIPE, 0, 0), |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 } | 768 } |
| 769 | 769 |
| 770 void RemoteWindowTreeHostWin::SetEventFlags(uint32 flags) { | 770 void RemoteWindowTreeHostWin::SetEventFlags(uint32 flags) { |
| 771 if (flags == event_flags_) | 771 if (flags == event_flags_) |
| 772 return; | 772 return; |
| 773 event_flags_ = flags; | 773 event_flags_ = flags; |
| 774 SetVirtualKeyStates(event_flags_); | 774 SetVirtualKeyStates(event_flags_); |
| 775 } | 775 } |
| 776 | 776 |
| 777 } // namespace aura | 777 } // namespace aura |
| OLD | NEW |