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

Side by Side Diff: ash/common/system/chromeos/palette/palette_ids.h

Issue 2291913002: Allow the user to cancel the capture region action, and show its active status in the tray. (Closed)
Patch Set: Address comments Created 4 years, 3 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/common/palette_delegate.h ('k') | ash/common/system/chromeos/palette/palette_tool.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_IDS_H_ 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_IDS_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_IDS_H_ 6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_IDS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 11
12 namespace ash { 12 namespace ash {
13 13
14 // Palette tools are grouped into different categories. Each tool corresponds to 14 // Palette tools are grouped into different categories. Each tool corresponds to
15 // exactly one group, and at most one tool can be active per group. Actions are 15 // exactly one group, and at most one tool can be active per group. Actions are
16 // actions the user wants to do, such as take a screenshot, and modes generally 16 // actions the user wants to do, such as take a screenshot, and modes generally
17 // change OS behavior, like showing a laser pointer instead of a cursor. 17 // change OS behavior, like showing a laser pointer instead of a cursor. A mode
18 // is active until the user completes the action or disables it.
18 enum class PaletteGroup { ACTION, MODE }; 19 enum class PaletteGroup { ACTION, MODE };
19 20
20 enum class PaletteToolId { 21 enum class PaletteToolId {
21 NONE, 22 NONE,
22 CREATE_NOTE, 23 CREATE_NOTE,
23 CAPTURE_REGION, 24 CAPTURE_REGION,
24 CAPTURE_SCREEN, 25 CAPTURE_SCREEN,
25 LASER_POINTER, 26 LASER_POINTER,
26 MAGNIFY, 27 MAGNIFY,
27 }; 28 };
28 29
29 // Helper functions that convert PaletteToolIds and PaletteGroups to strings. 30 // Helper functions that convert PaletteToolIds and PaletteGroups to strings.
30 ASH_EXPORT std::string PaletteToolIdToString(PaletteToolId tool_id); 31 ASH_EXPORT std::string PaletteToolIdToString(PaletteToolId tool_id);
31 ASH_EXPORT std::string PaletteGroupToString(PaletteGroup group); 32 ASH_EXPORT std::string PaletteGroupToString(PaletteGroup group);
32 33
33 } // namespace ash 34 } // namespace ash
34 35
35 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_IDS_H_ 36 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_IDS_H_
OLDNEW
« no previous file with comments | « ash/common/palette_delegate.h ('k') | ash/common/system/chromeos/palette/palette_tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698