| OLD | NEW |
| 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/tools/magnifier_mode.h" | 5 #include "ash/common/system/chromeos/palette/tools/magnifier_mode.h" |
| 6 | 6 |
| 7 #include "ash/common/palette_delegate.h" | 7 #include "ash/common/palette_delegate.h" |
| 8 #include "ash/common/system/chromeos/palette/palette_ids.h" | 8 #include "ash/common/system/chromeos/palette/palette_ids.h" |
| 9 #include "ash/common/wm_shell.h" | 9 #include "ash/common/wm_shell.h" |
| 10 #include "grit/ash_strings.h" | 10 #include "grit/ash_strings.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 WmShell::Get()->palette_delegate()->SetPartialMagnifierState(true); | 34 WmShell::Get()->palette_delegate()->SetPartialMagnifierState(true); |
| 35 } | 35 } |
| 36 | 36 |
| 37 void MagnifierMode::OnDisable() { | 37 void MagnifierMode::OnDisable() { |
| 38 CommonPaletteTool::OnDisable(); | 38 CommonPaletteTool::OnDisable(); |
| 39 WmShell::Get()->palette_delegate()->SetPartialMagnifierState(false); | 39 WmShell::Get()->palette_delegate()->SetPartialMagnifierState(false); |
| 40 } | 40 } |
| 41 | 41 |
| 42 views::View* MagnifierMode::CreateView() { | 42 views::View* MagnifierMode::CreateView() { |
| 43 return CreateDefaultView( | 43 return CreateDefaultView( |
| 44 l10n_util::GetStringUTF16(IDS_ASH_PALETTE_MAGNIFIER_MODE)); | 44 l10n_util::GetStringUTF16(IDS_ASH_STYLUS_TOOLS_MAGNIFIER_MODE)); |
| 45 } | 45 } |
| 46 | 46 |
| 47 gfx::VectorIconId MagnifierMode::GetPaletteIconId() { | 47 gfx::VectorIconId MagnifierMode::GetPaletteIconId() { |
| 48 return gfx::VectorIconId::PALETTE_MODE_MAGNIFY; | 48 return gfx::VectorIconId::PALETTE_MODE_MAGNIFY; |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace ash | 51 } // namespace ash |
| OLD | NEW |