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

Unified Diff: ash/common/system/chromeos/palette/palette_tool.cc

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
Index: ash/common/system/chromeos/palette/palette_tool.cc
diff --git a/ash/common/system/chromeos/palette/palette_tool.cc b/ash/common/system/chromeos/palette/palette_tool.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c258c706c45732169b1a5b352dbc41447661d195
--- /dev/null
+++ b/ash/common/system/chromeos/palette/palette_tool.cc
@@ -0,0 +1,31 @@
+// 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.
+
+#include "ash/common/system/chromeos/palette/palette_tool.h"
+
+#include "base/logging.h"
+#include "ui/gfx/vector_icons_public.h"
+
+namespace ash {
+
+// static
+void PaletteTool::RegisterToolInstances(PaletteToolManager* tool_manager) {}
+
+PaletteTool::PaletteTool(Delegate* delegate) : delegate_(delegate) {}
+
+PaletteTool::~PaletteTool() {}
+
+void PaletteTool::OnEnable() {
+ enabled_ = true;
+}
+
+void PaletteTool::OnDisable() {
+ enabled_ = false;
+}
+
+gfx::VectorIconId PaletteTool::GetActiveTrayIcon() {
+ return gfx::VectorIconId::VECTOR_ICON_NONE;
+}
+
+} // namespace ash
« no previous file with comments | « ash/common/system/chromeos/palette/palette_tool.h ('k') | ash/common/system/chromeos/palette/palette_tool_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698