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

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

Issue 107163005: [ash] Add TYPE_DIALOG and its item's LauncherContextMenu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 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 | Annotate | Revision Log
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_SHELF_SHELF_ITEM_DELEGATE_H_ 5 #ifndef ASH_SHELF_SHELF_ITEM_DELEGATE_H_
6 #define ASH_SHELF_SHELF_ITEM_DELEGATE_H_ 6 #define ASH_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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // - A list containing the title and the active list of items. 52 // - A list containing the title and the active list of items.
53 // The caller takes ownership of the returned model. 53 // The caller takes ownership of the returned model.
54 // |event_flags| specifies the flags of the event which triggered this menu. 54 // |event_flags| specifies the flags of the event which triggered this menu.
55 virtual ShelfMenuModel* CreateApplicationMenu(int event_flags) = 0; 55 virtual ShelfMenuModel* CreateApplicationMenu(int event_flags) = 0;
56 56
57 // Whether the launcher item is draggable. 57 // Whether the launcher item is draggable.
58 virtual bool IsDraggable() = 0; 58 virtual bool IsDraggable() = 0;
59 59
60 // Returns true if a tooltip should be shown. 60 // Returns true if a tooltip should be shown.
61 virtual bool ShouldShowTooltip() = 0; 61 virtual bool ShouldShowTooltip() = 0;
62
63 // Closes all windows associated with this item.
64 virtual void Close() = 0;
65
62 }; 66 };
63 67
64 } // namespace ash 68 } // namespace ash
65 69
66 #endif // ASH_SHELF_SHELF_ITEM_DELEGATE_H_ 70 #endif // ASH_SHELF_SHELF_ITEM_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698