Home
last modified time | relevance | path

Searched refs:page_action (Results 1 – 25 of 29) sorted by relevance

12

/external/chromium/chrome/browser/extensions/
Dpage_action_apitest.cc34 ExtensionAction* action = extension->page_action(); in IN_PROC_BROWSER_TEST_F()
71 ExtensionAction* page_action = extension->page_action(); in IN_PROC_BROWSER_TEST_F() local
72 ASSERT_TRUE(page_action) in IN_PROC_BROWSER_TEST_F()
75 ASSERT_FALSE(page_action->HasPopup(tab_id)); in IN_PROC_BROWSER_TEST_F()
87 ASSERT_TRUE(page_action->HasPopup(tab_id)) in IN_PROC_BROWSER_TEST_F()
91 page_action->GetPopupUrl(tab_id).path().c_str()); in IN_PROC_BROWSER_TEST_F()
103 ASSERT_TRUE(page_action->HasPopup(tab_id)); in IN_PROC_BROWSER_TEST_F()
105 page_action->GetPopupUrl(tab_id).path().c_str()); in IN_PROC_BROWSER_TEST_F()
117 ExtensionAction* page_action = extension->page_action(); in IN_PROC_BROWSER_TEST_F() local
118 ASSERT_TRUE(page_action) in IN_PROC_BROWSER_TEST_F()
[all …]
Dextension_page_actions_module.cc60 ExtensionAction* page_action = GetExtension()->page_action(); in SetPageActionEnabled() local
61 if (!page_action) { in SetPageActionEnabled()
67 static_cast<size_t>(icon_id) >= page_action->icon_paths()->size()) { in SetPageActionEnabled()
90 page_action->SetIsVisible(tab_id, enable); in SetPageActionEnabled()
91 page_action->SetTitle(tab_id, title); in SetPageActionEnabled()
92 page_action->SetIconIndex(tab_id, icon_id); in SetPageActionEnabled()
99 page_action_ = GetExtension()->page_action(); in InitCommon()
Dextension_tab_helper.cc99 ExtensionAction* page_action = in DidNavigateMainFramePostCommit() local
100 service->extensions()->at(i)->page_action(); in DidNavigateMainFramePostCommit()
101 if (page_action) { in DidNavigateMainFramePostCommit()
102 page_action->ClearAllValuesForTab( in DidNavigateMainFramePostCommit()
Dextension_context_menu_model.cc41 extension_action_ = extension->page_action(); in ExtensionContextMenuModel()
Dextension_process_manager.cc241 if (extension->page_action()) in RegisterExtensionProcess()
242 page_action_ids.push_back(extension->page_action()->id()); in RegisterExtensionProcess()
Dextension_browsertests_misc.cc321 extension->page_action()->GetTitle(tab_id).c_str()); in IN_PROC_BROWSER_TEST_F()
/external/chromium/chrome/browser/ui/views/location_bar/
Dpage_action_image_view.cc22 ExtensionAction* page_action) in PageActionImageView() argument
25 page_action_(page_action), in PageActionImageView()
31 GetExtensionById(page_action->extension_id(), false); in PageActionImageView()
36 std::vector<std::string> icon_paths(*page_action->icon_paths()); in PageActionImageView()
150 GetExtensionById(page_action()->extension_id(), false); in ShowContextMenu()
Dlocation_bar_view.cc339 void LocationBarView::SetPreviewEnabledPageAction(ExtensionAction* page_action, in SetPreviewEnabledPageAction() argument
344 DCHECK(page_action); in SetPreviewEnabledPageAction()
349 static_cast<PageActionWithBadgeView*>(GetPageActionView(page_action)); in SetPreviewEnabledPageAction()
362 ExtensionAction *page_action) { in GetPageActionView() argument
363 DCHECK(page_action); in GetPageActionView()
366 if ((*i)->image_view()->page_action() == page_action) in GetPageActionView()
906 old_visibility[(*i)->image_view()->page_action()] = (*i)->IsVisible(); in RefreshPageActionViews()
912 if (service->extensions()->at(i)->page_action()) in RefreshPageActionViews()
913 page_actions.push_back(service->extensions()->at(i)->page_action()); in RefreshPageActionViews()
943 ExtensionAction* action = (*i)->image_view()->page_action(); in RefreshPageActionViews()
[all …]
Dpage_action_image_view.h32 ExtensionAction* page_action);
35 ExtensionAction* page_action() { return page_action_; } in page_action() function
Dlocation_bar_view.h141 void SetPreviewEnabledPageAction(ExtensionAction *page_action,
145 views::View* GetPageActionView(ExtensionAction* page_action);
/external/chromium/chrome/browser/ui/gtk/extensions/
Dextension_installed_bubble_gtk.cc80 } else if (extension->page_action() && in ExtensionInstalledBubbleGtk()
81 !extension->page_action()->default_icon_path().empty()) { in ExtensionInstalledBubbleGtk()
154 location_bar_view->SetPreviewEnabledPageAction(extension_->page_action(), in ShowInternal()
157 extension_->page_action()); in ShowInternal()
309 location_bar_view->SetPreviewEnabledPageAction(extension_->page_action(), in InfoBubbleClosing()
/external/chromium/chrome/browser/ui/cocoa/location_bar/
Dlocation_bar_view_mac.mm333 ExtensionAction* page_action) {
334 DCHECK(page_action);
336 if (page_action_decorations_[i]->page_action() == page_action)
339 // If |page_action| is the browser action of an extension, no element in
346 ExtensionAction* page_action, bool preview_enabled) {
347 DCHECK(page_action);
354 PageActionDecoration* decoration = GetPageActionDecoration(page_action);
365 ExtensionAction* page_action) {
366 PageActionDecoration* decoration = GetPageActionDecoration(page_action);
395 return page_action_decorations_[index]->page_action();
[all …]
Dlocation_bar_view_mac.h114 void SetPreviewEnabledPageAction(ExtensionAction* page_action,
121 NSPoint GetPageActionBubblePoint(ExtensionAction* page_action);
159 PageActionDecoration* GetPageActionDecoration(ExtensionAction* page_action);
Dpage_action_decoration.h28 ExtensionAction* page_action);
31 ExtensionAction* page_action() { return page_action_; } in page_action() function
Dpage_action_decoration.mm35 ExtensionAction* page_action)
38 page_action_(page_action),
44 GetExtensionById(page_action->extension_id(), false);
49 std::vector<std::string> icon_paths(*page_action->icon_paths());
/external/chromium/chrome/browser/ui/gtk/
Dlocation_bar_view_gtk.cc416 ExtensionAction *page_action, in SetPreviewEnabledPageAction() argument
418 DCHECK(page_action); in SetPreviewEnabledPageAction()
423 if ((*iter)->page_action() == page_action) { in SetPreviewEnabledPageAction()
432 ExtensionAction *page_action) { in GetPageActionWidget() argument
433 DCHECK(page_action); in GetPageActionWidget()
438 if ((*iter)->page_action() == page_action) in GetPageActionWidget()
643 if (service->extensions()->at(i)->page_action()) in UpdatePageActions()
644 page_actions.push_back(service->extensions()->at(i)->page_action()); in UpdatePageActions()
730 return page_action_views_[index]->page_action(); in GetPageAction()
738 return page_action_views_[i]->page_action(); in GetVisiblePageAction()
[all …]
Dlocation_bar_view_gtk.h77 void SetPreviewEnabledPageAction(ExtensionAction *page_action,
82 GtkWidget* GetPageActionWidget(ExtensionAction* page_action);
217 ExtensionAction* page_action);
222 ExtensionAction* page_action() { return page_action_; } in page_action() function
/external/chromium/chrome/browser/ui/views/extensions/
Dextension_installed_bubble.cc255 } else if (extension->page_action() && in ExtensionInstalledBubble()
256 !extension->page_action()->default_icon_path().empty()) { in ExtensionInstalledBubble()
325 location_bar_view->SetPreviewEnabledPageAction(extension_->page_action(), in ShowInternal()
328 extension_->page_action()); in ShowInternal()
368 extension_->page_action(), in BubbleClosing()
/external/chromium/chrome/common/extensions/
Dextension_file_util.cc216 ExtensionAction* page_action = extension->page_action(); in ValidateExtension() local
217 if (page_action) { in ValidateExtension()
218 std::vector<std::string> icon_paths(*page_action->icon_paths()); in ValidateExtension()
219 if (!page_action->default_icon_path().empty()) in ValidateExtension()
220 icon_paths.push_back(page_action->default_icon_path()); in ValidateExtension()
Dextension.h584 ExtensionAction* page_action() const { return page_action_.get(); } in page_action() function
Dextension.cc2544 if (page_action()) { in GetBrowserImages()
2545 std::vector<std::string>* icon_paths = page_action()->icon_paths(); in GetBrowserImages()
2766 if (page_action()) in HasMultipleUISurfaces()
/external/chromium/chrome/browser/ui/cocoa/extensions/
Dextension_installed_bubble_bridge.mm55 (extension->page_action() &&
56 !extension->page_action()->default_icon_path().empty())) {
Dextension_installed_bubble_controller.mm99 } else if (extension->page_action() &&
100 !extension->page_action()->default_icon_path().empty()) {
157 if (!extension_ || !extension_->page_action() || pageActionRemoved_)
165 locationBarView->SetPreviewEnabledPageAction(extension_->page_action(),
201 locationBarView->SetPreviewEnabledPageAction(extension_->page_action(),
206 locationBarView->GetPageActionBubblePoint(extension_->page_action());
Dextension_action_context_menu.mm291 if (extension_->page_action() == action_) {
/external/chromium/chrome/browser/automation/
Dautomation_provider.cc876 if (extension->page_action()) { in ExecuteExtensionActionInActiveTabAsync()

12