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

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

Issue 2750463009: mash: Fix ShelfItem mojo struct; add enums and traits. (Closed)
Patch Set: Sync and rebase. 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
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 typedef int64_t ShelfID;
James Cook 2017/03/16 16:48:50 nit: using ShelfID = int64_t Also, are there any
msw 2017/03/16 23:15:50 Done.
93 const int kInvalidShelfID = 0; 93 const int64_t kInvalidShelfID = 0;
94 94
95 // The type of a shelf item. 95 // The type of a shelf item.
96 enum ShelfItemType { 96 enum ShelfItemType {
97 // Represents a running app panel. 97 // Represents a running app panel.
98 TYPE_APP_PANEL, 98 TYPE_APP_PANEL,
99 99
100 // Represents a pinned shortcut to an app, the app may be running or not. 100 // Represents a pinned shortcut to an app, the app may be running or not.
101 TYPE_PINNED_APP, 101 TYPE_PINNED_APP,
102 102
103 // Toggles visiblity of the app list. 103 // Toggles visiblity of the app list.
(...skipping 26 matching lines...) Expand all
130 STATUS_RUNNING, 130 STATUS_RUNNING,
131 // An active shelf item that has focus. 131 // An active shelf item that has focus.
132 STATUS_ACTIVE, 132 STATUS_ACTIVE,
133 // A shelf item that needs user's attention. 133 // A shelf item that needs user's attention.
134 STATUS_ATTENTION, 134 STATUS_ATTENTION,
135 }; 135 };
136 136
137 } // namespace ash 137 } // namespace ash
138 138
139 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ 139 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698