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

Unified Diff: ash/test/test_launcher_delegate.cc

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/test/test_launcher_delegate.h ('k') | ash/wm/panel_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_launcher_delegate.cc
diff --git a/ash/test/test_launcher_delegate.cc b/ash/test/test_launcher_delegate.cc
index 0a09a90c2d3142abacd576be7dab27d7177243a2..348c2ec11574bd7481c59de90693720577d91a7f 100644
--- a/ash/test/test_launcher_delegate.cc
+++ b/ash/test/test_launcher_delegate.cc
@@ -5,6 +5,7 @@
#include "ash/test/test_launcher_delegate.h"
#include "ash/launcher/launcher_model.h"
+#include "ash/launcher/launcher_util.h"
#include "ash/wm/window_util.h"
#include "base/utf_string_conversions.h"
#include "grit/ash_resources.h"
@@ -63,8 +64,9 @@ void TestLauncherDelegate::OnBrowserShortcutClicked(int event_flags) {
}
void TestLauncherDelegate::ItemClicked(const ash::LauncherItem& item,
- int event_flags) {
+ const ui::Event& event) {
aura::Window* window = GetWindowByID(item.id);
+ launcher::MoveToEventRootIfPanel(window, event);
window->Show();
ash::wm::ActivateWindow(window);
}
« no previous file with comments | « ash/test/test_launcher_delegate.h ('k') | ash/wm/panel_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698