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

Unified Diff: ash/launcher/launcher_delegate.h

Issue 12093075: Move the panel to the root window where the mouse click occurred. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated comment Created 7 years, 11 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 | « ash/launcher/launcher.cc ('k') | ash/launcher/launcher_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_delegate.h
diff --git a/ash/launcher/launcher_delegate.h b/ash/launcher/launcher_delegate.h
index 1e3288fe15478c90bc5a943f1eb966778c40b8f1..e10c5dc683326320479b130cb419dca8d13b96eb 100644
--- a/ash/launcher/launcher_delegate.h
+++ b/ash/launcher/launcher_delegate.h
@@ -14,6 +14,7 @@ class RootWindow;
}
namespace ui {
+class Event;
class MenuModel;
}
@@ -31,8 +32,11 @@ class ASH_EXPORT LauncherDelegate {
virtual void OnBrowserShortcutClicked(int event_flags) = 0;
// Invoked when the user clicks on a window entry in the launcher.
- // |event_flags| is the flags of the click event.
- virtual void ItemClicked(const LauncherItem& item, int event_flags) = 0;
+ // |event| is the click event. The |event| is dispatched by a view
+ // and has an instance of |views::View| as the event target
+ // but not |aura::Window|.
+ virtual void ItemClicked(const LauncherItem& item,
+ const ui::Event& event) = 0;
// Returns the resource id of the image to show on the browser shortcut
// button.
« no previous file with comments | « ash/launcher/launcher.cc ('k') | ash/launcher/launcher_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698