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

Side by Side Diff: ash/system/palette/tools/magnifier_mode.h

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_MAGNIFIER_MODE_H_ 5 #ifndef ASH_SYSTEM_PALETTE_TOOLS_MAGNIFIER_MODE_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_MAGNIFIER_MODE_H_ 6 #define ASH_SYSTEM_PALETTE_TOOLS_MAGNIFIER_MODE_H_
7 7
8 #include "ash/common/system/chromeos/palette/common_palette_tool.h" 8 #include "ash/system/palette/common_palette_tool.h"
9 9
10 namespace ash { 10 namespace ash {
11 11
12 // Exposes a palette tool that lets the user enable a partial screen magnifier 12 // Exposes a palette tool that lets the user enable a partial screen magnifier
13 // (ie, a spyglass) that dynamically appears when pressing the screen. 13 // (ie, a spyglass) that dynamically appears when pressing the screen.
14 class MagnifierMode : public CommonPaletteTool { 14 class MagnifierMode : public CommonPaletteTool {
15 public: 15 public:
16 explicit MagnifierMode(Delegate* delegate); 16 explicit MagnifierMode(Delegate* delegate);
17 ~MagnifierMode() override; 17 ~MagnifierMode() override;
18 18
19 private: 19 private:
20 // PaletteTool overrides. 20 // PaletteTool overrides.
21 PaletteGroup GetGroup() const override; 21 PaletteGroup GetGroup() const override;
22 PaletteToolId GetToolId() const override; 22 PaletteToolId GetToolId() const override;
23 const gfx::VectorIcon& GetActiveTrayIcon() const override; 23 const gfx::VectorIcon& GetActiveTrayIcon() const override;
24 void OnEnable() override; 24 void OnEnable() override;
25 void OnDisable() override; 25 void OnDisable() override;
26 views::View* CreateView() override; 26 views::View* CreateView() override;
27 27
28 // CommonPaletteTool overrides. 28 // CommonPaletteTool overrides.
29 const gfx::VectorIcon& GetPaletteIcon() const override; 29 const gfx::VectorIcon& GetPaletteIcon() const override;
30 30
31 DISALLOW_COPY_AND_ASSIGN(MagnifierMode); 31 DISALLOW_COPY_AND_ASSIGN(MagnifierMode);
32 }; 32 };
33 33
34 } // namespace ash 34 } // namespace ash
35 35
36 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_MAGNIFIER_MODE_H_ 36 #endif // ASH_SYSTEM_PALETTE_TOOLS_MAGNIFIER_MODE_H_
OLDNEW
« no previous file with comments | « ash/system/palette/tools/laser_pointer_mode.cc ('k') | ash/system/palette/tools/magnifier_mode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698