Home
last modified time | relevance | path

Searched refs:ExtensionMenuItem (Results 1 – 8 of 8) sorted by relevance

/external/chromium/chrome/browser/extensions/
Dextension_menu_manager.cc24 ExtensionMenuItem::ExtensionMenuItem(const Id& id, in ExtensionMenuItem() function in ExtensionMenuItem
37 ExtensionMenuItem::~ExtensionMenuItem() { in ~ExtensionMenuItem()
41 ExtensionMenuItem* ExtensionMenuItem::ReleaseChild(const Id& child_id, in ReleaseChild()
44 ExtensionMenuItem* child = NULL; in ReleaseChild()
58 std::set<ExtensionMenuItem::Id> ExtensionMenuItem::RemoveAllDescendants() { in RemoveAllDescendants()
61 ExtensionMenuItem* child = *i; in RemoveAllDescendants()
70 string16 ExtensionMenuItem::TitleWithReplacement( in TitleWithReplacement()
82 bool ExtensionMenuItem::SetChecked(bool checked) { in SetChecked()
89 void ExtensionMenuItem::AddChild(ExtensionMenuItem* item) { in AddChild()
118 const ExtensionMenuItem::List* ExtensionMenuManager::MenuItems( in MenuItems()
[all …]
Dextension_context_menu_api.cc40 ExtensionMenuItem::ContextList* result) { in ParseContexts()
45 ExtensionMenuItem::ContextList tmp_result; in ParseContexts()
53 tmp_result.Add(ExtensionMenuItem::ALL); in ParseContexts()
55 tmp_result.Add(ExtensionMenuItem::PAGE); in ParseContexts()
57 tmp_result.Add(ExtensionMenuItem::SELECTION); in ParseContexts()
59 tmp_result.Add(ExtensionMenuItem::LINK); in ParseContexts()
61 tmp_result.Add(ExtensionMenuItem::EDITABLE); in ParseContexts()
63 tmp_result.Add(ExtensionMenuItem::IMAGE); in ParseContexts()
65 tmp_result.Add(ExtensionMenuItem::VIDEO); in ParseContexts()
67 tmp_result.Add(ExtensionMenuItem::AUDIO); in ParseContexts()
[all …]
Dextension_menu_manager.h31 class ExtensionMenuItem {
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);
220 bool AddChildItem(const ExtensionMenuItem::Id& parent_id,
[all …]
Dextension_menu_manager_unittest.cc41 ExtensionMenuItem* CreateTestItem(Extension* extension) { in CreateTestItem()
42 ExtensionMenuItem::Type type = ExtensionMenuItem::NORMAL; in CreateTestItem()
43 ExtensionMenuItem::ContextList contexts(ExtensionMenuItem::ALL); in CreateTestItem()
44 ExtensionMenuItem::Id id(NULL, extension->id(), next_id_++); in CreateTestItem()
45 return new ExtensionMenuItem(id, "test", false, type, contexts); in CreateTestItem()
75 ExtensionMenuItem* item1 = CreateTestItem(extension); in TEST_F()
79 const ExtensionMenuItem::List* items = in TEST_F()
85 ExtensionMenuItem* item2 = CreateTestItem(extension); in TEST_F()
94 ExtensionMenuItem* item3 = CreateTestItem(extension); in TEST_F()
95 ExtensionMenuItem::Id id3 = item3->id(); in TEST_F()
[all …]
Dextension_context_menu_api.h14 class ExtensionMenuItem; variable
24 ExtensionMenuItem::ContextList* result);
31 const ExtensionMenuItem::Type& default_value,
32 ExtensionMenuItem::Type* result);
35 bool ParseChecked(ExtensionMenuItem::Type type,
49 ExtensionMenuItem* item);
59 ExtensionMenuItem** result);
Dextension_context_menu_browsertest.cc37 std::map<int, ExtensionMenuItem::Id>::iterator i; in HasExtensionItemWithLabel()
39 const ExtensionMenuItem::Id& id = i->second; in HasExtensionItemWithLabel()
51 bool GetItemLabel(const ExtensionMenuItem::Id& id, string16* result) { in GetItemLabel()
104 bool FindCommandId(const ExtensionMenuItem::Id& id, int* command_id) { in FindCommandId()
105 std::map<int, ExtensionMenuItem::Id>::const_iterator i; in FindCommandId()
169 ExtensionMenuItem::List GetItems() { in GetItems()
170 ExtensionMenuItem::List result; in GetItems()
174 const ExtensionMenuItem::List* list = menu_manager()->MenuItems(*i); in GetItems()
261 ExtensionMenuItem::List items = GetItems(); in IN_PROC_BROWSER_TEST_F()
263 ExtensionMenuItem* item = items.at(0); in IN_PROC_BROWSER_TEST_F()
/external/chromium/chrome/browser/tab_contents/
Drender_view_context_menu.cc206 ExtensionMenuItem::ContextList contexts) { in ExtensionContextMatch()
211 if (contexts.Contains(ExtensionMenuItem::ALL) || in ExtensionContextMatch()
212 (has_selection && contexts.Contains(ExtensionMenuItem::SELECTION)) || in ExtensionContextMatch()
213 (has_link && contexts.Contains(ExtensionMenuItem::LINK)) || in ExtensionContextMatch()
214 (params.is_editable && contexts.Contains(ExtensionMenuItem::EDITABLE)) || in ExtensionContextMatch()
215 (in_frame && contexts.Contains(ExtensionMenuItem::FRAME))) { in ExtensionContextMatch()
221 return contexts.Contains(ExtensionMenuItem::IMAGE); in ExtensionContextMatch()
224 return contexts.Contains(ExtensionMenuItem::VIDEO); in ExtensionContextMatch()
227 return contexts.Contains(ExtensionMenuItem::AUDIO); in ExtensionContextMatch()
238 contexts.Contains(ExtensionMenuItem::PAGE)) in ExtensionContextMatch()
[all …]
Drender_view_context_menu.h21 class ExtensionMenuItem; variable
64 ExtensionMenuItem* GetExtensionMenuItem(int id) const;
78 std::map<int, ExtensionMenuItem::Id> extension_item_map_;
108 const std::vector<ExtensionMenuItem*>& items,