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

Side by Side Diff: ash/public/cpp/shelf_types.h

Issue 2750463009: mash: Fix ShelfItem mojo struct; add enums and traits. (Closed)
Patch Set: Address comment. Created 3 years, 9 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
« no previous file with comments | « ash/public/cpp/shelf_struct_traits_unittest.cc ('k') | ash/public/interfaces/BUILD.gn » ('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 (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 #include <cstdint> 8 #include <cstdint>
9 9
10 #include "ash/public/cpp/ash_public_export.h" 10 #include "ash/public/cpp/ash_public_export.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // An existing inactive window was activated. 82 // An existing inactive window was activated.
83 SHELF_ACTION_WINDOW_ACTIVATED, 83 SHELF_ACTION_WINDOW_ACTIVATED,
84 84
85 // The currently active window was minimized. 85 // The currently active window was minimized.
86 SHELF_ACTION_WINDOW_MINIMIZED, 86 SHELF_ACTION_WINDOW_MINIMIZED,
87 87
88 // The app list launcher menu was shown. 88 // The app list launcher menu was shown.
89 SHELF_ACTION_APP_LIST_SHOWN, 89 SHELF_ACTION_APP_LIST_SHOWN,
90 }; 90 };
91 91
92 typedef int ShelfID; 92 // Shelf IDs are sequential values assigned to shelf items by ShelfModel for
93 const int kInvalidShelfID = 0; 93 // runtime use; they are not persisted across restarts of the ash environment.
94 using ShelfID = uint32_t;
95 const ShelfID kInvalidShelfID = 0u;
94 96
95 // The type of a shelf item. 97 // The type of a shelf item.
96 enum ShelfItemType { 98 enum ShelfItemType {
97 // Represents a running app panel. 99 // Represents a running app panel.
98 TYPE_APP_PANEL, 100 TYPE_APP_PANEL,
99 101
100 // Represents a pinned shortcut to an app, the app may be running or not. 102 // Represents a pinned shortcut to an app, the app may be running or not.
101 TYPE_PINNED_APP, 103 TYPE_PINNED_APP,
102 104
103 // Toggles visiblity of the app list. 105 // Toggles visiblity of the app list.
(...skipping 26 matching lines...) Expand all
130 STATUS_RUNNING, 132 STATUS_RUNNING,
131 // An active shelf item that has focus. 133 // An active shelf item that has focus.
132 STATUS_ACTIVE, 134 STATUS_ACTIVE,
133 // A shelf item that needs user's attention. 135 // A shelf item that needs user's attention.
134 STATUS_ATTENTION, 136 STATUS_ATTENTION,
135 }; 137 };
136 138
137 } // namespace ash 139 } // namespace ash
138 140
139 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ 141 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_
OLDNEW
« no previous file with comments | « ash/public/cpp/shelf_struct_traits_unittest.cc ('k') | ash/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698