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

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: Comments 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
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..7b728480e5e9031dd25045f219ee764c8c2375ee
--- /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_NEW_NOTE,
+ SCREENSHOT,
+ CAPTURE_REGION,
+ PRESENTATION,
+ 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_

Powered by Google App Engine
This is Rietveld 408576698