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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 2872343003: Remove InputMethodEventHandler. (Closed)
Patch Set: addressed feedback. Created 3 years, 7 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
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/views/widget/desktop_aura/desktop_window_tree_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 void DesktopWindowTreeHostWin::HandleNativeBlur(HWND focused_window) { 830 void DesktopWindowTreeHostWin::HandleNativeBlur(HWND focused_window) {
831 // TODO(beng): inform the native_widget_delegate_. 831 // TODO(beng): inform the native_widget_delegate_.
832 } 832 }
833 833
834 bool DesktopWindowTreeHostWin::HandleMouseEvent(const ui::MouseEvent& event) { 834 bool DesktopWindowTreeHostWin::HandleMouseEvent(const ui::MouseEvent& event) {
835 SendEventToSink(const_cast<ui::MouseEvent*>(&event)); 835 SendEventToSink(const_cast<ui::MouseEvent*>(&event));
836 return event.handled(); 836 return event.handled();
837 } 837 }
838 838
839 void DesktopWindowTreeHostWin::HandleKeyEvent(ui::KeyEvent* event) { 839 void DesktopWindowTreeHostWin::HandleKeyEvent(ui::KeyEvent* event) {
840 GetInputMethod()->DispatchKeyEvent(event); 840 SendEventToSink(event);
841 } 841 }
842 842
843 void DesktopWindowTreeHostWin::HandleTouchEvent( 843 void DesktopWindowTreeHostWin::HandleTouchEvent(
844 const ui::TouchEvent& event) { 844 const ui::TouchEvent& event) {
845 // HWNDMessageHandler asynchronously processes touch events. Because of this 845 // HWNDMessageHandler asynchronously processes touch events. Because of this
846 // it's possible for the aura::WindowEventDispatcher to have been destroyed 846 // it's possible for the aura::WindowEventDispatcher to have been destroyed
847 // by the time we attempt to process them. 847 // by the time we attempt to process them.
848 if (!GetWidget()->GetNativeView()) 848 if (!GetWidget()->GetNativeView())
849 return; 849 return;
850 850
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 996
997 // static 997 // static
998 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 998 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
999 internal::NativeWidgetDelegate* native_widget_delegate, 999 internal::NativeWidgetDelegate* native_widget_delegate,
1000 DesktopNativeWidgetAura* desktop_native_widget_aura) { 1000 DesktopNativeWidgetAura* desktop_native_widget_aura) {
1001 return new DesktopWindowTreeHostWin(native_widget_delegate, 1001 return new DesktopWindowTreeHostWin(native_widget_delegate,
1002 desktop_native_widget_aura); 1002 desktop_native_widget_aura);
1003 } 1003 }
1004 1004
1005 } // namespace views 1005 } // namespace views
OLDNEW
« no previous file with comments | « ui/events/test/event_generator.cc ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698