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

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

Issue 10912063: events: Get rid of GestureStatus in favour of EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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/native_widget_delegate.h ('k') | ui/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) 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 #ifndef UI_VIEWS_WIDGET_ROOT_VIEW_H_ 5 #ifndef UI_VIEWS_WIDGET_ROOT_VIEW_H_
6 #define UI_VIEWS_WIDGET_ROOT_VIEW_H_ 6 #define UI_VIEWS_WIDGET_ROOT_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; 99 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE;
100 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 100 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
101 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 101 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
102 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 102 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
103 virtual void OnMouseCaptureLost() OVERRIDE; 103 virtual void OnMouseCaptureLost() OVERRIDE;
104 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; 104 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE;
105 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 105 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
106 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; 106 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE;
107 virtual bool OnScrollEvent(const ui::ScrollEvent& event) OVERRIDE; 107 virtual bool OnScrollEvent(const ui::ScrollEvent& event) OVERRIDE;
108 virtual ui::TouchStatus OnTouchEvent(const ui::TouchEvent& event) OVERRIDE; 108 virtual ui::TouchStatus OnTouchEvent(const ui::TouchEvent& event) OVERRIDE;
109 virtual ui::GestureStatus OnGestureEvent( 109 virtual ui::EventResult OnGestureEvent(
110 const ui::GestureEvent& event) OVERRIDE; 110 const ui::GestureEvent& event) OVERRIDE;
111 virtual void SetMouseHandler(View* new_mouse_handler) OVERRIDE; 111 virtual void SetMouseHandler(View* new_mouse_handler) OVERRIDE;
112 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 112 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
113 virtual void ReorderChildLayers(ui::Layer* parent_layer) OVERRIDE; 113 virtual void ReorderChildLayers(ui::Layer* parent_layer) OVERRIDE;
114 114
115 protected: 115 protected:
116 // Overridden from View: 116 // Overridden from View:
117 virtual void ViewHierarchyChanged(bool is_add, View* parent, 117 virtual void ViewHierarchyChanged(bool is_add, View* parent,
118 View* child) OVERRIDE; 118 View* child) OVERRIDE;
119 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 119 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // Tracks drag state for a view. 198 // Tracks drag state for a view.
199 View::DragInfo drag_info_; 199 View::DragInfo drag_info_;
200 200
201 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); 201 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView);
202 }; 202 };
203 203
204 } // namespace internal 204 } // namespace internal
205 } // namespace views 205 } // namespace views
206 206
207 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ 207 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_delegate.h ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698