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

Unified Diff: ash/common/system/chromeos/palette/palette_ids.h

Issue 2140343002: Add palette tool/manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylus-add-icons
Patch Set: Remove base::Optional, use VECTOR_ICON_NONE instead Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/ash.gyp ('k') | ash/common/system/chromeos/palette/palette_ids.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/palette/palette_ids.h
diff --git a/ash/common/system/chromeos/palette/palette_ids.h b/ash/common/system/chromeos/palette/palette_ids.h
new file mode 100644
index 0000000000000000000000000000000000000000..bc33f972325ad03c225ecb70399c108f04e8272d
--- /dev/null
+++ b/ash/common/system/chromeos/palette/palette_ids.h
@@ -0,0 +1,35 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_IDS_H_
+#define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_IDS_H_
+
+#include <string>
+
+#include "ash/ash_export.h"
+
+namespace ash {
+
+// Palette tools are grouped into different categories. Each tool corresponds to
+// exactly one group, and at most one tool can be active per group. Actions are
+// actions the user wants to do, such as take a screenshot, and modes generally
+// change OS behavior, like showing a laser pointer instead of a cursor.
+enum class PaletteGroup { ACTION, MODE };
+
+enum class PaletteToolId {
+ NONE,
+ CREATE_NOTE,
+ CAPTURE_REGION,
+ CAPTURE_SCREEN,
+ LASER_POINTER,
+ MAGNIFY,
+};
+
+// Helper functions that convert PaletteToolIds and PaletteGroups to strings.
+ASH_EXPORT std::string PaletteToolIdToString(PaletteToolId tool_id);
+ASH_EXPORT std::string PaletteGroupToString(PaletteGroup group);
+
+} // namespace ash
+
+#endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_IDS_H_
« no previous file with comments | « ash/ash.gyp ('k') | ash/common/system/chromeos/palette/palette_ids.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698