Searched refs:tab_id (Results 1 - 25 of 151) sorted by relevance

1234567

/external/chromium_org/chrome/browser/extensions/
H A Dextension_action.cc69 bool HasValue(const std::map<int, T>& map, int tab_id) { argument
70 return map.find(tab_id) != map.end();
134 void ExtensionAction::SetPopupUrl(int tab_id, const GURL& url) { argument
140 SetValue(&popup_url_, tab_id, url);
143 bool ExtensionAction::HasPopup(int tab_id) const {
144 return !GetPopupUrl(tab_id).is_empty();
147 GURL ExtensionAction::GetPopupUrl(int tab_id) const {
148 return GetValue(&popup_url_, tab_id);
151 void ExtensionAction::SetIcon(int tab_id, const gfx::Image& image) { argument
152 SetValue(&icon_, tab_id, imag
188 SetIsVisible(int tab_id, bool new_visibility) argument
199 DeclarativeShow(int tab_id) argument
204 UndoDeclarativeShow(int tab_id) argument
211 DeclarativeSetIcon(int tab_id, int priority, const gfx::Image& icon) argument
218 UndoDeclarativeSetIcon(int tab_id, int priority, const gfx::Image& icon) argument
240 ClearAllValuesForTab(int tab_id) argument
254 PaintBadge(gfx::Canvas* canvas, const gfx::Rect& bounds, int tab_id) argument
267 GetIconWithBadge( const gfx::ImageSkia& icon, int tab_id, const gfx::Size& spacing) const argument
[all...]
H A Dextension_action.h49 // Use this ID to indicate the default state for properties that take a tab_id
84 void SetPopupUrl(int tab_id, const GURL& url);
87 bool HasPopup(int tab_id) const;
90 GURL GetPopupUrl(int tab_id) const;
93 void SetTitle(int tab_id, const std::string& title) { argument
94 SetValue(&title_, tab_id, title);
97 // If tab |tab_id| has a set title, return it. Otherwise, return
99 std::string GetTitle(int tab_id) const { return GetValue(&title_, tab_id); }
108 void SetIcon(int tab_id, cons
135 SetBadgeText(int tab_id, const std::string& text) argument
144 SetBadgeTextColor(int tab_id, SkColor text_color) argument
154 SetBadgeBackgroundColor(int tab_id, SkColor color) argument
229 SetValue(std::map<int, T>* map, int tab_id, const T& val) argument
[all...]
H A Dextension_action_icon_factory.cc54 gfx::Image ExtensionActionIconFactory::GetIcon(int tab_id) { argument
55 gfx::ImageSkia base_icon = GetBaseIconFromAction(tab_id);
59 gfx::ImageSkia ExtensionActionIconFactory::GetBaseIconFromAction(int tab_id) { argument
60 gfx::ImageSkia icon = action_->GetExplicitlySetIcon(tab_id);
64 icon = action_->GetDeclarativeIcon(tab_id);
H A Dbrowser_permissions_policy_delegate.h22 int tab_id,
H A Dlocation_bar_controller_unittest.cc63 int tab_id() { function in class:extensions::__anon3998::LocationBarControllerUnitTest
159 page_action.SetTitle(tab_id(), "Goodbye");
160 page_action.SetPopupUrl(tab_id(), extension->GetResourceURL("popup.html"));
162 EXPECT_EQ("Goodbye", page_action.GetTitle(tab_id()));
164 page_action.GetPopupUrl(tab_id()));
169 EXPECT_EQ("Goodbye", page_action.GetTitle(tab_id()));
171 page_action.GetPopupUrl(tab_id()));
176 EXPECT_EQ("Hello", page_action.GetTitle(tab_id()));
177 EXPECT_EQ(GURL(), page_action.GetPopupUrl(tab_id()));
/external/chromium_org/chrome/renderer/extensions/
H A Dtab_finder.cc17 content::RenderView* TabFinder::Find(int tab_id) { argument
18 TabFinder finder(tab_id);
23 TabFinder::TabFinder(int tab_id) : tab_id_(tab_id), view_(NULL) {} argument
34 if (helper && helper->tab_id() == tab_id_)
H A Dtab_finder.h21 // Returns the top RenderView with |tab_id|, or NULL if none is found.
22 static content::RenderView* Find(int tab_id);
25 explicit TabFinder(int tab_id);
/external/chromium_org/extensions/browser/api/web_request/
H A Dweb_request_event_router_delegate.cc16 int tab_id, int window_id, net::URLRequest* request) {
15 OnGetMatchingListenersImplCheck( int tab_id, int window_id, net::URLRequest* request) argument
/external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/
H A Dtab_list_backend.py26 tab_id = inspector_backend_list.DebuggerUrlToId(debugger_url)
32 response = self._browser_backend.Request('close/%s' % tab_id,
36 raise Exception('Unable to close tab, tab id not found: %s' % tab_id)
38 util.WaitFor(lambda: tab_id not in self, timeout=5)
42 tab_id = inspector_backend_list.DebuggerUrlToId(debugger_url)
43 assert tab_id in self
45 response = self._browser_backend.Request('activate/%s' % tab_id,
49 raise Exception('Unable to activate tab, tab id not found: %s' % tab_id)
53 tab_id = inspector_backend_list.DebuggerUrlToId(debugger_url)
54 tab_info = self.GetContextInfo(tab_id)
[all...]
/external/chromium_org/chrome/browser/android/thumbnail/
H A Dthumbnail_store.h41 virtual void OnFinishedThumbnailRead(TabId tab_id) = 0;
61 void Put(TabId tab_id, const SkBitmap& bitmap, float thumbnail_scale);
62 void Remove(TabId tab_id);
63 Thumbnail* Get(TabId tab_id, bool force_disk_read, bool allow_approximation);
66 void InvalidateThumbnailIfChanged(TabId tab_id, const GURL& url);
67 bool CheckAndUpdateThumbnailMetaData(TabId tab_id, const GURL& url);
70 TabId tab_id,
93 void RemoveFromDisk(TabId tab_id);
97 void WriteThumbnailIfNecessary(TabId tab_id,
101 void CompressThumbnailIfNecessary(TabId tab_id,
[all...]
H A Dthumbnail_store.cc161 void ThumbnailStore::Put(TabId tab_id, argument
167 DCHECK(thumbnail_meta_data_.find(tab_id) != thumbnail_meta_data_.end());
169 base::Time time_stamp = thumbnail_meta_data_[tab_id].capture_time();
171 tab_id, time_stamp, thumbnail_scale, ui_resource_provider_, this);
174 RemoveFromReadQueue(tab_id);
175 MakeSpaceForNewItemIfNecessary(tab_id);
176 cache_.Put(tab_id, thumbnail.Pass());
182 tab_id, time_stamp, approximation.second, ui_resource_provider_, this);
184 approximation_cache_.Put(tab_id, approx_thumbnail.Pass());
186 CompressThumbnailIfNecessary(tab_id, time_stam
189 Remove(TabId tab_id) argument
197 Get(TabId tab_id, bool force_disk_read, bool allow_approximation) argument
235 InvalidateThumbnailIfChanged(TabId tab_id, const GURL& url) argument
246 CheckAndUpdateThumbnailMetaData(TabId tab_id, const GURL& url) argument
294 TabId tab_id = *iter; local
308 DecompressThumbnailFromFile( TabId tab_id, const base::Callback<void(bool, SkBitmap)>& post_decompress_callback) argument
324 RemoveFromDisk(TabId tab_id) argument
346 TabId tab_id; local
353 WriteThumbnailIfNecessary( TabId tab_id, skia::RefPtr<SkPixelRef> compressed_data, float scale, const gfx::Size& content_size) argument
375 CompressThumbnailIfNecessary( TabId tab_id, const base::Time& time_stamp, const SkBitmap& bitmap, float scale) argument
425 MakeSpaceForNewItemIfNecessary(TabId tab_id) argument
465 RemoveFromReadQueue(TabId tab_id) argument
474 TabId tab_id = thumbnail->tab_id(); local
621 PostCompressionTask( TabId tab_id, const base::Time& time_stamp, float scale, skia::RefPtr<SkPixelRef> compressed_data, const gfx::Size& content_size) argument
788 PostReadTask(TabId tab_id, skia::RefPtr<SkPixelRef> compressed_data, float scale, const gfx::Size& content_size) argument
825 NotifyObserversOfThumbnailRead(TabId tab_id) argument
830 RemoveOnMatchedTimeStamp(TabId tab_id, const base::Time& time_stamp) argument
[all...]
/external/chromium_org/chrome/browser/extensions/api/declarative_content/
H A Dset_icon_apitest.cc84 const int tab_id = ExtensionTabUtil::GetTabId(tab); local
87 EXPECT_TRUE(page_action->GetDeclarativeIcon(tab_id).bitmap()->empty());
89 EXPECT_FALSE(page_action->GetDeclarativeIcon(tab_id).bitmap()->empty());
93 EXPECT_TRUE(page_action->GetDeclarativeIcon(tab_id).bitmap()->empty());
/external/chromium_org/chrome/browser/extensions/api/web_request/
H A Dchrome_extension_web_request_event_router_delegate.cc29 net::URLRequest* request, int* tab_id, int* window_id) {
36 info, tab_id, window_id);
75 int tab_id = -1; local
77 ExtractExtraRequestDetailsInternal(request, &tab_id, &window_id);
78 out->SetInteger(keys::kTabIdKey, tab_id);
84 int tab_id = -1; local
86 ExtractExtraRequestDetailsInternal(request, &tab_id, &window_id);
87 if (filter_tab_id != -1 && tab_id != filter_tab_id)
28 ExtractExtraRequestDetailsInternal( net::URLRequest* request, int* tab_id, int* window_id) argument
/external/chromium_org/chrome/browser/sessions/
H A Dsession_service_test_helper.cc28 const SessionID& tab_id,
31 service()->SetTabWindow(window_id, tab_id);
32 service()->SetTabIndexInWindow(window_id, tab_id, visual_index);
39 const SessionID& tab_id,
41 service()->SetTabExtensionAppID(window_id, tab_id, extension_app_id);
46 const SessionID& tab_id,
48 service()->SetTabUserAgentOverride(window_id, tab_id, user_agent_override);
69 const SessionID& tab_id,
75 EXPECT_EQ(tab_id.id(), session_tab.tab_id
27 PrepareTabInWindow(const SessionID& window_id, const SessionID& tab_id, int visual_index, bool select) argument
37 SetTabExtensionAppID( const SessionID& window_id, const SessionID& tab_id, const std::string& extension_app_id) argument
44 SetTabUserAgentOverride( const SessionID& window_id, const SessionID& tab_id, const std::string& user_agent_override) argument
68 AssertTabEquals(const SessionID& window_id, const SessionID& tab_id, int visual_index, int nav_index, size_t nav_count, const SessionTab& session_tab) argument
[all...]
H A Dsession_service_unittest.cc86 const SessionID& tab_id,
89 service()->UpdateTabNavigation(window_id, tab_id, navigation);
92 window_id, tab_id, navigation.index());
116 SessionID tab_id; local
121 helper_.PrepareTabInWindow(window_id, tab_id, 0, true);
122 UpdateNavigation(window_id, tab_id, nav1, true);
125 helper_.service()->SetPinnedState(window_id, tab_id, pinned_state);
138 helper_.AssertTabEquals(window_id, tab_id, 0, 0, 1, *tab);
184 SessionID tab_id; local
185 ASSERT_NE(window_id.id(), tab_id
84 UpdateNavigation( const SessionID& window_id, const SessionID& tab_id, const SerializedNavigationEntry& navigation, bool select) argument
214 SessionID tab_id; local
232 SessionID tab_id; local
265 SessionID tab_id; local
378 SessionID tab_id; local
448 SessionID tab_id; local
491 SessionID tab_id; local
531 SessionID tab_id; local
585 SessionID tab_id; local
628 SessionID tab_id; local
668 SessionID tab_id; local
689 SessionID tab_id; local
725 SessionID tab_id; local
744 SessionID tab_id; local
762 SessionID tab_id; local
801 SessionID tab_id; local
859 SessionID tab_id; local
890 SessionID tab_id; local
973 SessionID tab_id; local
[all...]
H A Dsession_service_test_helper.h39 const SessionID& tab_id,
44 const SessionID& tab_id,
48 const SessionID& tab_id,
59 const SessionID& tab_id,
H A Dsession_service.h101 const SessionID& tab_id);
110 const SessionID& tab_id,
115 const SessionID& tab_id,
124 const SessionID& tab_id,
156 const SessionID& tab_id,
162 const SessionID& tab_id,
168 const SessionID& tab_id,
178 const SessionID& tab_id,
186 const SessionID& tab_id,
247 const SessionID& tab_id,
[all...]
H A Dbase_session_service.h94 SessionID::id_type tab_id,
100 SessionID::id_type tab_id,
107 SessionID::id_type tab_id,
119 // successful |tab_id| is set to the id of the restored tab.
123 SessionID::id_type* tab_id);
130 SessionID::id_type* tab_id,
137 SessionID::id_type* tab_id,
/external/chromium_org/extensions/common/permissions/
H A Dpermissions_data.cc125 int tab_id,
128 CHECK_GE(tab_id, 0);
129 TabPermissionsMap::iterator iter = tab_specific_permissions_.find(tab_id);
131 tab_specific_permissions_[tab_id] = permissions;
137 void PermissionsData::ClearTabSpecificPermissions(int tab_id) const {
139 CHECK_GE(tab_id, 0);
140 tab_specific_permissions_.erase(tab_id);
153 int tab_id,
159 GetTabSpecificPermissions(tab_id);
220 int tab_id,
124 UpdateTabSpecificPermissions( int tab_id, scoped_refptr<const PermissionSet> permissions) const argument
152 HasAPIPermissionForTab( int tab_id, APIPermission::ID permission) const argument
217 CanAccessPage(const Extension* extension, const GURL& document_url, const GURL& top_frame_url, int tab_id, int process_id, std::string* error) const argument
235 GetPageAccess( const Extension* extension, const GURL& document_url, const GURL& top_frame_url, int tab_id, int process_id, std::string* error) const argument
252 CanRunContentScriptOnPage(const Extension* extension, const GURL& document_url, const GURL& top_frame_url, int tab_id, int process_id, std::string* error) const argument
270 GetContentScriptAccess( const Extension* extension, const GURL& document_url, const GURL& top_frame_url, int tab_id, int process_id, std::string* error) const argument
287 CanCaptureVisiblePage(int tab_id, std::string* error) const argument
321 HasTabSpecificPermissionToExecuteScript( int tab_id, const GURL& url) const argument
335 CanRunOnPage( const Extension* extension, const GURL& document_url, const GURL& top_frame_url, int tab_id, int process_id, const URLPatternSet& permitted_url_patterns, const URLPatternSet& withheld_url_patterns, std::string* error) const argument
[all...]
H A Dpermissions_data.h57 int tab_id,
96 // Updates the tab-specific permissions of |tab_id| to include those from
99 int tab_id,
102 // Clears the tab-specific permissions of |tab_id|.
103 void ClearTabSpecificPermissions(int tab_id) const;
113 bool HasAPIPermissionForTab(int tab_id, APIPermission::ID permission) const;
161 int tab_id,
170 int tab_id,
183 int tab_id,
193 int tab_id,
[all...]
/external/chromium_org/chrome/browser/omnibox/
H A Domnibox_log.cc14 SessionID::id_type tab_id,
26 tab_id(tab_id),
7 OmniboxLog( const base::string16& text, bool just_deleted_text, metrics::OmniboxInputType::Type input_type, bool is_popup_open, size_t selected_index, bool is_paste_and_go, SessionID::id_type tab_id, metrics::OmniboxEventProto::PageClassification current_page_classification, base::TimeDelta elapsed_time_since_user_first_modified_omnibox, size_t completed_length, base::TimeDelta elapsed_time_since_last_change_to_default_match, const AutocompleteResult& result) argument
/external/chromium_org/chrome/browser/ui/views/location_bar/
H A Dpage_action_image_view.cc90 int tab_id = view_controller_->GetCurrentTabId(); local
93 tab_id == -1 ||
94 (!preview_enabled_ && !extension_action()->GetIsVisible(tab_id))) {
100 tooltip_ = extension_action()->GetTitle(tab_id);
104 gfx::Image icon = view_controller_->GetIcon(tab_id);
114 int tab_id = view_controller_->GetCurrentTabId(); local
115 if (tab_id >= 0) {
117 canvas, GetLocalBounds(), tab_id);
/external/chromium_org/chrome/browser/infobars/
H A Dinfobar_extension_api.cc27 int tab_id; local
28 EXTENSION_FUNCTION_VALIDATE(args->GetInteger(kTabId, &tab_id));
41 if (!extensions::ExtensionTabUtil::GetTabById(tab_id, GetProfile(),
46 base::IntToString(tab_id));
/external/chromium_org/chrome/browser/ui/views/toolbar/
H A Dbrowser_action_view.cc111 int tab_id = view_controller_->GetCurrentTabId(); local
112 if (tab_id >= 0)
113 extension_action()->PaintBadge(canvas, GetLocalBounds(), tab_id);
129 int tab_id = view_controller_->GetCurrentTabId(); local
130 if (tab_id < 0)
133 if (!IsEnabled(tab_id))
138 gfx::ImageSkia icon = *view_controller_->GetIcon(tab_id).ToImageSkia();
141 if (!extension_action()->GetIsVisible(tab_id))
153 std::string title = extension_action()->GetTitle(tab_id);
164 int tab_id local
261 int tab_id = view_controller_->GetCurrentTabId(); local
[all...]
/external/chromium_org/chrome/browser/extensions/api/extension_action/
H A Dpage_action_apitest.cc53 int tab_id = SessionTabHelper::FromWebContents( local
57 EXPECT_EQ("Modified", action->GetTitle(tab_id));
80 tab_id = SessionTabHelper::FromWebContents(
82 EXPECT_FALSE(icon_factory.GetIcon(tab_id).IsEmpty());
92 int tab_id = ExtensionTabUtil::GetTabId( local
99 ASSERT_FALSE(page_action->HasPopup(tab_id));
110 ASSERT_TRUE(page_action->HasPopup(tab_id))
114 page_action->GetPopupUrl(tab_id).path().c_str());
126 ASSERT_TRUE(page_action->HasPopup(tab_id));
128 page_action->GetPopupUrl(tab_id)
138 int tab_id = ExtensionTabUtil::GetTabId( local
[all...]

Completed in 457 milliseconds

1234567