| 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 #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 Loading... |
| 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_ |
| OLD | NEW |