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

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

Issue 307623002: MacViews: Replace NativeWidget::GetEventHandler() with RepostNativeEvent(..) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20140528-MacViews-examples_exe
Patch Set: Created 6 years, 7 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
Index: ui/views/widget/native_widget.h
diff --git a/ui/views/widget/native_widget.h b/ui/views/widget/native_widget.h
index 39255ffc9c10141bd2a9a456083b718a1c7ec615..7d4c038674b04145729e26ea89ce1d1026d511c3 100644
--- a/ui/views/widget/native_widget.h
+++ b/ui/views/widget/native_widget.h
@@ -5,12 +5,9 @@
#ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_H_
#define UI_VIEWS_WIDGET_NATIVE_WIDGET_H_
+#include "ui/gfx/native_widget_types.h"
#include "ui/views/widget/widget.h"
-namespace ui {
-class EventHandler;
-}
-
namespace views {
namespace internal {
class NativeWidgetPrivate;
@@ -30,8 +27,8 @@ class VIEWS_EXPORT NativeWidget {
public:
virtual ~NativeWidget() {}
- // Retrieves the event handler
- virtual ui::EventHandler* GetEventHandler() = 0;
+ // Repost an unhandled event to the native widget for default OS processing.
+ virtual void RepostNativeEvent(gfx::NativeEvent os_event) = 0;
sadrul 2014/05/29 23:09:27 |os_event| may be confusing here, because in aura,
tapted 2014/05/30 01:59:44 Done.
private:
friend class Widget;

Powered by Google App Engine
This is Rietveld 408576698