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

Unified Diff: views/widget/window_manager.h

Issue 7740039: Don't activate POPUP window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 4 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: views/widget/window_manager.h
diff --git a/views/widget/window_manager.h b/views/widget/window_manager.h
index 56f785ceac65df0057becd9de21ed41057d66790..02015cc0e6aa6b1947209dc043b9a9b7314ed90d 100644
--- a/views/widget/window_manager.h
+++ b/views/widget/window_manager.h
@@ -14,6 +14,7 @@ class Point;
}
namespace views {
+class KeyEvent;
class MouseEvent;
class Widget;
@@ -47,8 +48,15 @@ class VIEWS_EXPORT WindowManager {
// WindowManager handles mouse event first. It may reisze/move window,
// or send the event to widget that has mouse capture.
+ virtual bool HandleKeyEvent(Widget* widget, const KeyEvent& event) = 0;
+
+ // WindowManager handles mouse event first. It may reisze/move window,
+ // or send the event to widget that has mouse capture.
virtual bool HandleMouseEvent(Widget* widget, const MouseEvent& event) = 0;
+ // Register widget to the window manager.
+ virtual void Register(Widget* widget) = 0;
+
// Installs window manager.
static void Install(WindowManager* wm);

Powered by Google App Engine
This is Rietveld 408576698