/packages/apps/Browser/src/com/android/browser/ |
WebViewController.java | 48 void onSetWebView(Tab tab, WebView view); 50 void createSubWindow(Tab tab); 52 void onPageStarted(Tab tab, WebView view, Bitmap favicon); 54 void onPageFinished(Tab tab); 56 void onProgressChanged(Tab tab); [all...] |
UiController.java | 41 Tab getCurrentTab(); 45 List<Tab> getTabs(); 47 Tab openTabToHomePage(); 49 Tab openIncognitoTab(); 51 Tab openTab(String url, boolean incognito, boolean setActive, 54 void setActiveTab(Tab tab); 56 boolean switchToTab(Tab tab); 60 void closeTab(Tab tab) [all...] |
UI.java | 57 public void addTab(Tab tab); 59 public void removeTab(Tab tab); 61 public void setActiveTab(Tab tab); 63 public void updateTabs(List<Tab> tabs); 65 public void detachTab(Tab tab); 67 public void attachTab(Tab tab) [all...] |
TabControl.java | 32 // next Tab ID, starting at 1 39 void onThumbnailUpdated(Tab t); 45 private ArrayList<Tab> mTabs; 47 private ArrayList<Tab> mTabQueue; 61 mTabs = new ArrayList<Tab>(mMaxTabs); 62 mTabQueue = new ArrayList<Tab>(mMaxTabs); 70 * Return the current tab's main WebView. This will always return the main 71 * WebView for a given tab and not a subwindow. 72 * @return The current tab's WebView. 75 Tab t = getTab(mCurrentTab) 439 final Tab tab = tabMap.get(id); local [all...] |
PreloadController.java | 72 public void onSetWebView(Tab tab, WebView view) { 77 public void createSubWindow(Tab tab) { 82 public void onPageStarted(Tab tab, WebView view, Bitmap favicon) { 86 // user visits a preloaded tab, the only item in the history 93 public void onPageFinished(Tab tab) { 95 if (tab != null) [all...] |
NavScreen.java | 52 Tab mTab; 70 HashMap<Tab, View> mTabViews; 128 mTabViews = new HashMap<Tab, View>(tc.getTabCount()); 132 // update state for active tab 137 Tab tab = mAdapter.getItem(pos); 138 onCloseTab(tab); 158 private void onCloseTab(Tab tab) { 159 if (tab != null) 170 final Tab tab = mUiController.openTab(BrowserSettings.getInstance().getHomePage(), local 233 final Tab tab = getItem(position); local [all...] |
XLargeUi.java | 116 for (Tab t : mTabControl.getTabs()) { 163 public void onProgressChanged(Tab tab) { 164 int progress = tab.getLoadProgress(); 165 mTabBar.onProgress(tab, progress); 166 if (tab.inForeground()) { 172 public void addTab(Tab tab) { 173 mTabBar.onNewTab(tab); 176 protected void onAddTabCompleted(Tab tab) [all...] |
Controller.java | 282 // Find out if we will restore any state and remember the tab. 307 // Create an initial tab. 310 // the tab will be close when exit. 312 Tab t = null; 332 List<Tab> tabs = mTabControl.getTabs(); 334 for (Tab t : tabs) { 342 // TabControl.restoreState() will create a new tab even if 399 public void onSetWebView(Tab tab, WebView view) { 400 mUi.onSetWebView(tab, view) 628 Tab tab = mTabControl.getCurrentTab(); local 775 Tab tab = mTabControl.getCurrentTab(); local 1879 final Tab tab = getCurrentTab(); local 2277 Tab tab = showPreloadedTab(urlData); local 2312 Tab tab = createNewTab(incognito, setActive, useCurrent); local 2330 Tab tab = null; local 2350 SnapshotTab tab = null; local 2424 Tab tab = getCurrentTab(); local 2601 Tab tab = getCurrentTab(); local [all...] |
/external/chromium/chrome/browser/tabs/ |
pinned_tab_test_utils.cc | 7 typedef BrowserInit::LaunchWithProfile::Tab Tab; 11 std::string TabToString(const Tab& tab) { 12 return tab.url.spec() + ":" + (tab.is_app ? "app" : "") + ":" + 13 (tab.is_pinned ? "pinned" : "") + ":" + tab.app_id; 20 const std::vector<BrowserInit::LaunchWithProfile::Tab>& values) {
|
pinned_tab_test_utils.h | 18 // of urls. If the tab is an app, ':app' is appended, and if the tab is 21 const std::vector<BrowserInit::LaunchWithProfile::Tab>& values);
|
pinned_tab_codec.h | 33 static std::vector<BrowserInit::LaunchWithProfile::Tab> ReadPinnedTabs(
|
pinned_tab_codec.cc | 20 typedef BrowserInit::LaunchWithProfile::Tab Tab; 38 // Adds a DictionaryValue to |values| representing the pinned tab at the 67 // Invokes EncodePinnedTab for each pinned tab in browser. 74 // Decodes the previously written values in |value| to |tab|, returning true 76 static bool DecodeTab(const DictionaryValue& value, Tab* tab) { 77 tab->is_app = false; 82 tab->url = GURL(url_string); 84 if (value.GetString(kAppID, &(tab->app_id)) 129 Tab tab; local [all...] |
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/ |
CompatActionBarNavHandler.java | 20 import android.app.ActionBar.Tab; 49 * Called by framework when a tab is selected. 54 public void onTabSelected(Tab tab, FragmentTransaction ft) { 56 mNavListener.onCategorySelected(tab.getPosition()); 72 * Called by framework when a tab is re-selected. That is, it was already selected and is 76 public void onTabReselected(Tab tab, FragmentTransaction ft) { 81 * Called by framework when a tab is unselected. Not used in our app. 84 public void onTabUnselected(Tab tab, FragmentTransaction ft) [all...] |
/external/chromium/chrome/browser/ui/webui/ |
value_helper.h | 16 static bool TabToValue(const TabRestoreService::Tab& tab,
|
/frameworks/base/core/java/android/app/ |
ActionBar.java | 76 * Tab navigation mode. Instead of static title text this mode 499 * Create and return a new {@link Tab}. 500 * This tab will not be included in the action bar until it is added. 508 * @return A new Tab 510 * @see #addTab(Tab) 512 public abstract Tab newTab(); 515 * Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list. 516 * If this is the first tab to be added it will become the selected tab [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
ActionBarTest.java | 19 import android.app.ActionBar.Tab; 45 Tab t1 = createTab("Tab 1"); 51 Tab t2 = createTab("Tab 2"); 57 Tab t3 = createTab("Tab 3"); 63 Tab t4 = createTab("Tab 2.5"); 69 Tab t5 = createTab("Tab 0.5") [all...] |
/external/chromium/chrome/browser/ui/views/tabs/ |
tab.cc | 5 #include "chrome/browser/ui/views/tabs/tab.h" 43 // Vertical adjustment to the favicon when the tab has a large icon. 46 // When a non-mini-tab becomes a mini-tab the width of the tab animates. If 47 // the width of a mini-tab is >= kMiniTabRendererAsNormalTabWidth then the tab 48 // is rendered as a normal tab. This is done to avoid having the title 49 // immediately disappear when transitioning a tab from normal to mini-tab [all...] |
tab.h | 24 // A View that renders a Tab, either in a TabStrip or in a DraggedTabView. 27 class Tab : public BaseTab { 32 explicit Tab(TabController* controller); 33 virtual ~Tab(); 35 // Start/stop the mini-tab title animation. 39 // Set the background offset used to match the image in the inactive tab 45 // Returns the minimum possible size of a single unselected Tab. 47 // Returns the minimum possible size of a selected Tab. Selected tabs must 51 // Returns the preferred size of a single Tab, assuming space is 76 // Paint various portions of the Tab [all...] |
tab_strip.cc | 15 #include "chrome/browser/ui/views/tabs/tab.h" 70 // A subclass of button that hit-tests to the shape of the new tab button. 82 // When the button is sized to the top of the tab strip we want the user to 92 // These values are defined by the shape of the new tab bitmap. Should that 121 current_unselected_width_(Tab::GetStandardSize().width()), 122 current_selected_width_(Tab::GetStandardSize().width()), 137 // crash in the case where the user closes the window after closing a tab 177 // Check to see if the point is within the non-button parts of the new tab 187 // All other regions, including the new Tab button, should be considered part 210 // The user is about to close a tab other than the last tab. Se 246 Tab* tab = GetTabAtModelIndex(model_index); local 261 Tab* tab = new Tab(NULL); local 282 Tab* tab = GetTabAtTabDataIndex(i); local 413 Tab* tab = GetTabAtTabDataIndex(i); local 427 Tab* tab = new Tab(this); local 442 BaseTab* tab = base_tab_at_tab_index(tab_data_index); local 458 Tab* tab = GetTabAtTabDataIndex(i); local 487 BaseTab* tab = tabs[i]; local 509 BaseTab* tab = tabs[i]; local 522 BaseTab* tab = tabs[i]; local 736 Tab* tab = GetTabAtTabDataIndex(drop_index); local 778 Tab* tab = GetTabAtTabDataIndex(i); local 881 BaseTab* tab = base_tab_at_tab_index(i); local 902 Tab* tab = GetTabAtTabDataIndex(i); local 970 BaseTab* tab = base_tab_at_tab_index(i); local [all...] |
/external/chromium/chrome/browser/sessions/ |
tab_restore_service.h | 27 // tabs and windows. When a tab is closed 28 // TabRestoreService::CreateHistoricalTab is invoked and a Tab is created to 29 // represent the tab. Similarly, when a browser is closed, BrowserClosing is 32 // To restore a tab/window from the TabRestoreService invoke RestoreEntryById 48 TAB, 64 // The time when the window or tab was closed. 73 // Represents a previously open tab. 74 struct Tab : public Entry { 75 Tab(); 76 virtual ~Tab(); [all...] |
tab_restore_service.cc | 43 type(TAB), 60 // . When the user closes a tab a command of type 61 // kCommandSelectedNavigationInTab is written identifying the tab and 62 // the selected index, then a kCommandPinnedState command if the tab was 63 // pinned and kCommandSetExtensionAppID if the tab has an app id. This is 67 // is written out and followed by n tab closed sequences (as previoulsy 97 // Payload used for the start of a tab close. This is the old struct that is 110 // Payload used for the start of a tab close. 115 // Only written if the tab is pinned. 143 std::vector<TabRestoreService::Tab>::iterator j = window->tabs.begin() 338 Tab* tab = static_cast<Tab*>(entry); local 351 const Tab& tab = window->tabs[tab_i]; local 362 RecordAppLaunch(profile(), tab); local 375 const Tab& tab = *tab_i; local 462 Tab* tab = static_cast<Tab*>(entry); local 926 RecordAppLaunch(profile(), tab); local 953 Tab* tab = static_cast<Tab*>(*i); local 990 Tab* tab = static_cast<Tab*>(entry); local 1025 Tab& tab = window->tabs.back(); local [all...] |
/packages/apps/Browser/tests/src/com/android/browser/ |
IntentHandlerTests.java | 42 Tab tabGoogle = controller.getCurrentTab(); 43 assertNotNull("Current tab (google.com", tabGoogle); 48 Tab tabMaps = controller.getCurrentTab(); 50 assertNotNull("Current tab (maps.google.com)", tabMaps); 62 Tab tabGoogle = controller.getCurrentTab(); 74 Tab currentTab = controller.getCurrentTab(); 89 Tab tabGoogle = controller.getCurrentTab(); 90 assertNotNull("Current tab (google.com", tabGoogle); 95 Tab tabMaps = controller.getCurrentTab(); 109 * bypassing Tab, Controller, etc. 154 Tab tab = getActivity().getController().getCurrentTab(); local [all...] |
/external/chromium/chrome/browser/ui/ |
browser_init.h | 79 struct Tab { 80 Tab(); 81 ~Tab(); 86 // If true, the tab corresponds to an app an |app_id| gives the id of the 90 // True if the is tab pinned. 120 // Creates a tab for each of the Tabs in |tabs|. If browser is non-null 127 const std::vector<Tab>& tabs); 139 // If the app is specified to start in a tab, or IsAppLaunch is false, 144 // should open in a tab, do so. 168 // Adds a Tab to |tabs| for each url in |urls| that doesn't already exis [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ActionBarTabs.java | 21 import android.app.ActionBar.Tab; 47 final String text = "Tab " + tabCount; 78 * to it, it will be committed at the end of the full tab switch operation. 79 * This lets tab switches be atomic without the app needing to track 94 public void onTabSelected(Tab tab, FragmentTransaction ft) { 98 public void onTabUnselected(Tab tab, FragmentTransaction ft) { 102 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...] |