Chromium Code Reviews| Index: ash/common/system/chromeos/palette/tools/create_note_action.h |
| diff --git a/ash/common/system/chromeos/palette/tools/create_note_action.h b/ash/common/system/chromeos/palette/tools/create_note_action.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ce3e90199953db4da35667851233e9773b2bdd59 |
| --- /dev/null |
| +++ b/ash/common/system/chromeos/palette/tools/create_note_action.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_ |
| +#define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_ |
| + |
| +#include <memory> |
|
James Cook
2016/08/16 22:08:44
nit: not needed?
jdufault
2016/08/16 22:45:51
Done.
|
| + |
| +#include "ash/ash_export.h" |
| +#include "ash/common/system/chromeos/palette/common_palette_tool.h" |
| +#include "base/macros.h" |
| + |
| +namespace ash { |
| + |
| +// A button in the ash palette that launches the selected note-taking app when |
| +// clicked. This action dynamically hides itself if it is not available. |
| +class ASH_EXPORT CreateNoteAction : public CommonPaletteTool { |
| + public: |
| + explicit CreateNoteAction(Delegate* delegate); |
| + ~CreateNoteAction() override; |
| + |
| + private: |
| + // PaletteTool overrides. |
| + PaletteGroup GetGroup() const override; |
| + PaletteToolId GetToolId() const override; |
| + void OnEnable() override; |
| + views::View* CreateView() override; |
| + |
| + // CommonPaletteTool overrides. |
| + gfx::VectorIconId GetPaletteIconId() override; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(CreateNoteAction); |
| +}; |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_ |