OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_SYSTEM_PALETTE_TOOLS_METALAYER_MODE_H_ |
| 6 #define ASH_SYSTEM_PALETTE_TOOLS_METALAYER_MODE_H_ |
| 7 |
| 8 #include "ash/ash_export.h" |
| 9 #include "ash/system/palette/common_palette_tool.h" |
| 10 #include "base/memory/weak_ptr.h" |
| 11 |
| 12 namespace ash { |
| 13 |
| 14 // A palette tool that lets the user select a screen region to be passed |
| 15 // to the voice interaction framework. |
| 16 class ASH_EXPORT MetalayerMode : public CommonPaletteTool { |
| 17 public: |
| 18 explicit MetalayerMode(Delegate* delegate); |
| 19 ~MetalayerMode() override; |
| 20 |
| 21 private: |
| 22 // PaletteTool: |
| 23 PaletteGroup GetGroup() const override; |
| 24 PaletteToolId GetToolId() const override; |
| 25 void OnEnable() override; |
| 26 void OnDisable() override; |
| 27 const gfx::VectorIcon& GetActiveTrayIcon() const override; |
| 28 views::View* CreateView() override; |
| 29 |
| 30 // CommonPaletteTool: |
| 31 const gfx::VectorIcon& GetPaletteIcon() const override; |
| 32 |
| 33 void OnMetalayerDone(); |
| 34 |
| 35 base::WeakPtrFactory<MetalayerMode> weak_factory_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(MetalayerMode); |
| 38 }; |
| 39 |
| 40 } // namespace ash |
| 41 |
| 42 #endif // ASH_SYSTEM_PALETTE_TOOLS_METALAYER_MODE_H_ |
OLD | NEW |