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

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

Issue 2702423004: Validate incoming window properties. (Closed)
Patch Set: msw comments Created 3 years, 10 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/BUILD.gn ('k') | ash/public/cpp/shelf_types.cc » ('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>
9
10 #include "ash/public/cpp/ash_public_export.h"
11
8 namespace ash { 12 namespace ash {
9 13
10 enum ShelfAlignment { 14 enum ShelfAlignment {
11 SHELF_ALIGNMENT_BOTTOM, 15 SHELF_ALIGNMENT_BOTTOM,
12 SHELF_ALIGNMENT_LEFT, 16 SHELF_ALIGNMENT_LEFT,
13 SHELF_ALIGNMENT_RIGHT, 17 SHELF_ALIGNMENT_RIGHT,
14 // Top has never been supported. 18 // Top has never been supported.
15 19
16 // The locked alignment is set temporarily and not saved to preferences. 20 // The locked alignment is set temporarily and not saved to preferences.
17 SHELF_ALIGNMENT_BOTTOM_LOCKED, 21 SHELF_ALIGNMENT_BOTTOM_LOCKED,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // ARC (App Runtime for Chrome - Android Play Store) apps. 111 // ARC (App Runtime for Chrome - Android Play Store) apps.
108 TYPE_APP, 112 TYPE_APP,
109 113
110 // Represents a dialog. 114 // Represents a dialog.
111 TYPE_DIALOG, 115 TYPE_DIALOG,
112 116
113 // Default value. 117 // Default value.
114 TYPE_UNDEFINED, 118 TYPE_UNDEFINED,
115 }; 119 };
116 120
121 // Returns true if |i| is a valid ShelfItemType.
msw 2017/02/23 23:22:35 nit: i->type
Elliot Glaysher 2017/02/23 23:26:20 Done.
122 ASH_PUBLIC_EXPORT bool IsValidShelfItemType(int64_t type);
123
117 // Represents the status of applications in the shelf. 124 // Represents the status of applications in the shelf.
118 enum ShelfItemStatus { 125 enum ShelfItemStatus {
119 // A closed shelf item, i.e. has no live instance. 126 // A closed shelf item, i.e. has no live instance.
120 STATUS_CLOSED, 127 STATUS_CLOSED,
121 // A shelf item that has live instance. 128 // A shelf item that has live instance.
122 STATUS_RUNNING, 129 STATUS_RUNNING,
123 // An active shelf item that has focus. 130 // An active shelf item that has focus.
124 STATUS_ACTIVE, 131 STATUS_ACTIVE,
125 // A shelf item that needs user's attention. 132 // A shelf item that needs user's attention.
126 STATUS_ATTENTION, 133 STATUS_ATTENTION,
127 }; 134 };
128 135
129 } // namespace ash 136 } // namespace ash
130 137
131 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ 138 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_
OLDNEW
« no previous file with comments | « ash/public/cpp/BUILD.gn ('k') | ash/public/cpp/shelf_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698