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

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: Initial upload 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698