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/shelf/app_list_shelf_item_delegate.h" | 5 #include "ash/shelf/app_list_shelf_item_delegate.h" |
6 | 6 |
7 #include "ash/shelf/shelf_model.h" | 7 #include "ash/shelf/shelf_model.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/shell_delegate.h" | 9 #include "ash/shell_delegate.h" |
10 #include "grit/ash_strings.h" | 10 #include "grit/ash_strings.h" |
11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 namespace internal { | |
15 | 14 |
16 AppListShelfItemDelegate::AppListShelfItemDelegate() { | 15 AppListShelfItemDelegate::AppListShelfItemDelegate() { |
17 ShelfItem app_list; | 16 ShelfItem app_list; |
18 app_list.type = TYPE_APP_LIST; | 17 app_list.type = TYPE_APP_LIST; |
19 Shell::GetInstance()->shelf_model()->Add(app_list); | 18 Shell::GetInstance()->shelf_model()->Add(app_list); |
20 } | 19 } |
21 | 20 |
22 AppListShelfItemDelegate::~AppListShelfItemDelegate() { | 21 AppListShelfItemDelegate::~AppListShelfItemDelegate() { |
23 // ShelfItemDelegateManager owns and destroys this class. | 22 // ShelfItemDelegateManager owns and destroys this class. |
24 } | 23 } |
(...skipping 29 matching lines...) Expand all Loading... |
54 return false; | 53 return false; |
55 } | 54 } |
56 | 55 |
57 bool AppListShelfItemDelegate::ShouldShowTooltip() { | 56 bool AppListShelfItemDelegate::ShouldShowTooltip() { |
58 return true; | 57 return true; |
59 } | 58 } |
60 | 59 |
61 void AppListShelfItemDelegate::Close() { | 60 void AppListShelfItemDelegate::Close() { |
62 } | 61 } |
63 | 62 |
64 } // namespace internal | |
65 } // namespace ash | 63 } // namespace ash |
OLD | NEW |