Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_ | |
| 6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_ | |
| 7 | |
| 8 #include <memory> | |
|
James Cook
2016/08/16 22:08:44
nit: not needed?
jdufault
2016/08/16 22:45:51
Done.
| |
| 9 | |
| 10 #include "ash/ash_export.h" | |
| 11 #include "ash/common/system/chromeos/palette/common_palette_tool.h" | |
| 12 #include "base/macros.h" | |
| 13 | |
| 14 namespace ash { | |
| 15 | |
| 16 // A button in the ash palette that launches the selected note-taking app when | |
| 17 // clicked. This action dynamically hides itself if it is not available. | |
| 18 class ASH_EXPORT CreateNoteAction : public CommonPaletteTool { | |
| 19 public: | |
| 20 explicit CreateNoteAction(Delegate* delegate); | |
| 21 ~CreateNoteAction() override; | |
| 22 | |
| 23 private: | |
| 24 // PaletteTool overrides. | |
| 25 PaletteGroup GetGroup() const override; | |
| 26 PaletteToolId GetToolId() const override; | |
| 27 void OnEnable() override; | |
| 28 views::View* CreateView() override; | |
| 29 | |
| 30 // CommonPaletteTool overrides. | |
| 31 gfx::VectorIconId GetPaletteIconId() override; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(CreateNoteAction); | |
| 34 }; | |
| 35 | |
| 36 } // namespace ash | |
| 37 | |
| 38 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_ | |
| OLD | NEW |