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

Side by Side Diff: ui/views/widget/native_widget_win.cc

Issue 11773007: Add initial support for handling touch events in desktop chrome AURA. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
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/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
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/07 15:53:45 Does this mean windows is now going to start gener
ananta 2013/01/08 00:50:22 As per our discussion, added checks in hwnd_messag
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698