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/test/test_launcher_item_delegate.h" | 5 #include "ash/test/test_launcher_item_delegate.h" |
6 | 6 |
7 #include "ash/wm/window_util.h" | 7 #include "ash/wm/window_util.h" |
8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
(...skipping 13 matching lines...) Expand all Loading... |
24 window_->Show(); | 24 window_->Show(); |
25 ash::wm::ActivateWindow(window_); | 25 ash::wm::ActivateWindow(window_); |
26 } | 26 } |
27 } | 27 } |
28 | 28 |
29 base::string16 TestLauncherItemDelegate::GetTitle() { | 29 base::string16 TestLauncherItemDelegate::GetTitle() { |
30 return window_ ? window_->title() : base::string16(); | 30 return window_ ? window_->title() : base::string16(); |
31 } | 31 } |
32 | 32 |
33 ui::MenuModel* TestLauncherItemDelegate::CreateContextMenu( | 33 ui::MenuModel* TestLauncherItemDelegate::CreateContextMenu( |
34 aura::RootWindow* root_window) { | 34 aura::Window* root_window) { |
35 return NULL; | 35 return NULL; |
36 } | 36 } |
37 | 37 |
38 ash::LauncherMenuModel* TestLauncherItemDelegate::CreateApplicationMenu( | 38 ash::LauncherMenuModel* TestLauncherItemDelegate::CreateApplicationMenu( |
39 int event_flags) { | 39 int event_flags) { |
40 return NULL; | 40 return NULL; |
41 } | 41 } |
42 | 42 |
43 bool TestLauncherItemDelegate::IsDraggable() { | 43 bool TestLauncherItemDelegate::IsDraggable() { |
44 return true; | 44 return true; |
45 } | 45 } |
46 | 46 |
47 bool TestLauncherItemDelegate::ShouldShowTooltip() { | 47 bool TestLauncherItemDelegate::ShouldShowTooltip() { |
48 return true; | 48 return true; |
49 } | 49 } |
50 | 50 |
51 } // namespace test | 51 } // namespace test |
52 } // namespace ash | 52 } // namespace ash |
OLD | NEW |