Home
last modified time | relevance | path

Searched refs:ExtensionAction (Results 1 – 25 of 60) sorted by relevance

123

/external/chromium_org/chrome/browser/extensions/
Dextension_action.cc60 const int ExtensionAction::kDefaultTabId = -1;
61 const int ExtensionAction::kPageActionIconMaxSize = 19;
63 ExtensionAction::ExtensionAction(const std::string& extension_id, in ExtensionAction() function in ExtensionAction
80 ExtensionAction::~ExtensionAction() { in ~ExtensionAction()
83 scoped_ptr<ExtensionAction> ExtensionAction::CopyForTest() const { in CopyForTest()
84 scoped_ptr<ExtensionAction> copy( in CopyForTest()
85 new ExtensionAction(extension_id_, action_type_, in CopyForTest()
103 int ExtensionAction::GetIconSizeForType( in GetIconSizeForType()
118 void ExtensionAction::SetPopupUrl(int tab_id, const GURL& url) { in SetPopupUrl()
127 bool ExtensionAction::HasPopup(int tab_id) const { in HasPopup()
[all …]
Dextension_action_unittest.cc18 ExtensionAction action(std::string(), ActionInfo::TYPE_PAGE, action_info); in TEST()
21 action.SetTitle(ExtensionAction::kDefaultTabId, "foo"); in TEST()
27 action.SetTitle(ExtensionAction::kDefaultTabId, "baz"); in TEST()
34 ExtensionAction action(std::string(), ActionInfo::TYPE_PAGE, ActionInfo()); in TEST()
37 action.SetIsVisible(ExtensionAction::kDefaultTabId, true); in TEST()
41 action.SetIsVisible(ExtensionAction::kDefaultTabId, false); in TEST()
52 ExtensionAction browser_action( in TEST()
60 ExtensionAction page_action( in TEST()
72 ExtensionAction action(std::string(), ActionInfo::TYPE_PAGE, ActionInfo()); in TEST()
74 action.SetBadgeText(ExtensionAction::kDefaultTabId, "foo"); in TEST()
[all …]
Dextension_action_manager.cc88 ExtensionAction* GetOrCreateOrNull( in GetOrCreateOrNull()
89 std::map<std::string, linked_ptr<ExtensionAction> >* map, in GetOrCreateOrNull()
94 std::map<std::string, linked_ptr<ExtensionAction> >::const_iterator it = in GetOrCreateOrNull()
109 linked_ptr<ExtensionAction> action(new ExtensionAction( in GetOrCreateOrNull()
117 ExtensionAction* ExtensionActionManager::GetPageAction( in GetPageAction()
125 ExtensionAction* ExtensionActionManager::GetBrowserAction( in GetBrowserAction()
133 ExtensionAction* ExtensionActionManager::GetSystemIndicator( in GetSystemIndicator()
Dextension_action_manager.h15 class ExtensionAction; variable
38 ExtensionAction* GetPageAction(const extensions::Extension& extension) const;
39 ExtensionAction* GetBrowserAction(
41 ExtensionAction* GetSystemIndicator(
61 typedef std::map<std::string, linked_ptr<ExtensionAction> > ExtIdToActionMap;
Dlocation_bar_controller.h20 class ExtensionAction; variable
45 virtual ExtensionAction* GetActionForExtension(
68 std::vector<ExtensionAction*> GetCurrentActions();
72 Action OnClicked(const ExtensionAction* action);
Dextension_action.h39 class ExtensionAction {
48 ExtensionAction(const std::string& extension_id,
51 ~ExtensionAction();
55 scoped_ptr<ExtensionAction> CopyForTest() const;
269 DISALLOW_COPY_AND_ASSIGN(ExtensionAction);
273 struct ExtensionAction::ValueTraits<int> {
Dlocation_bar_controller.cc33 std::vector<ExtensionAction*> LocationBarController::GetCurrentActions() { in GetCurrentActions()
37 std::vector<ExtensionAction*> current_actions; in GetCurrentActions()
44 ExtensionAction* action = in GetCurrentActions()
56 const ExtensionAction* action) { in OnClicked()
Dextension_action_icon_factory.h11 class ExtensionAction; variable
36 const ExtensionAction* action,
60 const ExtensionAction* action_;
Dextension_context_menu_model.h15 class ExtensionAction; variable
43 virtual void InspectPopup(ExtensionAction* action) = 0;
89 ExtensionAction* extension_action_;
Dpage_action_controller.cc35 ExtensionAction* PageActionController::GetActionForExtension( in GetActionForExtension()
42 ExtensionAction* page_action = in OnClicked()
72 ExtensionAction* action = GetActionForExtension(*iter); in OnNavigated()
Dactive_script_controller.h27 class ExtensionAction; variable
68 virtual ExtensionAction* GetActionForExtension(
123 typedef std::map<std::string, linked_ptr<ExtensionAction> > ActiveScriptMap;
Dactive_script_controller.cc130 ExtensionAction* ActiveScriptController::GetActionForExtension( in GetActionForExtension()
140 linked_ptr<ExtensionAction> action(new ExtensionAction( in GetActionForExtension()
142 action->SetTitle(ExtensionAction::kDefaultTabId, extension->name()); in GetActionForExtension()
143 action->SetIsVisible(ExtensionAction::kDefaultTabId, true); in GetActionForExtension()
/external/chromium_org/chrome/browser/extensions/api/system_indicator/
Dsystem_indicator_manager.cc37 const ExtensionAction* action,
50 const ExtensionAction* action,
63 const ExtensionAction* action, in Create()
99 icon_factory_.GetIcon(ExtensionAction::kDefaultTabId).AsImageSkia()); in OnIconUpdated()
103 const ExtensionAction* action, in ExtensionIndicatorIcon()
114 icon_factory_.GetIcon(ExtensionAction::kDefaultTabId).AsImageSkia(); in ExtensionIndicatorIcon()
156 OnSystemIndicatorChanged(content::Details<ExtensionAction>(details).ptr()); in Observe()
160 const ExtensionAction* extension_action) { in OnSystemIndicatorChanged()
166 if (extension_action->GetIsVisible(ExtensionAction::kDefaultTabId)) { in OnSystemIndicatorChanged()
190 const ExtensionAction* extension_action) { in CreateOrUpdateIndicator()
Dsystem_indicator_manager.h20 class ExtensionAction; variable
59 void OnSystemIndicatorChanged(const ExtensionAction* extension_action);
69 const ExtensionAction* extension_action);
/external/chromium_org/chrome/browser/extensions/api/extension_action/
Dbrowser_action_apitest.cc87 ExtensionAction* GetBrowserAction(const Extension& extension) { in GetBrowserAction()
109 ExtensionAction* action = GetBrowserAction(*extension); in IN_PROC_BROWSER_TEST_F()
110 ASSERT_EQ("Modified", action->GetTitle(ExtensionAction::kDefaultTabId)); in IN_PROC_BROWSER_TEST_F()
111 ASSERT_EQ("badge", action->GetBadgeText(ExtensionAction::kDefaultTabId)); in IN_PROC_BROWSER_TEST_F()
113 action->GetBadgeBackgroundColor(ExtensionAction::kDefaultTabId)); in IN_PROC_BROWSER_TEST_F()
380 ExtensionAction* browser_action = GetBrowserAction(*extension); in IN_PROC_BROWSER_TEST_F()
385 ASSERT_FALSE(browser_action->HasPopup(ExtensionAction::kDefaultTabId)); in IN_PROC_BROWSER_TEST_F()
401 ASSERT_FALSE(browser_action->HasPopup(ExtensionAction::kDefaultTabId)) in IN_PROC_BROWSER_TEST_F()
421 ASSERT_TRUE(browser_action->HasPopup(ExtensionAction::kDefaultTabId)); in IN_PROC_BROWSER_TEST_F()
436 ExtensionAction* browser_action = GetBrowserAction(*extension); in IN_PROC_BROWSER_TEST_F()
[all …]
Dpage_action_apitest.cc32 ExtensionAction* GetPageAction(const Extension& extension) { in GetPageAction()
54 ExtensionAction* action = GetPageAction(*extension); in IN_PROC_BROWSER_TEST_F()
96 ExtensionAction* page_action = GetPageAction(*extension); in IN_PROC_BROWSER_TEST_F()
142 ExtensionAction* page_action = GetPageAction(*extension); in IN_PROC_BROWSER_TEST_F()
183 ExtensionAction* page_action = GetPageAction(*extension); in IN_PROC_BROWSER_TEST_F()
246 ExtensionAction* page_action = GetPageAction(*extension); in IN_PROC_BROWSER_TEST_F()
Dextension_action_api.cc142 ExtensionAction* action) { in SetDefaultsFromValue()
143 const int kDefaultTabId = ExtensionAction::kDefaultTabId; in SetDefaultsFromValue()
201 scoped_ptr<base::DictionaryValue> DefaultsToValue(ExtensionAction* action) { in DefaultsToValue()
202 const int kDefaultTabId = ExtensionAction::kDefaultTabId; in DefaultsToValue()
319 const ExtensionAction& browser_action, in BrowserActionExecuted()
326 const ExtensionAction& page_action, in PageActionExecuted()
390 const ExtensionAction& extension_action, in ExtensionActionExecuted()
457 ExtensionAction* extension_action = in Observe()
458 content::Source<ExtensionAction>(source).ptr(); in Observe()
467 ExtensionAction* extension_action) { in WriteToStorage()
[all …]
/external/chromium_org/chrome/browser/ui/cocoa/location_bar/
Dlocation_bar_view_mac.h81 virtual ExtensionAction* GetPageAction(size_t index) OVERRIDE;
82 virtual ExtensionAction* GetVisiblePageAction(size_t index) OVERRIDE;
137 void SetPreviewEnabledPageAction(ExtensionAction* page_action,
141 NSRect GetPageActionFrame(ExtensionAction* page_action);
147 NSPoint GetPageActionBubblePoint(ExtensionAction* page_action);
190 PageActionDecoration* GetPageActionDecoration(ExtensionAction* page_action);
246 std::vector<ExtensionAction*> page_actions_;
Dpage_action_decoration.h32 ExtensionAction* page_action);
35 ExtensionAction* page_action() { return page_action_; } in page_action()
84 ExtensionAction* page_action_;
/external/chromium_org/chrome/browser/ui/cocoa/extensions/
Dextension_action_context_menu_controller.h14 class ExtensionAction; variable
29 ExtensionAction* action_;
43 extensionAction:(ExtensionAction*)action;
Dbrowser_action_button.h15 class ExtensionAction; variable
86 ExtensionAction* extensionAction_;
90 @property(readwrite, nonatomic) ExtensionAction* extensionAction;
/external/chromium_org/chrome/browser/ui/views/location_bar/
Dpage_action_image_view.h39 ExtensionAction* page_action,
43 ExtensionAction* page_action() { return page_action_; } in page_action()
58 virtual void InspectPopup(ExtensionAction* action) OVERRIDE;
100 ExtensionAction* page_action_;
Dlocation_bar_view.h38 class ExtensionAction; variable
117 ExtensionAction* action) = 0;
179 void SetPreviewEnabledPageAction(ExtensionAction* page_action,
183 PageActionWithBadgeView* GetPageActionView(ExtensionAction* page_action);
286 typedef std::vector<ExtensionAction*> PageActions;
374 virtual ExtensionAction* GetPageAction(size_t index) OVERRIDE;
375 virtual ExtensionAction* GetVisiblePageAction(size_t index) OVERRIDE;
Dpage_action_with_badge_view.cc25 return gfx::Size(ExtensionAction::kPageActionIconMaxSize, in GetPreferredSize()
26 ExtensionAction::kPageActionIconMaxSize); in GetPreferredSize()
/external/chromium_org/chrome/browser/ui/omnibox/
Dlocation_bar.h21 class ExtensionAction; variable
109 virtual ExtensionAction* GetPageAction(size_t index) = 0;
112 virtual ExtensionAction* GetVisiblePageAction(size_t index) = 0;

123