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