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

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

Issue 9076002: Initial views touchui Gesture Recognizer support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win release build Created 8 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
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | 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/views/widget/widget.h" 5 #include "ui/views/widget/widget.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "ui/base/hit_test.h" 10 #include "ui/base/hit_test.h"
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 } 1067 }
1068 1068
1069 void Widget::OnMouseCaptureLost() { 1069 void Widget::OnMouseCaptureLost() {
1070 if (is_mouse_button_pressed_) 1070 if (is_mouse_button_pressed_)
1071 GetRootView()->OnMouseCaptureLost(); 1071 GetRootView()->OnMouseCaptureLost();
1072 is_mouse_button_pressed_ = false; 1072 is_mouse_button_pressed_ = false;
1073 } 1073 }
1074 1074
1075 ui::TouchStatus Widget::OnTouchEvent(const TouchEvent& event) { 1075 ui::TouchStatus Widget::OnTouchEvent(const TouchEvent& event) {
1076 ScopedEvent scoped(this, event); 1076 ScopedEvent scoped(this, event);
1077 return static_cast<internal::RootView*>(GetRootView())->OnTouchEvent(event); 1077 return GetRootView()->OnTouchEvent(event);
1078 }
1079
1080 ui::GestureStatus Widget::OnGestureEvent(const GestureEvent& event) {
1081 ScopedEvent scoped(this, event);
1082 return GetRootView()->OnGestureEvent(event);
1078 } 1083 }
1079 1084
1080 bool Widget::ExecuteCommand(int command_id) { 1085 bool Widget::ExecuteCommand(int command_id) {
1081 return widget_delegate_->ExecuteWindowsCommand(command_id); 1086 return widget_delegate_->ExecuteWindowsCommand(command_id);
1082 } 1087 }
1083 1088
1084 InputMethod* Widget::GetInputMethodDirect() { 1089 InputMethod* Widget::GetInputMethodDirect() {
1085 return input_method_.get(); 1090 return input_method_.get();
1086 } 1091 }
1087 1092
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 1240
1236 //////////////////////////////////////////////////////////////////////////////// 1241 ////////////////////////////////////////////////////////////////////////////////
1237 // internal::NativeWidgetPrivate, NativeWidget implementation: 1242 // internal::NativeWidgetPrivate, NativeWidget implementation:
1238 1243
1239 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1244 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1240 return this; 1245 return this;
1241 } 1246 }
1242 1247
1243 } // namespace internal 1248 } // namespace internal
1244 } // namespace views 1249 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698