OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ExtensionMenuItem
(Results
1 - 8
of
8
) sorted by null
/external/chromium/chrome/browser/extensions/
extension_context_menu_api.h
14
class
ExtensionMenuItem
;
24
ExtensionMenuItem
::ContextList* result);
31
const
ExtensionMenuItem
::Type& default_value,
32
ExtensionMenuItem
::Type* result);
35
bool ParseChecked(
ExtensionMenuItem
::Type type,
49
ExtensionMenuItem
* item);
52
// an
ExtensionMenuItem
with that id and set it into |result|. Returns false
59
ExtensionMenuItem
** result);
extension_menu_manager.h
31
class
ExtensionMenuItem
{
33
// A list of
ExtensionMenuItem
's.
34
typedef std::vector<
ExtensionMenuItem
*> List;
103
ExtensionMenuItem
(const Id& id,
108
virtual ~
ExtensionMenuItem
();
150
void AddChild(
ExtensionMenuItem
* item);
154
ExtensionMenuItem
* ReleaseChild(const Id& child_id, bool recursive);
190
DISALLOW_COPY_AND_ASSIGN(
ExtensionMenuItem
);
211
const
ExtensionMenuItem
::List* MenuItems(const std::string& extension_id);
216
bool AddContextItem(const Extension* extension,
ExtensionMenuItem
* item)
[
all
...]
extension_context_menu_api.cc
40
ExtensionMenuItem
::ContextList* result) {
45
ExtensionMenuItem
::ContextList tmp_result;
53
tmp_result.Add(
ExtensionMenuItem
::ALL);
55
tmp_result.Add(
ExtensionMenuItem
::PAGE);
57
tmp_result.Add(
ExtensionMenuItem
::SELECTION);
59
tmp_result.Add(
ExtensionMenuItem
::LINK);
61
tmp_result.Add(
ExtensionMenuItem
::EDITABLE);
63
tmp_result.Add(
ExtensionMenuItem
::IMAGE);
65
tmp_result.Add(
ExtensionMenuItem
::VIDEO);
67
tmp_result.Add(
ExtensionMenuItem
::AUDIO)
[
all
...]
extension_menu_manager.cc
24
ExtensionMenuItem
::
ExtensionMenuItem
(const Id& id,
37
ExtensionMenuItem
::~
ExtensionMenuItem
() {
41
ExtensionMenuItem
*
ExtensionMenuItem
::ReleaseChild(const Id& child_id,
44
ExtensionMenuItem
* child = NULL;
58
std::set<
ExtensionMenuItem
::Id>
ExtensionMenuItem
::RemoveAllDescendants() {
61
ExtensionMenuItem
* child = *i
[
all
...]
extension_menu_manager_unittest.cc
41
ExtensionMenuItem
* CreateTestItem(Extension* extension) {
42
ExtensionMenuItem
::Type type =
ExtensionMenuItem
::NORMAL;
43
ExtensionMenuItem
::ContextList contexts(
ExtensionMenuItem
::ALL);
44
ExtensionMenuItem
::Id id(NULL, extension->id(), next_id_++);
45
return new
ExtensionMenuItem
(id, "test", false, type, contexts);
75
ExtensionMenuItem
* item1 = CreateTestItem(extension);
79
const
ExtensionMenuItem
::List* items =
85
ExtensionMenuItem
* item2 = CreateTestItem(extension)
[
all
...]
extension_context_menu_browsertest.cc
37
std::map<int,
ExtensionMenuItem
::Id>::iterator i;
39
const
ExtensionMenuItem
::Id& id = i->second;
51
bool GetItemLabel(const
ExtensionMenuItem
::Id& id, string16* result) {
104
bool FindCommandId(const
ExtensionMenuItem
::Id& id, int* command_id) {
105
std::map<int,
ExtensionMenuItem
::Id>::const_iterator i;
169
ExtensionMenuItem
::List GetItems() {
170
ExtensionMenuItem
::List result;
174
const
ExtensionMenuItem
::List* list = menu_manager()->MenuItems(*i);
261
ExtensionMenuItem
::List items = GetItems();
263
ExtensionMenuItem
* item = items.at(0)
[
all
...]
/external/chromium/chrome/browser/tab_contents/
render_view_context_menu.h
21
class
ExtensionMenuItem
;
63
// Attempts to get an
ExtensionMenuItem
given the id of a context menu item.
64
ExtensionMenuItem
* GetExtensionMenuItem(int id) const;
76
// Maps the id from a context menu item to the
ExtensionMenuItem
's internal
78
std::map<int,
ExtensionMenuItem
::Id> extension_item_map_;
108
const std::vector<
ExtensionMenuItem
*>& items,
render_view_context_menu.cc
206
ExtensionMenuItem
::ContextList contexts) {
211
if (contexts.Contains(
ExtensionMenuItem
::ALL) ||
212
(has_selection && contexts.Contains(
ExtensionMenuItem
::SELECTION)) ||
213
(has_link && contexts.Contains(
ExtensionMenuItem
::LINK)) ||
214
(params.is_editable && contexts.Contains(
ExtensionMenuItem
::EDITABLE)) ||
215
(in_frame && contexts.Contains(
ExtensionMenuItem
::FRAME))) {
221
return contexts.Contains(
ExtensionMenuItem
::IMAGE);
224
return contexts.Contains(
ExtensionMenuItem
::VIDEO);
227
return contexts.Contains(
ExtensionMenuItem
::AUDIO);
238
contexts.Contains(
ExtensionMenuItem
::PAGE)
[
all
...]
Completed in 580 milliseconds