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

Unified Diff: ash/launcher/launcher_util.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_delegate.h ('k') | ash/launcher/launcher_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_util.h
diff --git a/ash/launcher/launcher_util.h b/ash/launcher/launcher_util.h
index 89551f064abdc76900d65593cdd9864112e7eea0..7cdd1f283e25599af5361c08368021e05427fc71 100644
--- a/ash/launcher/launcher_util.h
+++ b/ash/launcher/launcher_util.h
@@ -7,6 +7,14 @@
#include "ash/ash_export.h"
+namespace aura {
+class Window;
+}
+
+namespace ui {
+class Event;
+}
+
namespace ash {
class LauncherModel;
@@ -15,6 +23,12 @@ namespace launcher {
// Return the index of the browser item from a given |launcher_model|.
ASH_EXPORT int GetBrowserItemIndex(const LauncherModel& launcher_model);
+// Move the |maybe_panel| to the root window where the |event| occured if
+// |maybe_panel| is of aura::client::WINDOW_TYPE_PANEL and it's not
+// in the same root window.
+ASH_EXPORT void MoveToEventRootIfPanel(aura::Window* maybe_panel,
+ const ui::Event& event);
+
} // namespace launcher
} // namespace ash
« no previous file with comments | « ash/launcher/launcher_delegate.h ('k') | ash/launcher/launcher_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698