Index: ash/common/system/chromeos/palette/tools/magnifier_mode.cc |
diff --git a/ash/common/system/chromeos/palette/tools/magnifier_mode.cc b/ash/common/system/chromeos/palette/tools/magnifier_mode.cc |
deleted file mode 100644 |
index 65c750dd8e7dbd91d4b35881a901c9b868fed6b8..0000000000000000000000000000000000000000 |
--- a/ash/common/system/chromeos/palette/tools/magnifier_mode.cc |
+++ /dev/null |
@@ -1,53 +0,0 @@ |
-// 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/tools/magnifier_mode.h" |
- |
-#include "ash/common/palette_delegate.h" |
-#include "ash/common/system/chromeos/palette/palette_ids.h" |
-#include "ash/common/wm_shell.h" |
-#include "ash/resources/vector_icons/vector_icons.h" |
-#include "ash/strings/grit/ash_strings.h" |
-#include "ui/base/l10n/l10n_util.h" |
- |
-namespace ash { |
- |
-MagnifierMode::MagnifierMode(Delegate* delegate) |
- : CommonPaletteTool(delegate) {} |
- |
-MagnifierMode::~MagnifierMode() {} |
- |
-PaletteGroup MagnifierMode::GetGroup() const { |
- return PaletteGroup::MODE; |
-} |
- |
-PaletteToolId MagnifierMode::GetToolId() const { |
- return PaletteToolId::MAGNIFY; |
-} |
- |
-const gfx::VectorIcon& MagnifierMode::GetActiveTrayIcon() const { |
- return kPaletteTrayIconMagnifyIcon; |
-} |
- |
-void MagnifierMode::OnEnable() { |
- CommonPaletteTool::OnEnable(); |
- WmShell::Get()->SetPartialMagnifierEnabled(true); |
- delegate()->HidePalette(); |
-} |
- |
-void MagnifierMode::OnDisable() { |
- CommonPaletteTool::OnDisable(); |
- WmShell::Get()->SetPartialMagnifierEnabled(false); |
-} |
- |
-views::View* MagnifierMode::CreateView() { |
- return CreateDefaultView( |
- l10n_util::GetStringUTF16(IDS_ASH_STYLUS_TOOLS_MAGNIFIER_MODE)); |
-} |
- |
-const gfx::VectorIcon& MagnifierMode::GetPaletteIcon() const { |
- return kPaletteModeMagnifyIcon; |
-} |
- |
-} // namespace ash |