/external/chromium_org/chrome/browser/extensions/ |
D | extension_action_icon_factory_unittest.cc | 192 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 …]
|
D | extension_toolbar_model.cc | 141 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()
|
D | browser_action_apitest.cc | 29 extension->browser_action()->GetTitle(tab_id).c_str()); in IN_PROC_BROWSER_TEST_F()
|
D | tab_helper.cc | 252 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()
|
D | extension_action_unittest.cc | 55 ExtensionAction browser_action( in TEST() local 57 ASSERT_TRUE(browser_action.GetIsVisible(1)); in TEST()
|
/external/chromium/chrome/browser/extensions/ |
D | browser_action_apitest.cc | 62 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 …]
|
D | extension_tab_helper.cc | 88 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()
|
D | extension_context_menu_model.cc | 39 extension_action_ = extension->browser_action(); in ExtensionContextMenuModel() 67 if (extension->browser_action()) in InitCommonCommands()
|
D | extension_toolbar_model.cc | 128 if (!extension->browser_action()) in AddExtension() 186 if (!extension->browser_action()) in InitializeExtensionList()
|
/external/chromium_org/chrome/browser/extensions/api/extension_action/ |
D | browser_action_apitest.cc | 383 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 …]
|
D | extension_action_api.cc | 286 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/ |
D | commands_manifest_unittest.cc | 49 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/ |
D | browser_actions_toolbar_gtk.cc | 106 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/ |
D | commands.cc | 30 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/ |
D | extension_keybinding_registry_gtk.cc | 100 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/ |
D | browser_action_button.mm | 53 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/ |
D | extension_keybinding_registry_cocoa.mm | 112 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/ |
D | browser_actions_container.cc | 66 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/ |
D | command_handler.cc | 149 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/ |
D | browser_actions_container_browsertest.cc | 35 ExtensionAction* browser_action = in EnsureExtensionHasIcon() local 40 content::Source<ExtensionAction>(browser_action)); in EnsureExtensionHasIcon()
|
D | browser_action_view.cc | 104 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/ |
D | browser_actions_toolbar_gtk.cc | 106 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/ |
D | extension_file_util.cc | 235 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/ |
D | extension_file_util.cc | 318 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/ |
D | cpp_type_generator_test.py | 40 self.browser_action = self.models['browser_action'].AddNamespace( 118 manager.GetCppType(self.browser_action.types['ColorArray']))
|