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

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

Issue 2269383002: Magnifier border is now more visible on light backgrounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 3 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 "ash/common/system/chromeos/palette/palette_tool_manager.h" 7 #include "ash/common/system/chromeos/palette/palette_tool_manager.h"
8 #include "ash/common/system/chromeos/palette/tools/capture_region_action.h"
9 #include "ash/common/system/chromeos/palette/tools/capture_screen_action.h"
8 #include "ash/common/system/chromeos/palette/tools/create_note_action.h" 10 #include "ash/common/system/chromeos/palette/tools/create_note_action.h"
11 #include "ash/common/system/chromeos/palette/tools/magnifier_mode.h"
9 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
10 #include "ui/gfx/vector_icons_public.h" 13 #include "ui/gfx/vector_icons_public.h"
11 14
12 namespace ash { 15 namespace ash {
13 16
14 // static 17 // static
15 void PaletteTool::RegisterToolInstances(PaletteToolManager* tool_manager) { 18 void PaletteTool::RegisterToolInstances(PaletteToolManager* tool_manager) {
19 tool_manager->AddTool(base::MakeUnique<CaptureRegionAction>(tool_manager));
20 tool_manager->AddTool(base::MakeUnique<CaptureScreenAction>(tool_manager));
16 tool_manager->AddTool(base::MakeUnique<CreateNoteAction>(tool_manager)); 21 tool_manager->AddTool(base::MakeUnique<CreateNoteAction>(tool_manager));
22 tool_manager->AddTool(base::MakeUnique<MagnifierMode>(tool_manager));
17 } 23 }
18 24
19 PaletteTool::PaletteTool(Delegate* delegate) : delegate_(delegate) {} 25 PaletteTool::PaletteTool(Delegate* delegate) : delegate_(delegate) {}
20 26
21 PaletteTool::~PaletteTool() {} 27 PaletteTool::~PaletteTool() {}
22 28
23 void PaletteTool::OnEnable() { 29 void PaletteTool::OnEnable() {
24 enabled_ = true; 30 enabled_ = true;
25 } 31 }
26 32
27 void PaletteTool::OnDisable() { 33 void PaletteTool::OnDisable() {
28 enabled_ = false; 34 enabled_ = false;
29 } 35 }
30 36
31 gfx::VectorIconId PaletteTool::GetActiveTrayIcon() { 37 gfx::VectorIconId PaletteTool::GetActiveTrayIcon() {
32 return gfx::VectorIconId::VECTOR_ICON_NONE; 38 return gfx::VectorIconId::VECTOR_ICON_NONE;
33 } 39 }
34 40
35 } // namespace ash 41 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698