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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ash/common/system/chromeos/palette/tools/create_note_action.h
diff --git a/ash/common/system/chromeos/palette/tools/capture_screen_action.h b/ash/common/system/chromeos/palette/tools/create_note_action.h
similarity index 54%
copy from ash/common/system/chromeos/palette/tools/capture_screen_action.h
copy to ash/common/system/chromeos/palette/tools/create_note_action.h
index f18df78bd451c0ec37672f732cf622646641a771..6800b9ead86d60708e66746f1fb0f7d881624061 100644
--- a/ash/common/system/chromeos/palette/tools/capture_screen_action.h
+++ b/ash/common/system/chromeos/palette/tools/create_note_action.h
@@ -2,17 +2,22 @@
// 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_CAPTURE_SCREEN_ACTION_H_
-#define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CAPTURE_SCREEN_ACTION_H_
+#ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_
+#define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_
+
+#include <memory>
#include "ash/common/system/chromeos/palette/common_palette_tool.h"
namespace ash {
-class CaptureScreenAction : public CommonPaletteTool {
+class CreateNoteAction : public CommonPaletteTool {
James Cook 2016/08/12 23:58:55 class doc please
jdufault 2016/08/16 21:38:18 Done.
public:
- explicit CaptureScreenAction(Delegate* delegate);
- ~CaptureScreenAction() override;
+ // Returns true if the note action should be displayed.
+ static bool IsAvailable();
+
+ explicit CreateNoteAction(Delegate* delegate);
+ ~CreateNoteAction() override;
private:
// PaletteTool overrides.
@@ -24,9 +29,9 @@ class CaptureScreenAction : public CommonPaletteTool {
// CommonPaletteTool overrides.
gfx::VectorIconId GetPaletteIconId() override;
- DISALLOW_COPY_AND_ASSIGN(CaptureScreenAction);
+ 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.
};
} // namespace ash
-#endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CAPTURE_SCREEN_ACTION_H_
+#endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_CREATE_NOTE_ACTION_H_

Powered by Google App Engine
This is Rietveld 408576698