| // Copyright 2016 The Chromium Authors | 
 | // Use of this source code is governed by a BSD-style license that can be | 
 | // found in the LICENSE file. | 
 |  | 
 | #include "ash/system/palette/palette_tool.h" | 
 |  | 
 | #include <memory> | 
 |  | 
 | #include "ash/constants/ash_features.h" | 
 | #include "ash/system/palette/palette_tool_manager.h" | 
 | #include "ash/system/palette/palette_utils.h" | 
 | #include "ash/system/palette/tools/create_note_action.h" | 
 | #include "ash/system/palette/tools/enter_capture_mode.h" | 
 | #include "ash/system/palette/tools/laser_pointer_mode.h" | 
 | #include "ash/system/palette/tools/magnifier_mode.h" | 
 | #include "ash/system/palette/tools/marker_mode.h" | 
 | #include "ui/gfx/vector_icon_types.h" | 
 |  | 
 | namespace ash { | 
 |  | 
 | // static | 
 | void PaletteTool::RegisterToolInstances(PaletteToolManager* tool_manager) { | 
 |   tool_manager->AddTool(std::make_unique<EnterCaptureMode>(tool_manager)); | 
 |   tool_manager->AddTool(std::make_unique<CreateNoteAction>(tool_manager)); | 
 |   tool_manager->AddTool(std::make_unique<LaserPointerMode>(tool_manager)); | 
 |   tool_manager->AddTool(std::make_unique<MagnifierMode>(tool_manager)); | 
 |   if (features::IsAnnotatorModeEnabled()) { | 
 |     tool_manager->AddTool(std::make_unique<MarkerMode>(tool_manager)); | 
 |   } | 
 | } | 
 |  | 
 | PaletteTool::PaletteTool(Delegate* delegate) : delegate_(delegate) {} | 
 |  | 
 | PaletteTool::~PaletteTool() = default; | 
 |  | 
 | void PaletteTool::OnEnable() { | 
 |   enabled_ = true; | 
 | } | 
 |  | 
 | void PaletteTool::OnDisable() { | 
 |   enabled_ = false; | 
 | } | 
 |  | 
 | const gfx::VectorIcon& PaletteTool::GetActiveTrayIcon() const { | 
 |   return gfx::VectorIcon::EmptyIcon(); | 
 | } | 
 |  | 
 | }  // namespace ash |