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

Unified Diff: chrome/browser/chromeos/file_manager/file_tasks.h

Issue 1872223002: Add verbs API to file handlers. Modify the Chrome OS UI so that it displayes the internationalized … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove restriction to have uppercase verbs in manifest file. Created 4 years, 7 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: chrome/browser/chromeos/file_manager/file_tasks.h
diff --git a/chrome/browser/chromeos/file_manager/file_tasks.h b/chrome/browser/chromeos/file_manager/file_tasks.h
index 7207051572789b89feec7ec6fd37bbda2f99d1b9..aeb3ceb1c3fe9a841721ed0221cef565938f559b 100644
--- a/chrome/browser/chromeos/file_manager/file_tasks.h
+++ b/chrome/browser/chromeos/file_manager/file_tasks.h
@@ -171,14 +171,20 @@ class FullTaskDescriptor {
public:
FullTaskDescriptor(const TaskDescriptor& task_descriptor,
const std::string& task_title,
+ const std::string& task_verb,
const GURL& icon_url,
bool is_default,
bool is_generic_file_handler);
+
+ ~FullTaskDescriptor();
+
FullTaskDescriptor(const FullTaskDescriptor& other);
const TaskDescriptor& task_descriptor() const { return task_descriptor_; }
// The title of the task.
const std::string& task_title() const { return task_title_; }
+ // The verb of the task.
+ const std::string& task_verb() const { return task_verb_; }
// The icon URL for the task (ex. app icon)
const GURL& icon_url() const { return icon_url_; }
@@ -198,6 +204,7 @@ class FullTaskDescriptor {
private:
TaskDescriptor task_descriptor_;
std::string task_title_;
+ std::string task_verb_;
GURL icon_url_;
bool is_default_;
bool is_generic_file_handler_;

Powered by Google App Engine
This is Rietveld 408576698