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

Unified Diff: ui/views/widget/root_view.h

Issue 12212117: views: Dispatch mouse events using EventDispatch interface too. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/view.cc ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/root_view.h
diff --git a/ui/views/widget/root_view.h b/ui/views/widget/root_view.h
index 377bf24cc4b6daf73592a9af9866366d7998d7a8..a7715377713ba77a91f24cfd0a404f7787f0c30b 100644
--- a/ui/views/widget/root_view.h
+++ b/ui/views/widget/root_view.h
@@ -117,6 +117,7 @@ class VIEWS_EXPORT RootView : public View,
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
virtual gfx::Vector2d CalculateOffsetToAncestorWithLayer(
ui::Layer** layer_parent) OVERRIDE;
+ virtual View::DragInfo* GetDragInfo() OVERRIDE;
private:
friend class View;
@@ -138,6 +139,14 @@ class VIEWS_EXPORT RootView : public View,
void DispatchEventToTarget(View* target, ui::Event* event);
+ // |view| is the view receiving |event|. This function sends the event to all
+ // the Views up the hierarchy that has |notify_enter_exit_on_child_| flag
+ // turned on, but does not contain |sibling|.
+ void NotifyEnterExitOfDescendant(const ui::MouseEvent& event,
+ ui::EventType type,
+ View* view,
+ View* sibling);
+
// Overridden from ui::EventDispatcherDelegate:
virtual bool CanDispatchToTarget(ui::EventTarget* target) OVERRIDE;
« no previous file with comments | « ui/views/view.cc ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698