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

Side by Side Diff: views/widget/root_view.h

Issue 6347002: touch: Return an enum from OnTouchEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 9 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 | « views/view_unittest.cc ('k') | views/widget/root_view.cc » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef VIEWS_WIDGET_ROOT_VIEW_H_ 5 #ifndef VIEWS_WIDGET_ROOT_VIEW_H_
6 #define VIEWS_WIDGET_ROOT_VIEW_H_ 6 #define VIEWS_WIDGET_ROOT_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 void NotifyLocaleChanged(); 91 void NotifyLocaleChanged();
92 92
93 // The following event methods are overridden to propagate event to the 93 // The following event methods are overridden to propagate event to the
94 // control tree 94 // control tree
95 virtual bool OnMousePressed(const MouseEvent& e); 95 virtual bool OnMousePressed(const MouseEvent& e);
96 virtual bool OnMouseDragged(const MouseEvent& e); 96 virtual bool OnMouseDragged(const MouseEvent& e);
97 virtual void OnMouseReleased(const MouseEvent& e, bool canceled); 97 virtual void OnMouseReleased(const MouseEvent& e, bool canceled);
98 virtual void OnMouseMoved(const MouseEvent& e); 98 virtual void OnMouseMoved(const MouseEvent& e);
99 virtual void SetMouseHandler(View* new_mouse_handler); 99 virtual void SetMouseHandler(View* new_mouse_handler);
100 #if defined(TOUCH_UI) 100 #if defined(TOUCH_UI)
101 virtual bool OnTouchEvent(const TouchEvent& e); 101 virtual TouchStatus OnTouchEvent(const TouchEvent& e);
102 #endif 102 #endif
103 103
104 // Invoked By the Widget if the mouse drag is interrupted by 104 // Invoked By the Widget if the mouse drag is interrupted by
105 // the system. Invokes OnMouseReleased with a value of true for canceled. 105 // the system. Invokes OnMouseReleased with a value of true for canceled.
106 void ProcessMouseDragCanceled(); 106 void ProcessMouseDragCanceled();
107 107
108 // Invoked by the Widget instance when the mouse moves outside of the Widget 108 // Invoked by the Widget instance when the mouse moves outside of the Widget
109 // bounds. 109 // bounds.
110 virtual void ProcessOnMouseExited(); 110 virtual void ProcessOnMouseExited();
111 111
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 #ifndef NDEBUG 351 #ifndef NDEBUG
352 // True if we're currently processing paint. 352 // True if we're currently processing paint.
353 bool is_processing_paint_; 353 bool is_processing_paint_;
354 #endif 354 #endif
355 DISALLOW_COPY_AND_ASSIGN(RootView); 355 DISALLOW_COPY_AND_ASSIGN(RootView);
356 }; 356 };
357 } // namespace views 357 } // namespace views
358 358
359 #endif // VIEWS_WIDGET_ROOT_VIEW_H_ 359 #endif // VIEWS_WIDGET_ROOT_VIEW_H_
OLDNEW
« no previous file with comments | « views/view_unittest.cc ('k') | views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698