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_CREATE_NOTE_ACTION_H_ | 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CAPTURE_SCREEN_ACTION_H_ |
6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_ | 6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CAPTURE_SCREEN_ACTION_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/common/system/chromeos/palette/common_palette_tool.h" |
10 #include "base/macros.h" | |
11 | 10 |
12 namespace ash { | 11 namespace ash { |
13 | 12 |
14 // A button in the ash palette that launches the selected note-taking app when | 13 class ASH_EXPORT CaptureScreenAction : public CommonPaletteTool { |
15 // clicked. This action dynamically hides itself if it is not available. | |
16 class ASH_EXPORT CreateNoteAction : public CommonPaletteTool { | |
17 public: | 14 public: |
18 explicit CreateNoteAction(Delegate* delegate); | 15 explicit CaptureScreenAction(Delegate* delegate); |
19 ~CreateNoteAction() override; | 16 ~CaptureScreenAction() override; |
20 | 17 |
21 private: | 18 private: |
22 // PaletteTool overrides. | 19 // PaletteTool overrides. |
23 PaletteGroup GetGroup() const override; | 20 PaletteGroup GetGroup() const override; |
24 PaletteToolId GetToolId() const override; | 21 PaletteToolId GetToolId() const override; |
25 void OnEnable() override; | 22 void OnEnable() override; |
26 views::View* CreateView() override; | 23 views::View* CreateView() override; |
27 | 24 |
28 // CommonPaletteTool overrides. | 25 // CommonPaletteTool overrides. |
29 gfx::VectorIconId GetPaletteIconId() override; | 26 gfx::VectorIconId GetPaletteIconId() override; |
30 | 27 |
31 DISALLOW_COPY_AND_ASSIGN(CreateNoteAction); | 28 DISALLOW_COPY_AND_ASSIGN(CaptureScreenAction); |
32 }; | 29 }; |
33 | 30 |
34 } // namespace ash | 31 } // namespace ash |
35 | 32 |
36 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_ | 33 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CAPTURE_SCREEN_ACTION_H_ |
OLD | NEW |