/external/chromium/chrome/common/extensions/ |
D | extension_action.h | 51 void SetPopupUrl(int tab_id, const GURL& url); 54 bool HasPopup(int tab_id); 57 GURL GetPopupUrl(int tab_id); 60 void SetTitle(int tab_id, const std::string& title) { in SetTitle() argument 61 SetValue(&title_, tab_id, title); in SetTitle() 66 std::string GetTitle(int tab_id) { return GetValue(&title_, tab_id); } in GetTitle() argument 76 void SetIcon(int tab_id, const SkBitmap& bitmap); 79 SkBitmap GetIcon(int tab_id); 83 void SetIconIndex(int tab_id, int index); 87 int GetIconIndex(int tab_id) { in GetIconIndex() argument [all …]
|
D | extension_action.cc | 61 void ExtensionAction::SetPopupUrl(int tab_id, const GURL& url) { in SetPopupUrl() argument 67 SetValue(&popup_url_, tab_id, url); in SetPopupUrl() 70 bool ExtensionAction::HasPopup(int tab_id) { in HasPopup() argument 71 return !GetPopupUrl(tab_id).is_empty(); in HasPopup() 74 GURL ExtensionAction::GetPopupUrl(int tab_id) { in GetPopupUrl() argument 75 return GetValue(&popup_url_, tab_id); in GetPopupUrl() 78 void ExtensionAction::SetIcon(int tab_id, const SkBitmap& bitmap) { in SetIcon() argument 79 SetValue(&icon_, tab_id, bitmap); in SetIcon() 82 SkBitmap ExtensionAction::GetIcon(int tab_id) { in GetIcon() argument 83 return GetValue(&icon_, tab_id); in GetIcon() [all …]
|
/external/chromium/chrome/browser/extensions/ |
D | extension_page_actions_module.cc | 43 int tab_id; in SetPageActionEnabled() local 44 EXTENSION_FUNCTION_VALIDATE(action->GetInteger(keys::kTabIdKey, &tab_id)); in SetPageActionEnabled() 75 tab_id, profile(), include_incognito(), NULL, NULL, &contents, NULL); in SetPageActionEnabled() 78 kNoTabError, base::IntToString(tab_id)); 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() 98 bool PageActionFunction::InitCommon(int tab_id) { in InitCommon() argument 109 tab_id, profile(), include_incognito(), NULL, NULL, &wrapper, NULL); in InitCommon() 112 kNoTabError, base::IntToString(tab_id)); in InitCommon() [all …]
|
D | extension_devtools_manager.cc | 25 int tab_id; in AddEventListener() local 26 if (ExtensionDevToolsEvents::IsDevToolsEventName(event_name, &tab_id)) { in AddEventListener() 29 tab_id_to_render_process_ids_[tab_id].insert(render_process_id); in AddEventListener() 30 if (tab_id_to_bridge_.count(tab_id) == 0) { in AddEventListener() 33 new ExtensionDevToolsBridge(tab_id, profile_)); in AddEventListener() 35 tab_id_to_bridge_[tab_id] = bridge; in AddEventListener() 44 int tab_id; in RemoveEventListener() local 45 if (ExtensionDevToolsEvents::IsDevToolsEventName(event_name, &tab_id)) { in RemoveEventListener() 47 tab_id_to_render_process_ids_.find(tab_id); in RemoveEventListener() 54 if (tab_id_to_bridge_.count(tab_id) != 0) { in RemoveEventListener() [all …]
|
D | page_action_apitest.cc | 32 int tab_id = in IN_PROC_BROWSER_TEST_F() local 36 EXPECT_EQ("Modified", action->GetTitle(tab_id)); in IN_PROC_BROWSER_TEST_F() 41 int tab_id = in IN_PROC_BROWSER_TEST_F() local 45 browser()->profile(), extension->id(), "", tab_id, "", 0); in IN_PROC_BROWSER_TEST_F() 58 tab_id = browser()->GetSelectedTabContents()->controller().session_id().id(); in IN_PROC_BROWSER_TEST_F() 59 EXPECT_FALSE(action->GetIcon(tab_id).isNull()); in IN_PROC_BROWSER_TEST_F() 69 int tab_id = ExtensionTabUtil::GetTabId(browser()->GetSelectedTabContents()); in IN_PROC_BROWSER_TEST_F() local 75 ASSERT_FALSE(page_action->HasPopup(tab_id)); in IN_PROC_BROWSER_TEST_F() 83 browser()->profile(), extension->id(), "action", tab_id, "", 1); in IN_PROC_BROWSER_TEST_F() 87 ASSERT_TRUE(page_action->HasPopup(tab_id)) in IN_PROC_BROWSER_TEST_F() [all …]
|
D | extension_debugger_api.cc | 37 int tab_id); 111 int tab_id) in ExtensionDevToolsClientHost() argument 114 tab_id_(tab_id), in ExtensionDevToolsClientHost() 248 bool DebuggerFunction::InitTabContents(int tab_id) { in InitTabContents() argument 253 tab_id, profile(), include_incognito(), NULL, NULL, &wrapper, NULL); in InitTabContents() 257 base::IntToString(tab_id)); in InitTabContents() 264 bool DebuggerFunction::InitClientHost(int tab_id) { in InitClientHost() argument 265 if (!InitTabContents(tab_id)) in InitClientHost() 276 base::IntToString(tab_id)); in InitClientHost() 287 int tab_id; in RunImpl() local [all …]
|
D | extension_devtools_events.cc | 22 const std::string& event_name, int* tab_id) { in IsDevToolsEventName() argument 33 if (parts.size() == 2 && base::StringToInt(parts[0], tab_id)) { in IsDevToolsEventName() 41 std::string ExtensionDevToolsEvents::OnPageEventNameForTab(int tab_id) { in OnPageEventNameForTab() argument 44 tab_id, in OnPageEventNameForTab() 49 std::string ExtensionDevToolsEvents::OnTabCloseEventNameForTab(int tab_id) { in OnTabCloseEventNameForTab() argument 52 tab_id, in OnTabCloseEventNameForTab()
|
D | extension_sidebar_api.cc | 59 int tab_id = ExtensionTabUtil::GetTabId(tab); in OnStateChanged() local 61 details->Set(kTabIdKey, Value::CreateIntegerValue(tab_id)); in OnStateChanged() 107 int tab_id; in RunImpl() local 110 EXTENSION_FUNCTION_VALIDATE(details->GetInteger(kTabIdKey, &tab_id)); in RunImpl() 111 if (!ExtensionTabUtil::GetTabById(tab_id, profile(), include_incognito(), in RunImpl() 114 kNoTabError, base::IntToString(tab_id)); in RunImpl() 123 if (!ExtensionTabUtil::GetDefaultTab(browser, &tab_contents, &tab_id)) { in RunImpl() 174 int tab_id; in RunImpl() local 175 EXTENSION_FUNCTION_VALIDATE(details.GetInteger(kTabIdKey, &tab_id)); in RunImpl() 184 is_active = default_tab_id == tab_id; in RunImpl()
|
D | extension_clipboard_api.cc | 21 int tab_id; in RunImpl() local 22 EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &tab_id)); in RunImpl() 25 if (!ExtensionTabUtil::GetTabById(tab_id, profile(), include_incognito(), in RunImpl() 28 kNoTabError, base::IntToString(tab_id)); in RunImpl()
|
D | extension_browser_event_router.cc | 136 int tab_id = ExtensionTabUtil::GetTabId(contents); in Init() local 137 tab_entries_[tab_id] = TabEntry(); in Init() 275 int tab_id = ExtensionTabUtil::GetTabId(contents->tab_contents()); in TabInsertedAt() local 277 tab_entries_[tab_id] = TabEntry(); in TabInsertedAt() 284 args.Append(Value::CreateIntegerValue(tab_id)); in TabInsertedAt() 326 int tab_id = ExtensionTabUtil::GetTabId(contents->tab_contents()); in TabClosingAt() local 329 args.Append(Value::CreateIntegerValue(tab_id)); in TabClosingAt() 341 int removed_count = tab_entries_.erase(tab_id); in TabClosingAt() 435 int tab_id = ExtensionTabUtil::GetTabId(contents); in GetTabEntry() local 436 std::map<int, TabEntry>::iterator i = tab_entries_.find(tab_id); in GetTabEntry() [all …]
|
D | extension_infobar_module.cc | 30 int tab_id; in RunImpl() local 31 EXTENSION_FUNCTION_VALIDATE(args->GetInteger(keys::kTabId, &tab_id)); in RunImpl() 42 tab_id, in RunImpl() 51 base::IntToString(tab_id)); in RunImpl()
|
D | extension_devtools_events.h | 21 static bool IsDevToolsEventName(const std::string& event_name, int* tab_id); 24 static std::string OnPageEventNameForTab(int tab_id); 27 static std::string OnTabCloseEventNameForTab(int tab_id);
|
D | extension_tabs_module.cc | 63 static bool GetTabById(int tab_id, Profile* profile, 203 int* tab_id) { in GetDefaultTab() argument 206 DCHECK(tab_id); in GetDefaultTab() 210 if (tab_id) in GetDefaultTab() 211 *tab_id = ExtensionTabUtil::GetTabId((*contents)->tab_contents()); in GetDefaultTab() 218 bool ExtensionTabUtil::GetTabById(int tab_id, Profile* profile, in GetTabById() argument 236 if (target_contents->controller().session_id().id() == tab_id) { in GetTabById() 376 int tab_id; in RunImpl() local 378 EXTENSION_FUNCTION_VALIDATE(args->GetInteger(keys::kTabIdKey, &tab_id)); in RunImpl() 384 if (!GetTabById(tab_id, profile(), include_incognito(), in RunImpl() [all …]
|
D | extension_webrequest_api.cc | 95 int* tab_id, in ExtractRequestInfo() argument 104 info->child_id(), info->route_id(), tab_id, window_id); in ExtractRequestInfo() 146 int tab_id; member 149 RequestFilter() : tab_id(-1), window_id(-1) {} in RequestFilter() 238 if (!value.GetInteger("tabId", &tab_id)) in InitFromValue() 301 int tab_id = -1; in OnBeforeRequest() local 304 ExtractRequestInfo(request, &tab_id, &window_id, &resource_type); in OnBeforeRequest() 308 tab_id, window_id, resource_type); in OnBeforeRequest() 325 dict->SetInteger(keys::kTabIdKey, tab_id); in OnBeforeRequest() 498 int tab_id, in GetMatchingListeners() argument [all …]
|
D | extension_devtools_browsertests.cc | 64 int tab_id = ExtensionTabUtil::GetTabId(tab_contents); in IN_PROC_BROWSER_TEST_F() local 69 L"setListenersOnTab(%d)", tab_id); in IN_PROC_BROWSER_TEST_F() 120 int tab_id = ExtensionTabUtil::GetTabId(tab_contents); in IN_PROC_BROWSER_TEST_F() local 125 L"setListenersOnTab(%d)", tab_id); in IN_PROC_BROWSER_TEST_F() 137 tab_id); in IN_PROC_BROWSER_TEST_F()
|
D | browser_action_apitest.cc | 195 int tab_id = ExtensionTabUtil::GetTabId(browser()->GetSelectedTabContents()); in IN_PROC_BROWSER_TEST_F() local 201 ASSERT_FALSE(browser_action->HasPopup(tab_id)); in IN_PROC_BROWSER_TEST_F() 215 ASSERT_TRUE(browser_action->HasPopup(tab_id)) 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() 240 browser_action->GetPopupUrl(tab_id).path().c_str()); in IN_PROC_BROWSER_TEST_F() 250 int tab_id = ExtensionTabUtil::GetTabId(browser()->GetSelectedTabContents()); in IN_PROC_BROWSER_TEST_F() local 256 ASSERT_TRUE(browser_action->HasPopup(tab_id)) in IN_PROC_BROWSER_TEST_F() 270 ASSERT_FALSE(browser_action->HasPopup(tab_id)) in IN_PROC_BROWSER_TEST_F()
|
D | extension_devtools_bridge.cc | 22 ExtensionDevToolsBridge::ExtensionDevToolsBridge(int tab_id, in ExtensionDevToolsBridge() argument 24 : tab_id_(tab_id), in ExtensionDevToolsBridge() 27 ExtensionDevToolsEvents::OnPageEventNameForTab(tab_id)), in ExtensionDevToolsBridge() 29 ExtensionDevToolsEvents::OnTabCloseEventNameForTab(tab_id)) { in ExtensionDevToolsBridge()
|
/external/chromium/chrome/browser/sessions/ |
D | session_service_unittest.cc | 67 const SessionID& tab_id, in UpdateNavigation() argument 79 service()->UpdateTabNavigation(window_id, tab_id, index, entry); in UpdateNavigation() 81 service()->SetSelectedNavigationIndex(window_id, tab_id, index); in UpdateNavigation() 98 SessionID tab_id; in CreateAndWriteSessionWithOneTab() local 104 helper_.PrepareTabInWindow(window_id, tab_id, 0, true); in CreateAndWriteSessionWithOneTab() 105 UpdateNavigation(window_id, tab_id, nav1, 0, true); in CreateAndWriteSessionWithOneTab() 108 helper_.service()->SetPinnedState(window_id, tab_id, pinned_state); in CreateAndWriteSessionWithOneTab() 121 helper_.AssertTabEquals(window_id, tab_id, 0, 0, 1, *tab); in CreateAndWriteSessionWithOneTab() 145 SessionID tab_id; in TEST_F() local 146 ASSERT_NE(window_id.id(), tab_id.id()); in TEST_F() [all …]
|
D | session_service.h | 77 const SessionID& tab_id); 86 const SessionID& tab_id, 91 const SessionID& tab_id, 100 const SessionID& tab_id, 117 const SessionID& tab_id, 123 const SessionID& tab_id, 128 const SessionID& tab_id, 140 const SessionID& tab_id, 212 const SessionID& tab_id, 221 const SessionID& tab_id); [all …]
|
D | session_service.cc | 124 SessionID::id_type tab_id; member 180 const SessionID& tab_id) { in SetTabWindow() argument 184 ScheduleCommand(CreateSetTabWindowCommand(window_id, tab_id)); in SetTabWindow() 198 const SessionID& tab_id, in SetTabIndexInWindow() argument 203 ScheduleCommand(CreateSetTabIndexInWindowCommand(tab_id, new_index)); in SetTabIndexInWindow() 207 const SessionID& tab_id, in SetPinnedState() argument 212 ScheduleCommand(CreatePinnedStateCommand(tab_id, is_pinned)); in SetPinnedState() 216 const SessionID& tab_id, in TabClosed() argument 218 if (!tab_id.id()) in TabClosed() 224 IdToRange::iterator i = tab_to_available_range_.find(tab_id.id()); in TabClosed() [all …]
|
D | session_service_test_helper.cc | 30 const SessionID& tab_id, in PrepareTabInWindow() argument 33 service()->SetTabWindow(window_id, tab_id); in PrepareTabInWindow() 34 service()->SetTabIndexInWindow(window_id, tab_id, visual_index); in PrepareTabInWindow() 41 const SessionID& tab_id, in SetTabExtensionAppID() argument 43 service()->SetTabExtensionAppID(window_id, tab_id, extension_app_id); in SetTabExtensionAppID() 56 SessionID& tab_id, in AssertTabEquals() argument 62 EXPECT_EQ(tab_id.id(), session_tab.tab_id.id()); in AssertTabEquals()
|
D | base_session_service.cc | 139 SessionID::id_type tab_id, in CreateUpdateTabNavigationCommand() argument 144 pickle.WriteInt(tab_id); in CreateUpdateTabNavigationCommand() 185 SessionID::id_type tab_id, in CreateSetTabExtensionAppIDCommand() argument 189 pickle.WriteInt(tab_id); in CreateSetTabExtensionAppIDCommand() 205 SessionID::id_type* tab_id) { in RestoreUpdateTabNavigationCommand() argument 211 if (!pickle->ReadInt(&iterator, tab_id) || in RestoreUpdateTabNavigationCommand() 238 SessionID::id_type* tab_id, in RestoreSetTabExtensionAppIDCommand() argument 245 return pickle->ReadInt(&iterator, tab_id) && in RestoreSetTabExtensionAppIDCommand()
|
/external/chromium/chrome/browser/ |
D | aeropeek_manager.h | 45 virtual void ActivateTab(int tab_id) = 0; 46 virtual void CloseTab(int tab_id) = 0; 48 virtual bool GetTabThumbnail(int tab_id, SkBitmap* thumbnail) = 0; 49 virtual bool GetTabPreview(int tab_id, SkBitmap* preview) = 0; 131 virtual void CloseTab(int tab_id); 132 virtual void ActivateTab(int tab_id); 134 virtual bool GetTabThumbnail(int tab_id, SkBitmap* thumbnail); 135 virtual bool GetTabPreview(int tab_id, SkBitmap* preview); 140 void DeleteAeroPeekWindow(int tab_id); 148 AeroPeekWindow* GetAeroPeekWindow(int tab_id) const; [all …]
|
D | aeropeek_manager.cc | 555 int tab_id, 594 int tab_id() { return tab_id_; } 700 int tab_id, 706 tab_id_(tab_id), 1024 void AeroPeekManager::DeleteAeroPeekWindow(int tab_id) { 1030 if (window->tab_id() == tab_id) { 1050 AeroPeekWindow* AeroPeekManager::GetAeroPeekWindow(int tab_id) const { 1055 if (window->tab_id() == tab_id) 1076 TabContents* AeroPeekManager::GetTabContents(int tab_id) const { 1079 if (target_contents->controller().session_id().id() == tab_id) [all …]
|
/external/chromium/chrome/browser/sync/glue/ |
D | foreign_session_tracker.cc | 50 SessionID::id_type tab_id, in LookupSessionTab() argument 58 if (foreign_tab_map_[tag]->find(tab_id) == foreign_tab_map_[tag]->end()) { in LookupSessionTab() 63 *tab = (*foreign_tab_map_[tag])[tab_id]; in LookupSessionTab() 97 SessionID::id_type tab_id, in GetSessionTab() argument 103 foreign_tab_map_[foreign_session_tag]->find(tab_id); in GetSessionTab() 109 tab_id << " at " << tab.get(); in GetSessionTab() 112 (*foreign_tab_map_[foreign_session_tag])[tab_id] = tab.get(); in GetSessionTab() 116 tab_id << " at " << tab.get(); in GetSessionTab()
|