Chromium Code Reviews| 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_CAPTURE_SCREEN_ACTION_H_ | 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_ |
| 6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CAPTURE_SCREEN_ACTION_H_ | 6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_ |
| 7 | |
| 8 #include <memory> | |
| 7 | 9 |
| 8 #include "ash/common/system/chromeos/palette/common_palette_tool.h" | 10 #include "ash/common/system/chromeos/palette/common_palette_tool.h" |
| 9 | 11 |
| 10 namespace ash { | 12 namespace ash { |
| 11 | 13 |
| 12 class CaptureScreenAction : public CommonPaletteTool { | 14 class CreateNoteAction : public CommonPaletteTool { |
|
James Cook
2016/08/12 23:58:55
class doc please
jdufault
2016/08/16 21:38:18
Done.
| |
| 13 public: | 15 public: |
| 14 explicit CaptureScreenAction(Delegate* delegate); | 16 // Returns true if the note action should be displayed. |
| 15 ~CaptureScreenAction() override; | 17 static bool IsAvailable(); |
| 18 | |
| 19 explicit CreateNoteAction(Delegate* delegate); | |
| 20 ~CreateNoteAction() override; | |
| 16 | 21 |
| 17 private: | 22 private: |
| 18 // PaletteTool overrides. | 23 // PaletteTool overrides. |
| 19 PaletteGroup GetGroup() const override; | 24 PaletteGroup GetGroup() const override; |
| 20 PaletteToolId GetToolId() const override; | 25 PaletteToolId GetToolId() const override; |
| 21 void OnEnable() override; | 26 void OnEnable() override; |
| 22 views::View* CreateView() override; | 27 views::View* CreateView() override; |
| 23 | 28 |
| 24 // CommonPaletteTool overrides. | 29 // CommonPaletteTool overrides. |
| 25 gfx::VectorIconId GetPaletteIconId() override; | 30 gfx::VectorIconId GetPaletteIconId() override; |
| 26 | 31 |
| 27 DISALLOW_COPY_AND_ASSIGN(CaptureScreenAction); | 32 DISALLOW_COPY_AND_ASSIGN(CreateNoteAction); |
|
James Cook
2016/08/12 23:58:55
#include "base/macros.h"
jdufault
2016/08/16 21:38:18
Done.
| |
| 28 }; | 33 }; |
| 29 | 34 |
| 30 } // namespace ash | 35 } // namespace ash |
| 31 | 36 |
| 32 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CAPTURE_SCREEN_ACTION_H_ | 37 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_ |
| OLD | NEW |