/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ActionBarTabs.java | 21 import android.app.ActionBar.Tab; 47 final String text = "Tab " + tabCount; 80 * to it, it will be committed at the end of the full tab switch operation. 81 * This lets tab switches be atomic without the app needing to track 96 public void onTabSelected(Tab tab, FragmentTransaction ft) { 100 public void onTabUnselected(Tab tab, FragmentTransaction ft) { 104 public void onTabReselected(Tab tab, FragmentTransaction ft) [all...] |
FragmentNestingTabs.java | 20 import android.app.ActionBar.Tab; 60 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 67 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 87 // Check to see if we already have a fragment for this tab, probably 89 // initial state is that a tab isn't shown. 98 public void onTabSelected(Tab tab, FragmentTransaction ft) { 107 public void onTabUnselected(Tab tab, FragmentTransaction ft) { 113 public void onTabReselected(Tab tab, FragmentTransaction ft) [all...] |
FragmentTabs.java | 22 import android.app.ActionBar.Tab; 60 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 67 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 87 // Check to see if we already have a fragment for this tab, probably 89 // initial state is that a tab isn't shown. 98 public void onTabSelected(Tab tab, FragmentTransaction ft) { 107 public void onTabUnselected(Tab tab, FragmentTransaction ft) { 113 public void onTabReselected(Tab tab, FragmentTransaction ft) [all...] |
/development/samples/Support7Demos/src/com/example/android/supportv7/app/ |
ActionBarTabs.java | 22 import android.support.v7.app.ActionBar.Tab; 46 final String text = "Tab " + tabCount; 79 * to it, it will be committed at the end of the full tab switch operation. 80 * This lets tab switches be atomic without the app needing to track 96 public void onTabSelected(Tab tab, FragmentTransaction ft) { 101 public void onTabUnselected(Tab tab, FragmentTransaction ft) { 106 public void onTabReselected(Tab tab, FragmentTransaction ft) [all...] |
/external/chromium/chrome/browser/download/ |
download_request_limiter.h | 67 // TabDownloadState maintains the download state for a particular tab. 107 void PromptUserForDownload(TabContents* tab, 171 DownloadStatus GetDownloadStatus(TabContents* tab); 186 void OnUserGesture(TabContents* tab); 218 // tab and invokes CanDownloadImpl. 238 // it. This has the effect of resetting the status for the tab to 242 // Maps from tab to download state. The download state for a tab only exists
|
/external/chromium/chrome/browser/metrics/ |
metrics_service_uitest.cc | 90 scoped_refptr<TabProxy> tab(window->GetTab(1)); 91 ASSERT_TRUE(tab.get()); 99 ASSERT_TRUE(tab->NavigateToURLAsync(GURL(chrome::kAboutCrashURL))); 102 // Give the browser a chance to notice the crashed tab.
|
/external/chromium/chrome/browser/sidebar/ |
sidebar_container.cc | 23 SidebarContainer::SidebarContainer(TabContents* tab, 26 : tab_(tab), 34 new TabContents(tab->profile(), NULL, MSG_ROUTING_NONE, NULL, NULL));
|
/external/chromium/chrome/browser/sync/ |
profile_sync_service_session_unittest.cc | 230 ASSERT_EQ(2, iter->second.tab()->controller().entry_count()); 231 ASSERT_EQ(GURL("http://foo/1"), iter->second.tab()->controller(). 233 ASSERT_EQ(GURL("http://foo/2"), iter->second.tab()->controller(). 236 ASSERT_EQ(2, iter->second.tab()->controller().entry_count()); 237 ASSERT_EQ(GURL("http://bar/1"), iter->second.tab()->controller(). 239 ASSERT_EQ(GURL("http://bar/2"), iter->second.tab()->controller(). 272 sync_pb::SessionTab* tab = tab_specifics.mutable_tab(); local 273 tab->set_tab_visual_index(13); 274 tab->set_current_navigation_index(3); 275 tab->set_pinned(true) [all...] |
/external/chromium/chrome/browser/ui/gtk/tabs/ |
dragged_tab_controller_gtk.h | 33 // controller's associated source Tab and TabStrip. |mouse_offset| is the 34 // distance of the mouse pointer from the Tab's origin. 45 // begun. Returns whether the tab has been destroyed. 48 // Retrieve the source tab if the TabContents specified matches the one being 53 // Returns true if the specified tab matches the tab being dragged. 54 bool IsDragSourceTab(const TabGtk* tab) const; 56 // Returns true if the specified tab is detached. 57 bool IsTabDetached(const TabGtk* tab) const; 65 // The drag session was canceled (alt-tab during drag, escape ... [all...] |
/external/chromium_org/chrome/browser/ui/ |
singleton_tabs.cc | 73 // Returns the index of an existing singleton tab in |params->browser| matching 89 // If there are several matches: prefer the active tab by starting there. 95 content::WebContents* tab = local 98 GURL tab_url = tab->GetURL(); 124 params->target_contents = tab;
|
/external/chromium_org/chrome/browser/ui/views/ |
hung_renderer_view.h | 66 content::WebContents* tab); 78 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; 88 void TabDestroyed(WebContentsObserverImpl* tab);
|
login_prompt_views.cc | 69 WebContents* tab = GetWebContentsForLogin(); variable 70 if (tab) 71 tab->GetRenderViewHost()->SetIgnoreInputEvents(false);
|
/external/chromium_org/chrome/browser/ui/webui/ntp/android/ |
context_menu_handler.cc | 55 // Tell to ntp_android.js whether "open in new incognito tab" is allowed or 109 TabAndroid* tab = TabAndroid::FromWebContents(web_ui()->GetWebContents()); local 110 if (tab) { 111 tab->ShowCustomContextMenu(
|
/external/chromium_org/chrome/test/functional/media/ |
worker_thread.py | 57 """Thread which for each queue task: opens tab, runs task, closes tab.""" 91 """For each task in queue: opens new tab, calls RunTask(), then closes tab. 103 # Make the test URL unique so we can figure out our tab index later. 112 """Returns the tab index for the tab belonging to this url. 118 for tab in self.__pyauto.GetBrowserInfo()['windows'][0]['tabs']: 119 if tab['url'] == url: 120 return tab['index' [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/ |
tab_unittest.py | 13 def _IsDocumentVisible(tab): 14 state = tab.EvaluateJavaScript('document.webkitVisibilityState') 16 tab.Disconnect() 45 logging.warning('Browser does not support tab control, skipping test.')
|
/external/chromium_org/tools/telemetry/telemetry/page/ |
page_measurement.py | 26 def MeasurePage(self, page, tab, results): 27 body_child_count = tab.EvaluateJavaScript( 40 def MeasurePage(self, page, tab, results): 41 body_child_count = tab.EvaluateJavaScript( 57 def _RunTest(self, page, tab, results): 59 self.MeasurePage(page, tab, results) 122 def MeasurePage(self, page, tab, results): 126 tab is an instance of telemetry.core.Tab 137 def MeasurePage(self, page, tab, results) [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
ManageApplications.java | 127 void onItemClick(ManageApplications.TabInfo tab, AdapterView<?> parent, 479 TabInfo tab = mTabs.get(position); local 480 View root = tab.build(mInflater, mContentContainer, mRootView); 482 root.setTag(R.id.name, tab); 569 public ApplicationsAdapter(ApplicationsState state, TabInfo tab, int filterMode) { 572 mTab = tab; 573 mContext = tab.mOwner.getActivity(); 868 TabInfo tab = new TabInfo(this, mApplicationsState, local 929 TabInfo tab = mTabs.get(i); local 1015 TabInfo tab = mTabs.get(i); local 1080 TabInfo tab = tabForType(LIST_TYPE_RUNNING); local 1226 TabInfo tab = mTabs.get(position); local [all...] |
/external/chromium_org/chrome/browser/automation/ |
automation_provider.cc | 585 int handle, NavigationController** tab) { 588 if (tab) 589 *tab = nav_controller; 595 // Gets the current used encoding name of the page in the specified tab. 607 // Activate the tab and then click the encoding menu. 672 NavigationController* tab = tab_tracker_->GetResource(tab_handle); local 673 if (!tab) { 679 tab->Reload(check_for_repost); 708 NavigationController* tab = tab_tracker_->GetResource(tab_handle); local 709 DCHECK(tab != NULL) 779 NavigationController* tab = tab_tracker_->GetResource(tab_handle); local 799 NavigationController* tab = NULL; local [all...] |
/external/chromium_org/chrome/browser/sessions/ |
session_service.cc | 270 return; // Hapens when the tab is replaced. 281 // Tab is in last window. Don't commit it immediately, instead add it to the 291 // . closing a tab and there are other windows/tabs open. 293 // In all cases we need to mark the tab as explicitly closed. 296 // User closed the last tab in the last tabbed browser. Don't mark the 297 // tab closed. 334 // We'll hit this if user closed the last tab in a window. 434 void SessionService::TabRestored(WebContents* tab, bool pinned) { 435 SessionTabHelper* session_tab_helper = SessionTabHelper::FromWebContents(tab); 439 BuildCommandsForTab(session_tab_helper->window_id(), tab, -1 904 SessionTab* tab = new SessionTab(); local 977 SessionTab* tab = i->second; local 1109 SessionTab* tab = GetTab(payload.id, tabs); local 1123 SessionTab* tab = GetTab(payload.id, tabs); local 1150 SessionTab* tab = GetTab(tab_id, tabs); local 1369 WebContents* tab = tab_strip->GetWebContentsAt(i); local [all...] |
/external/chromium/chrome/browser/sessions/ |
session_service.cc | 219 return; // Hapens when the tab is replaced. 230 // Tab is in last window. Don't commit it immediately, instead add it to the 240 // . closing a tab and there are other windows/tabs open. 242 // In all cases we need to mark the tab as explicitly closed. 245 // User closed the last tab in the last tabbed browser. Don't mark the 246 // tab closed. 283 // We'll hit this if user closed the last tab in a window. 802 SessionTab* tab = new SessionTab(); local 803 tab->tab_id.set_id(tab_id); 804 (*tabs)[tab_id] = tab; 870 SessionTab* tab = i->second; local 968 SessionTab* tab = GetTab(payload.id, tabs); local 1132 TabContents* tab = browser->GetTabContentsAt(i); local [all...] |
/developers/samples/android/ui/views/HorizontalPaging/HorizontalPagingSample/src/main/java/com/example/android/horizontalpaging/ |
MainActivity.java | 55 // state with the tab state. (See mViewPager.setOnPageChangeListener() and onTabSelected().) 71 // When swiping between different sections, select the corresponding tab. We can also use 72 // ActionBar.Tab#select() to do this if we have a reference to the Tab. 83 // For each of the sections in the app, add a tab to the action bar. 85 // Create a tab with text corresponding to the page title defined by the adapter. Also 87 // callback (listener) for when this tab is selected. 97 * Update {@link ViewPager} after a tab has been selected in the ActionBar. 99 * @param tab Tab that was selected [all...] |
/development/samples/browseable/HorizontalPaging/src/com.example.android.horizontalpaging/ |
MainActivity.java | 55 // state with the tab state. (See mViewPager.setOnPageChangeListener() and onTabSelected().) 71 // When swiping between different sections, select the corresponding tab. We can also use 72 // ActionBar.Tab#select() to do this if we have a reference to the Tab. 83 // For each of the sections in the app, add a tab to the action bar. 85 // Create a tab with text corresponding to the page title defined by the adapter. Also 87 // callback (listener) for when this tab is selected. 97 * Update {@link ViewPager} after a tab has been selected in the ActionBar. 99 * @param tab Tab that was selected [all...] |
/development/samples/training/EffectiveNavigation/src/com/example/android/effectivenavigation/ |
MainActivity.java | 74 // When swiping between different app sections, select the corresponding tab. 75 // We can also use ActionBar.Tab#select() to do this if we have a reference to the 76 // Tab. 81 // For each of the sections in the app, add a tab to the action bar. 83 // Create a tab with text corresponding to the page title defined by the adapter. 85 // listener for when this tab is selected. 94 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { 98 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) [all...] |
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/ |
TabHelper.java | 31 * Call {@link TabHelper#newTab(String)} to create each tab. 35 * Call {@link TabHelper#addTab(CompatTab)} for each tab, and you're done. 60 * Create a new tab. 62 * @param tag A unique tag to associate with the tab and associated fragment 73 public abstract void addTab(CompatTab tab);
|
/external/chromium/chrome/browser/extensions/ |
extension_incognito_apitest.cc | 35 TabContents* tab = otr_browser->GetSelectedTabContents(); local 40 tab->render_view_host(), L"", 73 TabContents* tab = otr_browser->GetSelectedTabContents(); local 78 tab->render_view_host(), L"",
|