Home
last modified time | relevance | path

Searched refs:browser_action (Results 1 – 25 of 50) sorted by relevance

12

/external/chromium_org/chrome/browser/extensions/
Dextension_action_icon_factory_unittest.cc192 ExtensionAction* browser_action = GetBrowserAction(*extension.get()); in TEST_F() local
193 ASSERT_TRUE(browser_action); in TEST_F()
194 ASSERT_FALSE(browser_action->default_icon()); in TEST_F()
195 ASSERT_TRUE(browser_action->GetExplicitlySetIcon(0 /*tab id*/).isNull()); in TEST_F()
200 profile(), extension.get(), browser_action, this); in TEST_F()
218 ExtensionAction* browser_action = GetBrowserAction(*extension.get()); in TEST_F() local
219 ASSERT_TRUE(browser_action); in TEST_F()
220 ASSERT_FALSE(browser_action->default_icon()); in TEST_F()
221 ASSERT_TRUE(browser_action->GetExplicitlySetIcon(0 /*tab id*/).isNull()); in TEST_F()
226 browser_action->SetIcon(0, set_icon); in TEST_F()
[all …]
Dextension_toolbar_model.cc141 ExtensionAction* browser_action = in ExecuteBrowserAction() local
146 if (!browser_action->GetIsVisible(tab_id)) in ExecuteBrowserAction()
154 if (browser_action->HasPopup(tab_id)) { in ExecuteBrowserAction()
156 *popup_url_out = browser_action->GetPopupUrl(tab_id); in ExecuteBrowserAction()
161 browser->profile(), *browser_action, web_contents); in ExecuteBrowserAction()
Dbrowser_action_apitest.cc29 extension->browser_action()->GetTitle(tab_id).c_str()); in IN_PROC_BROWSER_TEST_F()
Dtab_helper.cc252 ExtensionAction* browser_action = in DidNavigateMainFrame() local
254 if (browser_action) { in DidNavigateMainFrame()
255 browser_action->ClearAllValuesForTab(SessionID::IdForTab(web_contents())); in DidNavigateMainFrame()
258 content::Source<ExtensionAction>(browser_action), in DidNavigateMainFrame()
Dextension_action_unittest.cc55 ExtensionAction browser_action( in TEST() local
57 ASSERT_TRUE(browser_action.GetIsVisible(1)); in TEST()
/external/chromium/chrome/browser/extensions/
Dbrowser_action_apitest.cc62 ExtensionAction* action = extension->browser_action(); in IN_PROC_BROWSER_TEST_F()
197 ExtensionAction* browser_action = extension->browser_action(); in IN_PROC_BROWSER_TEST_F() local
198 ASSERT_TRUE(browser_action) in IN_PROC_BROWSER_TEST_F()
201 ASSERT_FALSE(browser_action->HasPopup(tab_id)); in IN_PROC_BROWSER_TEST_F()
202 ASSERT_FALSE(browser_action->HasPopup(ExtensionAction::kDefaultTabId)); in IN_PROC_BROWSER_TEST_F()
215 ASSERT_TRUE(browser_action->HasPopup(tab_id)) in IN_PROC_BROWSER_TEST_F()
218 ASSERT_FALSE(browser_action->HasPopup(ExtensionAction::kDefaultTabId)) in IN_PROC_BROWSER_TEST_F()
223 browser_action->GetPopupUrl(tab_id).path().c_str()); in IN_PROC_BROWSER_TEST_F()
237 ASSERT_TRUE(browser_action->HasPopup(tab_id)); in IN_PROC_BROWSER_TEST_F()
238 ASSERT_TRUE(browser_action->HasPopup(ExtensionAction::kDefaultTabId)); in IN_PROC_BROWSER_TEST_F()
[all …]
Dextension_tab_helper.cc88 ExtensionAction* browser_action = in DidNavigateMainFramePostCommit() local
89 service->extensions()->at(i)->browser_action(); in DidNavigateMainFramePostCommit()
90 if (browser_action) { in DidNavigateMainFramePostCommit()
91 browser_action->ClearAllValuesForTab( in DidNavigateMainFramePostCommit()
95 Source<ExtensionAction>(browser_action), in DidNavigateMainFramePostCommit()
Dextension_context_menu_model.cc39 extension_action_ = extension->browser_action(); in ExtensionContextMenuModel()
67 if (extension->browser_action()) in InitCommonCommands()
Dextension_toolbar_model.cc128 if (!extension->browser_action()) in AddExtension()
186 if (!extension->browser_action()) in InitializeExtensionList()
/external/chromium_org/chrome/browser/extensions/api/extension_action/
Dbrowser_action_apitest.cc383 ExtensionAction* browser_action = GetBrowserAction(*extension); in IN_PROC_BROWSER_TEST_F() local
384 ASSERT_TRUE(browser_action) in IN_PROC_BROWSER_TEST_F()
387 ASSERT_FALSE(browser_action->HasPopup(tab_id)); in IN_PROC_BROWSER_TEST_F()
388 ASSERT_FALSE(browser_action->HasPopup(ExtensionAction::kDefaultTabId)); in IN_PROC_BROWSER_TEST_F()
401 ASSERT_TRUE(browser_action->HasPopup(tab_id)) in IN_PROC_BROWSER_TEST_F()
404 ASSERT_FALSE(browser_action->HasPopup(ExtensionAction::kDefaultTabId)) in IN_PROC_BROWSER_TEST_F()
409 browser_action->GetPopupUrl(tab_id).path().c_str()); in IN_PROC_BROWSER_TEST_F()
423 ASSERT_TRUE(browser_action->HasPopup(tab_id)); in IN_PROC_BROWSER_TEST_F()
424 ASSERT_TRUE(browser_action->HasPopup(ExtensionAction::kDefaultTabId)); in IN_PROC_BROWSER_TEST_F()
426 browser_action->GetPopupUrl(tab_id).path().c_str()); in IN_PROC_BROWSER_TEST_F()
[all …]
Dextension_action_api.cc286 const ExtensionAction& browser_action, in BrowserActionExecuted() argument
288 ExtensionActionExecuted(profile, browser_action, web_contents); in BrowserActionExecuted()
471 ExtensionAction* browser_action = in ReadFromStorage() local
473 CHECK(browser_action); in ReadFromStorage()
479 if (browser_action->has_changed()) in ReadFromStorage()
486 SetDefaultsFromValue(dict, browser_action); in ReadFromStorage()
/external/chromium_org/chrome/common/extensions/api/commands/
Dcommands_manifest_unittest.cc49 const Command* browser_action = in TEST_F() local
51 ASSERT_TRUE(NULL != browser_action); in TEST_F()
53 browser_action->command_name().c_str()); in TEST_F()
54 ASSERT_STREQ("", UTF16ToASCII(browser_action->description()).c_str()); in TEST_F()
55 ASSERT_EQ(alt_shift_f, browser_action->accelerator()); in TEST_F()
/external/chromium/chrome/browser/ui/gtk/
Dbrowser_actions_toolbar_gtk.cc106 DCHECK(extension_->browser_action()); in BrowserActionButton()
112 std::string path = extension_->browser_action()->default_icon_path(); in BrowserActionButton()
130 Source<ExtensionAction>(extension->browser_action())); in BrowserActionButton()
176 std::string tooltip = extension_->browser_action()->GetTitle(tab_id); in UpdateState()
182 SkBitmap image = extension_->browser_action()->GetIcon(tab_id); in UpdateState()
196 const SkBitmap& image = extension_->browser_action()->GetIcon( in GetIcon()
237 ExtensionAction* browser_action = extension_->browser_action(); in ShowPopup() local
245 if (browser_action->HasPopup(tab_id)) { in ShowPopup()
247 browser_action->GetPopupUrl(tab_id), toolbar_->browser(), in ShowPopup()
303 ExtensionAction* action = button->extension_->browser_action(); in OnExposeEvent()
[all …]
/external/chromium_org/chrome/browser/extensions/api/commands/
Dcommands.cc30 extensions::Command browser_action; in RunImpl() local
34 &browser_action, in RunImpl()
36 command_list->Append(CreateCommandValue(browser_action, active)); in RunImpl()
/external/chromium_org/chrome/browser/ui/gtk/extensions/
Dextension_keybinding_registry_gtk.cc100 extensions::Command browser_action; in AddExtensionKeybinding() local
104 &browser_action, in AddExtensionKeybinding()
106 ui::Accelerator accelerator(browser_action.accelerator()); in AddExtensionKeybinding()
108 std::make_pair(extension->id(), browser_action.command_name())); in AddExtensionKeybinding()
/external/chromium/chrome/browser/ui/cocoa/extensions/
Dbrowser_action_button.mm53 std::string path = extension->browser_action()->default_icon_path();
61 Source<ExtensionAction>(extension->browser_action()));
128 [cell setExtensionAction:extension->browser_action()];
137 extensionAction:extension->browser_action()] autorelease]];
242 std::string tooltip = extension_->browser_action()->GetTitle(tabId_);
249 SkBitmap image = extension_->browser_action()->GetIcon(tabId_);
/external/chromium_org/chrome/browser/ui/cocoa/extensions/
Dextension_keybinding_registry_cocoa.mm112 extensions::Command browser_action;
116 &browser_action,
118 ui::Accelerator accelerator(browser_action.accelerator());
120 std::make_pair(extension->id(), browser_action.command_name()));
/external/chromium/chrome/browser/ui/views/
Dbrowser_actions_container.cc66 browser_action_(extension->browser_action()), in BrowserActionButton()
133 SkBitmap icon(browser_action()->GetIcon(tab_id)); in UpdateState()
169 string16 name = UTF8ToUTF16(browser_action()->GetTitle(tab_id)); in UpdateState()
303 SkBitmap icon = button_->extension()->browser_action()->GetIcon(tab_id); in GetIconWithBadge()
312 button_->extension()->browser_action()->PaintBadge(canvas, bounds, tab_id); in GetIconWithBadge()
338 ExtensionAction* action = button()->browser_action(); in PaintChildren()
424 if ((*iter)->button()->browser_action() == action) in GetBrowserActionView()
479 ExtensionAction* browser_action = button->browser_action(); in OnBrowserActionExecuted() local
486 profile_, browser_action->extension_id(), browser_); in OnBrowserActionExecuted()
/external/chromium_org/chrome/browser/ui/webui/extensions/
Dcommand_handler.cc149 extensions::Command browser_action; in GetAllCommands() local
152 &browser_action, in GetAllCommands()
155 browser_action.ToValue((extension->get()), active)); in GetAllCommands()
/external/chromium_org/chrome/browser/ui/views/toolbar/
Dbrowser_actions_container_browsertest.cc35 ExtensionAction* browser_action = in EnsureExtensionHasIcon() local
40 content::Source<ExtensionAction>(browser_action)); in EnsureExtensionHasIcon()
Dbrowser_action_view.cc104 ExtensionAction* action = button()->browser_action(); in PaintChildren()
237 if (!browser_action()->GetIsVisible(tab_id)) in UpdateState()
262 std::string title = browser_action()->GetTitle(tab_id); in UpdateState()
/external/chromium_org/chrome/browser/ui/gtk/
Dbrowser_actions_toolbar_gtk.cc106 browser_action(), this), in BrowserActionButton()
120 DCHECK(browser_action()); in BrowserActionButton()
145 content::Source<ExtensionAction>(browser_action())); in BrowserActionButton()
217 std::string tooltip = browser_action()->GetTitle(tab_id); in UpdateState()
223 enabled_ = browser_action()->GetIsVisible(tab_id); in UpdateState()
343 ExtensionAction* action = button->browser_action(); in OnExposeEvent()
439 ExtensionAction* browser_action() const { in browser_action() function in BrowserActionButton
/external/chromium/chrome/common/extensions/
Dextension_file_util.cc235 ExtensionAction* browser_action = extension->browser_action(); in ValidateExtension() local
236 if (browser_action) { in ValidateExtension()
237 std::string path = browser_action->default_icon_path(); in ValidateExtension()
/external/chromium_org/chrome/common/extensions/
Dextension_file_util.cc318 const extensions::ActionInfo* browser_action = in GetBrowserImagePaths() local
320 if (browser_action && !browser_action->default_icon.empty()) in GetBrowserImagePaths()
321 AddPathsFromIconSet(browser_action->default_icon, &image_paths); in GetBrowserImagePaths()
/external/chromium_org/tools/json_schema_compiler/
Dcpp_type_generator_test.py40 self.browser_action = self.models['browser_action'].AddNamespace(
118 manager.GetCppType(self.browser_action.types['ColorArray']))

12