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

Side by Side Diff: ash/common/shelf/app_list_shelf_item_delegate.cc

Issue 2608013002: mash: Replace ShelfItemDelegate::CanPin with ShelfItem::pinned_by_policy. (Closed)
Patch Set: Fix test. Created 3 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 unified diff | Download patch
« no previous file with comments | « ash/common/shelf/app_list_shelf_item_delegate.h ('k') | ash/common/shelf/shelf_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/common/shelf/app_list_shelf_item_delegate.h" 5 #include "ash/common/shelf/app_list_shelf_item_delegate.h"
6 6
7 #include "ash/common/shelf/shelf_model.h" 7 #include "ash/common/shelf/shelf_model.h"
8 #include "ash/common/wm_shell.h" 8 #include "ash/common/wm_shell.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "grit/ash_strings.h" 10 #include "grit/ash_strings.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 : IDS_ASH_SHELF_APP_LIST_LAUNCHER_TITLE; 48 : IDS_ASH_SHELF_APP_LIST_LAUNCHER_TITLE;
49 return l10n_util::GetStringUTF16(title_id); 49 return l10n_util::GetStringUTF16(title_id);
50 } 50 }
51 51
52 ShelfMenuModel* AppListShelfItemDelegate::CreateApplicationMenu( 52 ShelfMenuModel* AppListShelfItemDelegate::CreateApplicationMenu(
53 int event_flags) { 53 int event_flags) {
54 // AppList does not show an application menu. 54 // AppList does not show an application menu.
55 return NULL; 55 return NULL;
56 } 56 }
57 57
58 bool AppListShelfItemDelegate::CanPin() const {
59 return true;
60 }
61
62 void AppListShelfItemDelegate::Close() {} 58 void AppListShelfItemDelegate::Close() {}
63 59
64 } // namespace ash 60 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/shelf/app_list_shelf_item_delegate.h ('k') | ash/common/shelf/shelf_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698