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

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

Issue 188223002: Clean up WindowEventDispatcher some more. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 months 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
« no previous file with comments | « ui/aura/remote_window_tree_host_win.h ('k') | ui/aura/window_event_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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 delegate_->GetEventProcessor(); 492 return dispatcher();
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
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 delegate_->OnHostActivated(); 594 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
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
OLDNEW
« no previous file with comments | « ui/aura/remote_window_tree_host_win.h ('k') | ui/aura/window_event_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698