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

Side by Side Diff: ash/common/system/chromeos/palette/palette_tool.cc

Issue 2147783002: Add common palette tray implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylus-tool-structure
Patch Set: Pull out individual tool stubs into separate CLs 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 unified diff | Download patch
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 #include "ash/common/system/chromeos/palette/palette_tool.h" 5 #include "ash/common/system/chromeos/palette/palette_tool.h"
6 6
7 #include "base/logging.h" 7 #include "ash/common/system/chromeos/palette/palette_tool_manager.h"
8 8
9 namespace ash { 9 namespace ash {
10 10
11 // static 11 // static
12 void PaletteTool::RegisterToolInstances(PaletteToolManager* tool_manager) {} 12 void PaletteTool::RegisterToolInstances(PaletteToolManager* tool_manager) {}
13 13
14 PaletteTool::PaletteTool(Delegate* delegate) : delegate_(delegate) {} 14 PaletteTool::PaletteTool(Delegate* delegate) : delegate_(delegate) {}
15 15
16 PaletteTool::~PaletteTool() {} 16 PaletteTool::~PaletteTool() {}
17 17
18 void PaletteTool::OnEnable() { 18 void PaletteTool::OnEnable() {
19 enabled_ = true; 19 enabled_ = true;
20 } 20 }
21 21
22 void PaletteTool::OnDisable() { 22 void PaletteTool::OnDisable() {
23 enabled_ = false; 23 enabled_ = false;
24 } 24 }
25 25
26 base::Optional<gfx::VectorIconId> PaletteTool::GetActiveTrayIcon() { 26 base::Optional<gfx::VectorIconId> PaletteTool::GetActiveTrayIcon() {
27 return base::Optional<gfx::VectorIconId>(); 27 return base::Optional<gfx::VectorIconId>();
28 } 28 }
29 29
30 } // namespace ash 30 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698