| 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/views/widget/desktop_aura/desktop_root_window_host_win.h" | 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h" |
| 6 | 6 |
| 7 #include "third_party/skia/include/core/SkPath.h" | 7 #include "third_party/skia/include/core/SkPath.h" |
| 8 #include "third_party/skia/include/core/SkRegion.h" | 8 #include "third_party/skia/include/core/SkRegion.h" |
| 9 #include "ui/aura/client/aura_constants.h" | 9 #include "ui/aura/client/aura_constants.h" |
| 10 #include "ui/aura/client/default_capture_client.h" | 10 #include "ui/aura/client/default_capture_client.h" |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 return false; | 673 return false; |
| 674 } | 674 } |
| 675 | 675 |
| 676 bool DesktopRootWindowHostWin::HandleUntranslatedKeyEvent( | 676 bool DesktopRootWindowHostWin::HandleUntranslatedKeyEvent( |
| 677 const ui::KeyEvent& event) { | 677 const ui::KeyEvent& event) { |
| 678 scoped_ptr<ui::KeyEvent> duplicate_event(event.Copy()); | 678 scoped_ptr<ui::KeyEvent> duplicate_event(event.Copy()); |
| 679 return static_cast<aura::RootWindowHostDelegate*>(root_window_)-> | 679 return static_cast<aura::RootWindowHostDelegate*>(root_window_)-> |
| 680 OnHostKeyEvent(duplicate_event.get()); | 680 OnHostKeyEvent(duplicate_event.get()); |
| 681 } | 681 } |
| 682 | 682 |
| 683 bool DesktopRootWindowHostWin::HandleTouchEvent( |
| 684 const ui::TouchEvent& event) { |
| 685 return root_window_host_delegate_->OnHostTouchEvent( |
| 686 const_cast<ui::TouchEvent*>(&event)); |
| 687 } |
| 688 |
| 683 bool DesktopRootWindowHostWin::HandleIMEMessage(UINT message, | 689 bool DesktopRootWindowHostWin::HandleIMEMessage(UINT message, |
| 684 WPARAM w_param, | 690 WPARAM w_param, |
| 685 LPARAM l_param, | 691 LPARAM l_param, |
| 686 LRESULT* result) { | 692 LRESULT* result) { |
| 687 // TODO(ime): Having to cast here is wrong. Maybe we should have IME events | 693 // TODO(ime): Having to cast here is wrong. Maybe we should have IME events |
| 688 // and have these flow through the same path as HandleUntranslatedKeyEvent() | 694 // and have these flow through the same path as HandleUntranslatedKeyEvent() |
| 689 // does. | 695 // does. |
| 690 ui::InputMethodWin* ime_win = | 696 ui::InputMethodWin* ime_win = |
| 691 static_cast<ui::InputMethodWin*>( | 697 static_cast<ui::InputMethodWin*>( |
| 692 desktop_native_widget_aura_->input_method_event_filter()-> | 698 desktop_native_widget_aura_->input_method_event_filter()-> |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 770 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
| 765 internal::NativeWidgetDelegate* native_widget_delegate, | 771 internal::NativeWidgetDelegate* native_widget_delegate, |
| 766 DesktopNativeWidgetAura* desktop_native_widget_aura, | 772 DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 767 const gfx::Rect& initial_bounds) { | 773 const gfx::Rect& initial_bounds) { |
| 768 return new DesktopRootWindowHostWin(native_widget_delegate, | 774 return new DesktopRootWindowHostWin(native_widget_delegate, |
| 769 desktop_native_widget_aura, | 775 desktop_native_widget_aura, |
| 770 initial_bounds); | 776 initial_bounds); |
| 771 } | 777 } |
| 772 | 778 |
| 773 } // namespace views | 779 } // namespace views |
| OLD | NEW |