| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_CPP_SHELF_TYPES_H_ | 5 #ifndef ASH_PUBLIC_CPP_SHELF_TYPES_H_ |
| 6 #define ASH_PUBLIC_CPP_SHELF_TYPES_H_ | 6 #define ASH_PUBLIC_CPP_SHELF_TYPES_H_ |
| 7 | 7 |
| 8 namespace ash { | 8 namespace ash { |
| 9 | 9 |
| 10 enum ShelfAlignment { | 10 enum ShelfAlignment { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // The default transparent background. | 48 // The default transparent background. |
| 49 SHELF_BACKGROUND_DEFAULT, | 49 SHELF_BACKGROUND_DEFAULT, |
| 50 | 50 |
| 51 // The background when a window is overlapping. | 51 // The background when a window is overlapping. |
| 52 SHELF_BACKGROUND_OVERLAP, | 52 SHELF_BACKGROUND_OVERLAP, |
| 53 | 53 |
| 54 // The background when a window is maximized. | 54 // The background when a window is maximized. |
| 55 SHELF_BACKGROUND_MAXIMIZED, | 55 SHELF_BACKGROUND_MAXIMIZED, |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 // Source of the launch or activation request, for tracking. |
| 59 enum ShelfLaunchSource { |
| 60 // The item was launched from an unknown source (ie. not the app list). |
| 61 LAUNCH_FROM_UNKNOWN, |
| 62 |
| 63 // The item was launched from a generic app list view. |
| 64 LAUNCH_FROM_APP_LIST, |
| 65 |
| 66 // The item was launched from an app list search view. |
| 67 LAUNCH_FROM_APP_LIST_SEARCH, |
| 68 }; |
| 69 |
| 70 // The actions that may be performed when a shelf item is selected. |
| 71 enum ShelfAction { |
| 72 // No action was taken. |
| 73 SHELF_ACTION_NONE, |
| 74 |
| 75 // A new window was created. |
| 76 SHELF_ACTION_NEW_WINDOW_CREATED, |
| 77 |
| 78 // An existing inactive window was activated. |
| 79 SHELF_ACTION_WINDOW_ACTIVATED, |
| 80 |
| 81 // The currently active window was minimized. |
| 82 SHELF_ACTION_WINDOW_MINIMIZED, |
| 83 |
| 84 // The app list launcher menu was shown. |
| 85 SHELF_ACTION_APP_LIST_SHOWN, |
| 86 }; |
| 87 |
| 58 typedef int ShelfID; | 88 typedef int ShelfID; |
| 59 const int kInvalidShelfID = 0; | 89 const int kInvalidShelfID = 0; |
| 60 | 90 |
| 61 // The type of a shelf item. | 91 // The type of a shelf item. |
| 62 enum ShelfItemType { | 92 enum ShelfItemType { |
| 63 // Represents a running app panel. | 93 // Represents a running app panel. |
| 64 TYPE_APP_PANEL, | 94 TYPE_APP_PANEL, |
| 65 | 95 |
| 66 // Represents a pinned shortcut to an app. | 96 // Represents a pinned shortcut to an app. |
| 67 TYPE_APP_SHORTCUT, | 97 TYPE_APP_SHORTCUT, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 92 STATUS_RUNNING, | 122 STATUS_RUNNING, |
| 93 // An active shelf item that has focus. | 123 // An active shelf item that has focus. |
| 94 STATUS_ACTIVE, | 124 STATUS_ACTIVE, |
| 95 // A shelf item that needs user's attention. | 125 // A shelf item that needs user's attention. |
| 96 STATUS_ATTENTION, | 126 STATUS_ATTENTION, |
| 97 }; | 127 }; |
| 98 | 128 |
| 99 } // namespace ash | 129 } // namespace ash |
| 100 | 130 |
| 101 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ | 131 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ |
| OLD | NEW |