Home
last modified time | relevance | path

Searched refs:ActionInfo (Results 1 – 25 of 27) sorted by relevance

12

/external/chromium_org/chrome/common/extensions/api/extension_action/
Daction_info.cc26 explicit ActionInfoData(ActionInfo* action_info);
31 scoped_ptr<ActionInfo> action_info;
34 ActionInfoData::ActionInfoData(ActionInfo* info) : action_info(info) { in ActionInfoData()
40 static const ActionInfo* GetActionInfo(const Extension* extension, in GetActionInfo()
49 ActionInfo::ActionInfo() { in ActionInfo() function in extensions::ActionInfo
52 ActionInfo::~ActionInfo() { in ~ActionInfo()
56 scoped_ptr<ActionInfo> ActionInfo::Load(const Extension* extension, in Load()
59 scoped_ptr<ActionInfo> result(new ActionInfo()); in Load()
73 return scoped_ptr<ActionInfo>(); in Load()
82 return scoped_ptr<ActionInfo>(); in Load()
[all …]
Daction_info.h23 struct ActionInfo { struct
24 ActionInfo();
25 ~ActionInfo();
36 static scoped_ptr<ActionInfo> Load(const Extension* extension,
41 static const ActionInfo* GetBrowserActionInfo(const Extension* extension);
44 static const ActionInfo* GetPageActionInfo(const Extension* extension);
47 static const ActionInfo* GetScriptBadgeInfo(const Extension* etxension);
50 static const ActionInfo* GetSystemIndicatorInfo(const Extension* extension);
53 static void SetBrowserActionInfo(Extension* extension, ActionInfo* info);
56 static void SetPageActionInfo(Extension* extension, ActionInfo* info);
[all …]
Dpage_action_manifest_unittest.cc24 scoped_ptr<ActionInfo> LoadAction(const std::string& manifest_filename);
27 scoped_ptr<ActionInfo> PageActionManifestTest::LoadAction( in LoadAction()
31 const ActionInfo* page_action_info = in LoadAction()
32 ActionInfo::GetPageActionInfo(extension.get()); in LoadAction()
35 return make_scoped_ptr(new ActionInfo(*page_action_info)); in LoadAction()
39 return scoped_ptr<ActionInfo>(); in LoadAction()
46 const ActionInfo* page_action_info = in TEST_F()
47 ActionInfo::GetPageActionInfo(extension.get()); in TEST_F()
60 scoped_ptr<ActionInfo> action; in TEST_F()
127 const ActionInfo* extension_action = in TEST_F()
[all …]
Dbrowser_action_handler.cc35 scoped_ptr<ActionInfo> action_info = ActionInfo::Load(extension, dict, error); in Parse()
39 ActionInfo::SetBrowserActionInfo(extension, action_info.release()); in Parse()
48 const ActionInfo* action = ActionInfo::GetBrowserActionInfo(extension); in Validate()
Dbrowser_action_manifest_unittest.cc36 const ActionInfo* browser_action_info = in TEST_F()
37 ActionInfo::GetBrowserActionInfo(extension.get()); in TEST_F()
55 const ActionInfo* browser_action_info = in TEST_F()
56 ActionInfo::GetBrowserActionInfo(extension.get()); in TEST_F()
82 const ActionInfo* browser_action_info = in TEST_F()
83 ActionInfo::GetBrowserActionInfo(extension.get()); in TEST_F()
Dscript_badge_handler.cc34 scoped_ptr<ActionInfo> action_info(new ActionInfo); in Parse()
39 ActionInfo::SetScriptBadgeInfo(extension, action_info.release()); in Parse()
57 action_info = ActionInfo::Load(extension, dict, error); in Parse()
83 ActionInfo::SetScriptBadgeInfo(extension, action_info.release()); in Parse()
92 ActionInfo* info) { in SetActionInfoDefaults()
Dpage_action_handler.cc27 scoped_ptr<ActionInfo> page_action_info; in Parse()
67 page_action_info = ActionInfo::Load(extension, page_action_value, error); in Parse()
71 ActionInfo::SetPageActionInfo(extension, page_action_info.release()); in Parse()
79 const extensions::ActionInfo* action = in Validate()
80 extensions::ActionInfo::GetPageActionInfo(extension); in Validate()
Dscript_badge_manifest_unittest.cc56 const ActionInfo* script_badge_info = in TEST_F()
57 ActionInfo::GetScriptBadgeInfo(extension.get()); in TEST_F()
96 const ActionInfo* script_badge_info = in TEST_F()
97 ActionInfo::GetScriptBadgeInfo(extension.get()); in TEST_F()
132 const ActionInfo* script_badge_info = in TEST_F()
133 ActionInfo::GetScriptBadgeInfo(extension.get()); in TEST_F()
Dscript_badge_handler.h30 void SetActionInfoDefaults(const Extension* extension, ActionInfo* info);
/external/chromium_org/chrome/browser/extensions/
Dextension_action_manager.cc109 ActionInfo::Type action_type, in GetOrCreateOrNull()
110 const ActionInfo* action_info, in GetOrCreateOrNull()
143 ActionInfo::TYPE_PAGE, in GetPageAction()
144 ActionInfo::GetPageActionInfo(&extension), in GetPageAction()
150 const ActionInfo* action_info = ActionInfo::GetBrowserActionInfo(&extension); in GetBrowserAction()
151 ActionInfo::Type action_type = ActionInfo::TYPE_BROWSER; in GetBrowserAction()
153 ActionInfo::GetPageActionInfo(&extension)) { in GetBrowserAction()
156 action_info = ActionInfo::GetPageActionInfo(&extension); in GetBrowserAction()
157 action_type = ActionInfo::TYPE_PAGE; in GetBrowserAction()
173 ActionInfo::TYPE_SYSTEM_INDICATOR, in GetSystemIndicator()
[all …]
Dextension_action_unittest.cc13 using extensions::ActionInfo;
16 ActionInfo action_info; in TEST()
18 ExtensionAction action(std::string(), ActionInfo::TYPE_PAGE, action_info); in TEST()
34 ExtensionAction action(std::string(), ActionInfo::TYPE_PAGE, ActionInfo()); in TEST()
56 std::string(), ActionInfo::TYPE_BROWSER, ActionInfo()); in TEST()
65 std::string(), ActionInfo::TYPE_SCRIPT_BADGE, ActionInfo()); in TEST()
89 std::string(), ActionInfo::TYPE_SCRIPT_BADGE, ActionInfo()); in TEST()
107 ActionInfo action_info; in TEST()
110 std::string(), ActionInfo::TYPE_PAGE, action_info); in TEST()
121 ExtensionAction action(std::string(), ActionInfo::TYPE_PAGE, ActionInfo()); in TEST()
[all …]
Dextension_action.cc161 extensions::ActionInfo::Type action_type, in ExtensionAction()
162 const extensions::ActionInfo& manifest_data) in ExtensionAction()
169 action_type == extensions::ActionInfo::TYPE_BROWSER ? in ExtensionAction()
186 extensions::ActionInfo())); in CopyForTest()
205 extensions::ActionInfo::Type type) { in GetIconSizeForType()
207 case extensions::ActionInfo::TYPE_BROWSER: in GetIconSizeForType()
208 case extensions::ActionInfo::TYPE_PAGE: in GetIconSizeForType()
209 case extensions::ActionInfo::TYPE_SYSTEM_INDICATOR: in GetIconSizeForType()
213 case extensions::ActionInfo::TYPE_SCRIPT_BADGE: in GetIconSizeForType()
267 action_type_ == extensions::ActionInfo::TYPE_SCRIPT_BADGE) { in SetAppearance()
Dextension_action.h117 extensions::ActionInfo::Type action_type,
118 const extensions::ActionInfo& manifest_data);
128 static int GetIconSizeForType(extensions::ActionInfo::Type type);
134 extensions::ActionInfo::Type action_type() const { in action_type()
326 const extensions::ActionInfo::Type action_type_;
/external/chromium_org/chrome/common/extensions/api/system_indicator/
Dsystem_indicator_handler.cc33 scoped_ptr<ActionInfo> action_info = ActionInfo::Load( in Parse()
44 ActionInfo::SetSystemIndicatorInfo(extension, action_info.release()); in Parse()
/external/chromium_org/chrome/browser/ui/extensions/
Dextension_installed_bubble.cc44 else if (extensions::ActionInfo::GetBrowserActionInfo(extension)) in ExtensionInstalledBubble()
46 else if (extensions::ActionInfo::GetPageActionInfo(extension) && in ExtensionInstalledBubble()
47 extensions::ActionInfo::IsVerboseInstallMessage(extension)) in ExtensionInstalledBubble()
/external/chromium_org/chrome/common/
Dicon_with_badge_image_source.h29 extensions::ActionInfo::Type action_type);
51 extensions::ActionInfo::Type action_type_;
Dbadge_util.h44 extensions::ActionInfo::Type action_type);
Dicon_with_badge_image_source.cc19 extensions::ActionInfo::Type action_type) in IconWithBadgeImageSource()
Dbadge_util.cc148 extensions::ActionInfo::Type action_type) { in PaintBadge()
183 action_type == extensions::ActionInfo::TYPE_BROWSER ? in PaintBadge()
/external/chromium_org/chrome/renderer/extensions/
Dpage_actions_custom_bindings.cc35 if (ActionInfo::GetPageActionInfo(extension)) { in GetCurrentPageActions()
36 std::string id = ActionInfo::GetPageActionInfo(extension)->id; in GetCurrentPageActions()
/external/chromium_org/chrome/browser/extensions/api/extension_action/
Dextension_action_api.cc366 case ActionInfo::TYPE_BROWSER: in ExtensionActionExecuted()
369 case ActionInfo::TYPE_PAGE: in ExtensionActionExecuted()
372 case ActionInfo::TYPE_SCRIPT_BADGE: in ExtensionActionExecuted()
375 case ActionInfo::TYPE_SYSTEM_INDICATOR: in ExtensionActionExecuted()
543 ActionInfo::Type action_type = extension_action_->action_type(); in RunImpl()
545 action_type == ActionInfo::TYPE_BROWSER || in RunImpl()
546 action_type == ActionInfo::TYPE_SYSTEM_INDICATOR); in RunImpl()
600 case ActionInfo::TYPE_BROWSER: in NotifyChange()
601 case ActionInfo::TYPE_PAGE: in NotifyChange()
610 case ActionInfo::TYPE_SCRIPT_BADGE: in NotifyChange()
[all …]
/external/chromium_org/chrome/common/extensions/
Dextension_file_util.cc313 const extensions::ActionInfo* page_action = in GetBrowserImagePaths()
314 extensions::ActionInfo::GetPageActionInfo(extension); in GetBrowserImagePaths()
318 const extensions::ActionInfo* browser_action = in GetBrowserImagePaths()
319 extensions::ActionInfo::GetBrowserActionInfo(extension); in GetBrowserImagePaths()
/external/chromium_org/chrome/browser/ui/views/location_bar/
Dscript_bubble_icon_view.cc49 extensions::ActionInfo::TYPE_PAGE), in SetScriptCount()
/external/chromium_org/chrome/browser/extensions/api/declarative_content/
Dcontent_action.cc54 if (ActionInfo::GetPageActionInfo(extension) == NULL) { in Create()
/external/chromium_org/chrome/browser/ui/cocoa/extensions/
Dextension_installed_bubble_controller.mm131 } else if (extensions::ActionInfo::GetBrowserActionInfo(extension)) {
133 } else if (extensions::ActionInfo::GetPageActionInfo(extension) &&
134 extensions::ActionInfo::IsVerboseInstallMessage(extension)) {
620 extensions::ActionInfo::GetBrowserActionInfo(extension_) ||
621 extensions::ActionInfo::IsVerboseInstallMessage(extension_)) {

12