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

Unified Diff: chrome/common/extensions/command.h

Issue 23812010: Implement first part of supporting global extension commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gclient sync Created 7 years, 2 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
« no previous file with comments | « chrome/common/extensions/api/commands/commands_handler.cc ('k') | chrome/common/extensions/command.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/command.h
diff --git a/chrome/common/extensions/command.h b/chrome/common/extensions/command.h
index 963d26ba885ffa45440cfa7a6a99ff1ca5e0e5d4..97107d47cc82579d6138ccfc0f2d8380af9e4844 100644
--- a/chrome/common/extensions/command.h
+++ b/chrome/common/extensions/command.h
@@ -26,7 +26,8 @@ class Command {
Command();
Command(const std::string& command_name,
const string16& description,
- const std::string& accelerator);
+ const std::string& accelerator,
+ bool global);
~Command();
// The platform value for the Command.
@@ -56,6 +57,7 @@ class Command {
const std::string& command_name() const { return command_name_; }
const ui::Accelerator& accelerator() const { return accelerator_; }
const string16& description() const { return description_; }
+ bool global() const { return global_; }
// Setter:
void set_accelerator(ui::Accelerator accelerator) {
@@ -66,6 +68,7 @@ class Command {
std::string command_name_;
ui::Accelerator accelerator_;
string16 description_;
+ bool global_;
};
// A mapping of command name (std::string) to a command object.
« no previous file with comments | « chrome/common/extensions/api/commands/commands_handler.cc ('k') | chrome/common/extensions/command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698