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 #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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // cursor during drag operations. The location of the mouse should be in the | 138 // cursor during drag operations. The location of the mouse should be in the |
139 // current coordinate system (i.e. any necessary transformation should be | 139 // current coordinate system (i.e. any necessary transformation should be |
140 // applied to the point prior to calling this). | 140 // applied to the point prior to calling this). |
141 void UpdateCursor(const ui::MouseEvent& event); | 141 void UpdateCursor(const ui::MouseEvent& event); |
142 | 142 |
143 // Updates the last_mouse_* fields from e. The location of the mouse should be | 143 // Updates the last_mouse_* fields from e. The location of the mouse should be |
144 // in the current coordinate system (i.e. any necessary transformation should | 144 // in the current coordinate system (i.e. any necessary transformation should |
145 // be applied to the point prior to calling this). | 145 // be applied to the point prior to calling this). |
146 void SetMouseLocationAndFlags(const ui::MouseEvent& event); | 146 void SetMouseLocationAndFlags(const ui::MouseEvent& event); |
147 | 147 |
148 ui::EventDispatchDetails DispatchEventToTarget( | 148 void DispatchEventToTarget(View* target, ui::Event* event); |
149 View* target, | |
150 ui::Event* event) WARN_UNUSED_RESULT; | |
151 | 149 |
152 // |view| is the view receiving |event|. This function sends the event to all | 150 // |view| is the view receiving |event|. This function sends the event to all |
153 // the Views up the hierarchy that has |notify_enter_exit_on_child_| flag | 151 // the Views up the hierarchy that has |notify_enter_exit_on_child_| flag |
154 // turned on, but does not contain |sibling|. | 152 // turned on, but does not contain |sibling|. |
155 void NotifyEnterExitOfDescendant(const ui::MouseEvent& event, | 153 void NotifyEnterExitOfDescendant(const ui::MouseEvent& event, |
156 ui::EventType type, | 154 ui::EventType type, |
157 View* view, | 155 View* view, |
158 View* sibling); | 156 View* sibling); |
159 | 157 |
160 // Dispatches the KeyEvent to |view| and ancestors until the event is | 158 // Dispatches the KeyEvent to |view| and ancestors until the event is |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 // Tracks drag state for a view. | 223 // Tracks drag state for a view. |
226 View::DragInfo drag_info_; | 224 View::DragInfo drag_info_; |
227 | 225 |
228 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); | 226 DISALLOW_IMPLICIT_CONSTRUCTORS(RootView); |
229 }; | 227 }; |
230 | 228 |
231 } // namespace internal | 229 } // namespace internal |
232 } // namespace views | 230 } // namespace views |
233 | 231 |
234 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ | 232 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_H_ |
OLD | NEW |