OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/shell/window_watcher_launcher_item_delegate.h" | 5 #include "ash/shell/window_watcher_launcher_item_delegate.h" |
6 | 6 |
7 #include "ash/shell/window_watcher.h" | 7 #include "ash/shell/window_watcher.h" |
8 #include "ash/wm/window_util.h" | 8 #include "ash/wm/window_util.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 ash::wm::MoveWindowToEventRoot(window, event); | 29 ash::wm::MoveWindowToEventRoot(window, event); |
30 window->Show(); | 30 window->Show(); |
31 ash::wm::ActivateWindow(window); | 31 ash::wm::ActivateWindow(window); |
32 } | 32 } |
33 | 33 |
34 base::string16 WindowWatcherLauncherItemDelegate::GetTitle() { | 34 base::string16 WindowWatcherLauncherItemDelegate::GetTitle() { |
35 return watcher_->GetWindowByID(id_)->title(); | 35 return watcher_->GetWindowByID(id_)->title(); |
36 } | 36 } |
37 | 37 |
38 ui::MenuModel* WindowWatcherLauncherItemDelegate::CreateContextMenu( | 38 ui::MenuModel* WindowWatcherLauncherItemDelegate::CreateContextMenu( |
39 aura::RootWindow* root_window) { | 39 aura::Window* root_window) { |
40 return NULL; | 40 return NULL; |
41 } | 41 } |
42 | 42 |
43 ash::LauncherMenuModel* | 43 ash::LauncherMenuModel* |
44 WindowWatcherLauncherItemDelegate::CreateApplicationMenu( | 44 WindowWatcherLauncherItemDelegate::CreateApplicationMenu( |
45 int event_flags) { | 45 int event_flags) { |
46 return NULL; | 46 return NULL; |
47 } | 47 } |
48 | 48 |
49 bool WindowWatcherLauncherItemDelegate::IsDraggable() { | 49 bool WindowWatcherLauncherItemDelegate::IsDraggable() { |
50 return true; | 50 return true; |
51 } | 51 } |
52 | 52 |
53 bool WindowWatcherLauncherItemDelegate::ShouldShowTooltip() { | 53 bool WindowWatcherLauncherItemDelegate::ShouldShowTooltip() { |
54 return true; | 54 return true; |
55 } | 55 } |
56 | 56 |
57 } // namespace shell | 57 } // namespace shell |
58 } // namespace ash | 58 } // namespace ash |
OLD | NEW |