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

Side by Side Diff: ash/launcher/launcher_types.h

Issue 123073002: Move CycleDirection enum into shelf_constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/shelf/shelf.h » ('j') | ash/shelf/shelf.h » ('J')
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_LAUNCHER_LAUNCHER_TYPES_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_TYPES_H_
6 #define ASH_LAUNCHER_LAUNCHER_TYPES_H_ 6 #define ASH_LAUNCHER_LAUNCHER_TYPES_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Assigned by the model when the item is added. 63 // Assigned by the model when the item is added.
64 LauncherID id; 64 LauncherID id;
65 65
66 // Running status. 66 // Running status.
67 LauncherItemStatus status; 67 LauncherItemStatus status;
68 }; 68 };
69 69
70 typedef std::vector<LauncherItem> LauncherItems; 70 typedef std::vector<LauncherItem> LauncherItems;
71 71
72 // The direction of the focus cycling.
73 enum CycleDirection {
74 CYCLE_FORWARD,
75 CYCLE_BACKWARD
76 };
77
78 // LauncherItemDetails may be set on Window (by way of 72 // LauncherItemDetails may be set on Window (by way of
79 // SetShelfItemDetailsForWindow) to make the window appear in the shelf. See 73 // SetShelfItemDetailsForWindow) to make the window appear in the shelf. See
80 // ShelfWindowWatcher for details. 74 // ShelfWindowWatcher for details.
81 struct ASH_EXPORT LauncherItemDetails { 75 struct ASH_EXPORT LauncherItemDetails {
82 LauncherItemDetails(); 76 LauncherItemDetails();
83 ~LauncherItemDetails(); 77 ~LauncherItemDetails();
84 78
85 LauncherItemType type; 79 LauncherItemType type;
86 80
87 // Resource id of the image to display on the shelf. 81 // Resource id of the image to display on the shelf.
88 int image_resource_id; 82 int image_resource_id;
89 83
90 // Title of the item. 84 // Title of the item.
91 base::string16 title; 85 base::string16 title;
92 }; 86 };
93 87
94 } // namespace ash 88 } // namespace ash
95 89
96 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ 90 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shelf/shelf.h » ('j') | ash/shelf/shelf.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698