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

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: Move back to "open-with" for the id of the more actions dialog, as it breaks some browsers tests, a… 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..8343ed657852a6a6c5a2985c45f020df7ec635db 100644
--- a/chrome/browser/chromeos/file_manager/file_tasks.h
+++ b/chrome/browser/chromeos/file_manager/file_tasks.h
@@ -169,16 +169,25 @@ struct TaskDescriptor {
// Describes a task with extra information such as icon URL.
class FullTaskDescriptor {
public:
- FullTaskDescriptor(const TaskDescriptor& task_descriptor,
- const std::string& task_title,
- const GURL& icon_url,
- bool is_default,
- bool is_generic_file_handler);
+ FullTaskDescriptor(
+ const TaskDescriptor& task_descriptor,
+ const std::string& task_title,
+ const extensions::api::file_manager_private::Verb 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.
+ extensions::api::file_manager_private::Verb 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 +207,7 @@ class FullTaskDescriptor {
private:
TaskDescriptor task_descriptor_;
std::string task_title_;
+ extensions::api::file_manager_private::Verb task_verb_;
GURL icon_url_;
bool is_default_;
bool is_generic_file_handler_;
« no previous file with comments | « chrome/browser/chromeos/file_manager/arc_file_tasks.cc ('k') | chrome/browser/chromeos/file_manager/file_tasks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698