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

Unified Diff: ash/shell/window_watcher_shelf_item_delegate.cc

Issue 2696073002: Merge ShelfItemDelegate::ItemSelected & LauncherItemDelegate::Activate. (Closed)
Patch Set: Cleanup Created 3 years, 10 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: ash/shell/window_watcher_shelf_item_delegate.cc
diff --git a/ash/shell/window_watcher_shelf_item_delegate.cc b/ash/shell/window_watcher_shelf_item_delegate.cc
index 935186d56a7dd45ab0da9557192eca83384b2f54..186d659f3c586fb0a8816656a4c36d6914dfa670 100644
--- a/ash/shell/window_watcher_shelf_item_delegate.cc
+++ b/ash/shell/window_watcher_shelf_item_delegate.cc
@@ -21,11 +21,14 @@ WindowWatcherShelfItemDelegate::WindowWatcherShelfItemDelegate(
WindowWatcherShelfItemDelegate::~WindowWatcherShelfItemDelegate() {}
-ShelfItemDelegate::PerformedAction WindowWatcherShelfItemDelegate::ItemSelected(
- const ui::Event& event) {
+ShelfAction WindowWatcherShelfItemDelegate::ItemSelected(
+ ui::EventType event_type,
+ int event_flags,
+ int64_t display_id,
+ ShelfLaunchSource source) {
aura::Window* window = watcher_->GetWindowByID(id_);
if (window->type() == ui::wm::WINDOW_TYPE_PANEL)
- wm::MoveWindowToEventRoot(window, event);
+ wm::MoveWindowToDisplay(window, display_id);
window->Show();
wm::ActivateWindow(window);
return kExistingWindowActivated;

Powered by Google App Engine
This is Rietveld 408576698