Chromium Code Reviews| Index: ui/views/widget/root_view.h |
| diff --git a/ui/views/widget/root_view.h b/ui/views/widget/root_view.h |
| index e8be22752a453d5c10a6985f158d8b79b9e1f1b8..297c7ec3512e4e42d7a1f6713ee9f40b01d0b24c 100644 |
| --- a/ui/views/widget/root_view.h |
| +++ b/ui/views/widget/root_view.h |
| @@ -8,6 +8,7 @@ |
| #include <string> |
| #include "base/memory/ref_counted.h" |
| +#include "ui/base/events/event_dispatcher.h" |
| #include "ui/views/focus/focus_manager.h" |
| #include "ui/views/focus/focus_search.h" |
| #include "ui/views/view.h" |
| @@ -37,7 +38,9 @@ namespace internal { |
| // TODO(beng): Clean up API further, make Widget a friend. |
| // TODO(sky): We don't really want to export this class. |
| // |
| -class VIEWS_EXPORT RootView : public View, public FocusTraversable { |
| +class VIEWS_EXPORT RootView : public View, |
| + public FocusTraversable, |
| + public ui::EventDispatcherDelegate { |
| public: |
| static const char kViewClassName[]; |
| @@ -133,6 +136,11 @@ class VIEWS_EXPORT RootView : public View, public FocusTraversable { |
| // be applied to the point prior to calling this). |
| void SetMouseLocationAndFlags(const ui::MouseEvent& event); |
| + void DispatchEventToTarget(View* target, ui::Event* event); |
| + |
| + // Overridden from ui::EventDispatcherDelegate. |
|
Ben Goodger (Google)
2013/02/14 23:14:36
nit: : not .
sadrul
2013/02/15 01:16:53
Done.
|
| + virtual bool CanDispatchToTarget(ui::EventTarget* target) OVERRIDE; |
| + |
| ////////////////////////////////////////////////////////////////////////////// |
| // Tree operations ----------------------------------------------------------- |
| @@ -187,6 +195,8 @@ class VIEWS_EXPORT RootView : public View, public FocusTraversable { |
| // wrapped inside native components, and is used for the focus traversal. |
| View* focus_traversable_parent_view_; |
| + View* event_dispatch_target_; |
| + |
| // Drag and drop ------------------------------------------------------------- |
| // Tracks drag state for a view. |