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

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

Issue 2824703006: Add MetalayerMode to the palette. (Closed)
Patch Set: Fixed copyright year Created 3 years, 8 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
« no previous file with comments | « ash/system/palette/palette_tool.cc ('k') | ash/system/palette/tools/metalayer_mode.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ash/system/palette/palette_tool.cc ('k') | ash/system/palette/tools/metalayer_mode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698