| 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_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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // The caller takes ownership of the returned model. | 63 // The caller takes ownership of the returned model. |
| 64 // |event_flags| specifies the flags of the event which triggered this menu. | 64 // |event_flags| specifies the flags of the event which triggered this menu. |
| 65 virtual ShelfMenuModel* CreateApplicationMenu(int event_flags) = 0; | 65 virtual ShelfMenuModel* CreateApplicationMenu(int event_flags) = 0; |
| 66 | 66 |
| 67 // Whether the launcher item is draggable. | 67 // Whether the launcher item is draggable. |
| 68 virtual bool IsDraggable() = 0; | 68 virtual bool IsDraggable() = 0; |
| 69 | 69 |
| 70 // Returns true if a tooltip should be shown. | 70 // Returns true if a tooltip should be shown. |
| 71 virtual bool ShouldShowTooltip() = 0; | 71 virtual bool ShouldShowTooltip() = 0; |
| 72 | 72 |
| 73 // Returns true if this item is open. |
| 74 virtual bool IsOpen() const = 0; |
| 75 |
| 73 // Closes all windows associated with this item. | 76 // Closes all windows associated with this item. |
| 74 virtual void Close() = 0; | 77 virtual void Close() = 0; |
| 75 }; | 78 }; |
| 76 | 79 |
| 77 } // namespace ash | 80 } // namespace ash |
| 78 | 81 |
| 79 #endif // ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_ | 82 #endif // ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_ |
| OLD | NEW |