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

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: Polishing a bit Created 7 years, 3 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/common/extensions/command.h
diff --git a/chrome/common/extensions/command.h b/chrome/common/extensions/command.h
index 963d26ba885ffa45440cfa7a6a99ff1ca5e0e5d4..64e30effde5a7bd03443fe51ecbca5bba6b17487 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_; }
+ const 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.

Powered by Google App Engine
This is Rietveld 408576698