commit | 69e1c12d5b212fc29af5f31982ccca8cb66e5c01 | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Aug 13 08:25:34 2014 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Aug 13 08:26:38 2014 |
tree | fec614daeb69aa8c60b8d102b3b158766866efc4 | |
parent | 0f2a7e9d62bed45b0c5c01d93714598b9c095e1c [diff] [blame] |
Extend contextMenus API to support browser/page actions Screenshot: http://i.imgur.com/RILqQqe.png BUG=234425 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288418 Review URL: https://codereview.chromium.org/359493005 Cr-Commit-Position: refs/heads/master@{#289211} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289211 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/menu_manager.h b/chrome/browser/extensions/menu_manager.h index 23a922a..25feb8f2 100644 --- a/chrome/browser/extensions/menu_manager.h +++ b/chrome/browser/extensions/menu_manager.h
@@ -94,7 +94,9 @@ VIDEO = 64, AUDIO = 128, FRAME = 256, - LAUNCHER = 512 + LAUNCHER = 512, + BROWSER_ACTION = 1024, + PAGE_ACTION = 2048 }; // An item can be only one of these types. @@ -167,7 +169,7 @@ const Id& id() const { return id_; } Id* parent_id() const { return parent_id_.get(); } int child_count() const { return children_.size(); } - ContextList contexts() const { return contexts_; } + const ContextList& contexts() const { return contexts_; } Type type() const { return type_; } bool checked() const { return checked_; } bool enabled() const { return enabled_; }