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

Side by Side Diff: ash/common/shelf/shelf_item_delegate.h

Issue 2575613002: Remove ShelfItemDelegate::IsDraggable; check for app list button. (Closed)
Patch Set: Address comments. Created 4 years 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/shelf_controller.cc ('k') | ash/common/shelf/shelf_view.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 #ifndef ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_ 5 #ifndef ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_
6 #define ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_ 6 #define ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // possible return values: 56 // possible return values:
57 // - A return of NULL indicates that no menu is wanted for this item. 57 // - A return of NULL indicates that no menu is wanted for this item.
58 // - A return of a menu with one item means that only the name of the 58 // - A return of a menu with one item means that only the name of the
59 // application/item was added and there are no active applications. 59 // application/item was added and there are no active applications.
60 // Note: This is useful for hover menus which also show context help. 60 // Note: This is useful for hover menus which also show context help.
61 // - A list containing the title and the active list of items. 61 // - A list containing the title and the active list of items.
62 // The caller takes ownership of the returned model. 62 // The caller takes ownership of the returned model.
63 // |event_flags| specifies the flags of the event which triggered this menu. 63 // |event_flags| specifies the flags of the event which triggered this menu.
64 virtual ShelfMenuModel* CreateApplicationMenu(int event_flags) = 0; 64 virtual ShelfMenuModel* CreateApplicationMenu(int event_flags) = 0;
65 65
66 // Whether the launcher item is draggable.
67 virtual bool IsDraggable() = 0;
68
69 // Closes all windows associated with this item. 66 // Closes all windows associated with this item.
70 virtual void Close() = 0; 67 virtual void Close() = 0;
71 }; 68 };
72 69
73 } // namespace ash 70 } // namespace ash
74 71
75 #endif // ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_ 72 #endif // ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/common/shelf/shelf_controller.cc ('k') | ash/common/shelf/shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698