Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: ash/common/system/chromeos/palette/tools/create_note_action.h

Issue 2235063002: Add create note palette action. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@app-runtime-changes
Patch Set: Comments and tests Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698