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/native_widget_win.h" | 5 #include "ui/views/widget/native_widget_win.h" |
6 | 6 |
7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
774 return event.handled(); | 774 return event.handled(); |
775 } | 775 } |
776 | 776 |
777 bool NativeWidgetWin::HandleUntranslatedKeyEvent(const ui::KeyEvent& event) { | 777 bool NativeWidgetWin::HandleUntranslatedKeyEvent(const ui::KeyEvent& event) { |
778 InputMethod* input_method = GetInputMethod(); | 778 InputMethod* input_method = GetInputMethod(); |
779 if (input_method) | 779 if (input_method) |
780 input_method->DispatchKeyEvent(event); | 780 input_method->DispatchKeyEvent(event); |
781 return !!input_method; | 781 return !!input_method; |
782 } | 782 } |
783 | 783 |
784 bool NativeWidgetWin::HandleTouchEvent(const ui::TouchEvent& event) { | |
785 delegate_->OnTouchEvent(const_cast<ui::TouchEvent*>(&event)); | |
sky
2013/01/08 04:52:13
Shouldn't this be a NOTREACHED?
ananta
2013/01/08 18:51:20
Done.
| |
786 return event.handled(); | |
787 } | |
788 | |
784 bool NativeWidgetWin::HandleIMEMessage(UINT message, | 789 bool NativeWidgetWin::HandleIMEMessage(UINT message, |
785 WPARAM w_param, | 790 WPARAM w_param, |
786 LPARAM l_param, | 791 LPARAM l_param, |
787 LRESULT* result) { | 792 LRESULT* result) { |
788 InputMethod* input_method = GetInputMethod(); | 793 InputMethod* input_method = GetInputMethod(); |
789 if (!input_method || input_method->IsMock()) { | 794 if (!input_method || input_method->IsMock()) { |
790 *result = 0; | 795 *result = 0; |
791 return false; | 796 return false; |
792 } | 797 } |
793 | 798 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1030 // static | 1035 // static |
1031 bool NativeWidgetPrivate::IsTouchDown() { | 1036 bool NativeWidgetPrivate::IsTouchDown() { |
1032 // This currently isn't necessary because we're not generating touch events on | 1037 // This currently isn't necessary because we're not generating touch events on |
1033 // windows. When we do, this will need to be updated. | 1038 // windows. When we do, this will need to be updated. |
1034 return false; | 1039 return false; |
1035 } | 1040 } |
1036 | 1041 |
1037 } // namespace internal | 1042 } // namespace internal |
1038 | 1043 |
1039 } // namespace views | 1044 } // namespace views |
OLD | NEW |