Home | History | Annotate | Download | only in extensions

Lines Matching refs:item

30 // Represents a menu item added by an extension.
36 // An Id uniquely identifies a context menu item registered by an extension.
51 // For context menus, these are the contexts where an item can appear.
64 // An item can be only one of these types.
72 // A list of Contexts for an item.
149 // Takes ownership of |item| and sets its parent_id_.
150 void AddChild(ExtensionMenuItem* item);
152 // Takes the child item from this parent. The item is returned and the caller
161 // The unique id for this item.
164 // What gets shown in the menu for this item.
172 // In what contexts should the item be shown?
175 // If this item is a child of another item, the unique id of its parent. If
176 // this is a top-level item with no parent, this will be NULL.
179 // Patterns for restricting what documents this item will appear for. This
187 // Any children this item may have.
213 // Adds a top-level menu item for an extension, requiring the |extension|
215 // |item|. Returns a boolean indicating success or failure.
216 bool AddContextItem(const Extension* extension, ExtensionMenuItem* item);
218 // Add an item as a child of another item which has been previously added, and
219 // takes ownership of |item|. Returns a boolean indicating success or failure.
223 // Makes existing item with |child_id| a child of the item with |parent_id|.
224 // If the child item was already a child of another parent, this will remove
225 // it from that parent first. It is an error to try and move an item to be a
227 // |parent_id|, which means the item should be moved to the top-level.
231 // Removes a context menu item with the given id (whether it is a top-level
232 // item or a child of some other item), returning true if the item was found
239 // Returns the item with the given |id| or NULL.
242 // Called when a menu item is clicked on by the user.
266 void RadioItemSelected(ExtensionMenuItem* item);
268 // Returns true if item is a descendant of an item with id |ancestor_id|.
269 bool DescendantOf(ExtensionMenuItem* item,