| 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 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_MODE_H_ | 5 #ifndef ASH_SYSTEM_PALETTE_TOOLS_LASER_POINTER_MODE_H_ |
| 6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_MODE_H_ | 6 #define ASH_SYSTEM_PALETTE_TOOLS_LASER_POINTER_MODE_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/common/system/chromeos/palette/common_palette_tool.h" | 9 #include "ash/system/palette/common_palette_tool.h" |
| 10 | 10 |
| 11 namespace ash { | 11 namespace ash { |
| 12 | 12 |
| 13 // Controller for the laser pointer functionality. | 13 // Controller for the laser pointer functionality. |
| 14 class ASH_EXPORT LaserPointerMode : public CommonPaletteTool { | 14 class ASH_EXPORT LaserPointerMode : public CommonPaletteTool { |
| 15 public: | 15 public: |
| 16 explicit LaserPointerMode(Delegate* delegate); | 16 explicit LaserPointerMode(Delegate* delegate); |
| 17 ~LaserPointerMode() override; | 17 ~LaserPointerMode() override; |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 // PaletteTool: | 20 // PaletteTool: |
| 21 PaletteGroup GetGroup() const override; | 21 PaletteGroup GetGroup() const override; |
| 22 PaletteToolId GetToolId() const override; | 22 PaletteToolId GetToolId() const override; |
| 23 void OnEnable() override; | 23 void OnEnable() override; |
| 24 void OnDisable() override; | 24 void OnDisable() override; |
| 25 const gfx::VectorIcon& GetActiveTrayIcon() const override; | 25 const gfx::VectorIcon& GetActiveTrayIcon() const override; |
| 26 views::View* CreateView() override; | 26 views::View* CreateView() override; |
| 27 | 27 |
| 28 // CommonPaletteTool: | 28 // CommonPaletteTool: |
| 29 const gfx::VectorIcon& GetPaletteIcon() const override; | 29 const gfx::VectorIcon& GetPaletteIcon() const override; |
| 30 | 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(LaserPointerMode); | 31 DISALLOW_COPY_AND_ASSIGN(LaserPointerMode); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace ash | 34 } // namespace ash |
| 35 | 35 |
| 36 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_TOOLS_LASER_POINTER_MODE_H_ | 36 #endif // ASH_SYSTEM_PALETTE_TOOLS_LASER_POINTER_MODE_H_ |
| OLD | NEW |