/external/chromium_org/tools/perf/benchmarks/ |
H A D | jsgamebench.py | 16 def MeasurePage(self, _, tab, results): 17 tab.ExecuteJavaScript('UI.call({}, "perftest")') 21 return bool(tab.EvaluateJavaScript(js_is_done)) 25 result = int(tab.EvaluateJavaScript(js_get_results))
|
H A D | robohornet_pro.py | 16 def MeasurePage(self, _, tab, results): 17 tab.ExecuteJavaScript('ToggleRoboHornet()') 21 return tab.EvaluateJavaScript(done) 24 result = int(tab.EvaluateJavaScript('stopTime - startTime'))
|
H A D | pica.py | 13 def MeasurePage(self, _, tab, results): 14 result = int(tab.EvaluateJavaScript('__pica_load_time'))
|
/external/chromium_org/tools/telemetry/telemetry/core/chrome/ |
H A D | inspector_memory_unittest.py | 14 # Due to an issue with CrOS, we create a new tab here rather than 16 tab = self._browser.tabs.New() 18 tab.Navigate( 20 tab.WaitForDocumentReadyStateToBeComplete() 22 counts = tab.dom_stats
|
H A D | facebook_credentials_backend.py | 9 def IsAlreadyLoggedIn(self, tab): 10 return tab.EvaluateJavaScript(
|
H A D | google_credentials_backend.py | 9 def IsAlreadyLoggedIn(self, tab): 10 return tab.EvaluateJavaScript(
|
/external/chromium_org/tools/telemetry/telemetry/page/actions/ |
H A D | page_action.py | 23 def WillRunAction(self, page, tab): 28 def RunAction(self, page, tab, previous_action): 39 def CleanUp(self, page, tab): 48 self, tab, start_js, stop_js): # pylint: disable=W0613 57 tab: The tab to do everything on.
|
H A D | wait.py | 19 def RunAction(self, page, tab, previous_action): 31 action_to_perform = lambda: previous_action.RunAction(page, tab, None) 32 tab.PerformActionAndWaitForNavigate(action_to_perform) 39 old_url = tab.EvaluateJavaScript('document.location.href') 40 previous_action.RunAction(page, tab, None) 41 util.WaitFor(lambda: tab.EvaluateJavaScript( 50 tab, self.text, callback_code), self.DEFAULT_TIMEOUT) 52 util.WaitFor(lambda: tab.EvaluateJavaScript( 58 util.WaitFor(lambda: tab.EvaluateJavaScript(self.javascript),
|
H A D | click_element.py | 13 def RunAction(self, page, tab, previous_action): 19 tab.ExecuteJavaScript(code) 26 util.FindElementAndPerformAction(tab, self.text, callback_code) 32 tab.PerformActionAndWaitForNavigate(DoClick) 34 old_url = tab.EvaluateJavaScript('document.location.href') 36 util.WaitFor(lambda: tab.EvaluateJavaScript( 41 page_module.Page.WaitForPageToLoad(self, tab, 60) 42 tab.WaitForDocumentReadyStateToBeInteractiveOrBetter()
|
H A D | js_collect_garbage.py | 10 def RunAction(self, page, tab, previous_action): 11 tab.CollectGarbage()
|
/external/chromium/chrome/browser/notifications/ |
H A D | notifications_interactive_uitest.cc | 27 scoped_refptr<TabProxy> tab(browser->GetActiveTab()); 28 ASSERT_TRUE(tab.get()); 30 tab->NavigateToURL(test_server.GetURL( 37 ASSERT_TRUE(tab->ExecuteAndExtractBool( 43 EXPECT_TRUE(tab->WaitForInfoBarCount(1)); 54 scoped_refptr<TabProxy> tab(browser->GetActiveTab()); 55 ASSERT_TRUE(tab.get()); 60 tab->NavigateToURL(test_server.GetURL( 65 ASSERT_TRUE(tab->GetInfoBarCount(&info_bar_count));
|
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/email_this_page/ |
H A D | background.js | 31 // Custom URL's (such as opening mailto in Gmail tab) should have a 32 // separate tab to avoid clobbering the page you are on. 38 // Plain vanilla mailto links open up in the same tab to prevent 46 var tab = port.sender.tab; 49 // the tab as a result of the user pressing the browser action. 54 executeMailto(tab.id, info.title, tab.url, info.selection); 59 chrome.browserAction.onClicked.addListener(function(tab) { 62 if (tab [all...] |
/external/chromium_org/tools/perf/measurements/ |
H A D | tab_switching.py | 5 """The tab switching measurement. 8 it cycles through each tab in sequence, and records a histogram of the time 9 between when a tab was first requested to be shown, and when it was painted. 27 def DidNavigateToPage(self, page, tab): 29 t = tab.browser.tabs.New() 34 def MeasurePage(self, _, tab, results): 36 to cycle through each tab that was opened via DidNavigateToPage and 37 thenrecord a single histogram for the tab switching metric. 42 histogram_type, histogram_name, tab) 45 for i in xrange(len(tab [all...] |
H A D | page_cycler.py | 61 def DidStartHTTPServer(self, tab): 64 tab.Navigate(tab.browser.http_server.UrlOf('nonexistent.html')) 66 def WillNavigateToPage(self, page, tab): 69 def DidNavigateToPage(self, page, tab): 71 h.Start(page, tab) 86 def MeasureIO(self, tab, results): 87 io_stats = tab.browser.io_stats 116 def MeasurePage(self, page, tab, results): 118 return bool(tab [all...] |
H A D | memory.py | 37 def DidNavigateToPage(self, page, tab): 39 h.Start(page, tab) 61 def MeasurePage(self, page, tab, results): 63 h.GetValue(page, tab, results) 65 if tab.browser.is_profiler_active('tcmalloc-heap'): 70 tab.ExecuteJavaScript(""" 77 def DidRunTest(self, tab, results): 79 self._memory_metric.AddResults(tab, results)
|
/external/chromium_org/tools/telemetry/telemetry/core/ |
H A D | browser_credentials_unittest.py | 25 def LoginNeeded(self, config, tab): 26 self.login_needed_called = (config, tab) 29 def LoginNoLongerNeeded(self, tab): 30 self.login_no_longer_needed_called = (tab, ) 57 tab = {} 58 ret = browser_cred.LoginNeeded(tab, 'google') 61 self.assertEqual(tab, google_backend.login_needed_called[0]) 67 browser_cred.LoginNoLongerNeeded(tab, 'google') 69 self.assertEqual(tab, google_backend.login_no_longer_needed_called[0])
|
/external/chromium/chrome/browser/resources/net_internals/ |
H A D | tabswitcherview.css | 6 .tab-switcher-view { 10 .tab-switcher-view ul { 16 .tab-switcher-view { 22 .tab-switcher-view li { 27 html[dir=rtl] .tab-switcher-view li { 31 .tab-switcher-view a { 43 .tab-switcher-view a:hover { 48 .tab-switcher-view a:visited, 49 .tab-switcher-view a { 53 .tab [all...] |
H A D | tabswitcherview.js | 6 * TabSwitcher is an implementation of View that handles tab switching. 9 * | Tab1 / Tab2 / Tab3 / .. | <- tab handle view 14 * | stacked tab content areas | 21 * @parameter {!View} tabHandleView the view that contains the tab handles. 26 document.getElementById(tabHandleDivId).classList.add('tab-switcher-view'); 47 var tab = this.tabs_[i]; 48 tab.contentView.setGeometry(left, contentTop, width, contentHeight); 63 * Adds a new tab (initially hidden). 66 * this tab. This is also the ID we use to identify the 67 * "tab" [all...] |
/external/chromium_org/chrome/test/perf/ |
H A D | indexeddb_uitest.cc | 38 scoped_refptr<TabProxy> tab(GetActiveTab()); 39 ASSERT_TRUE(tab.get()); 40 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(test_url)); 43 ASSERT_TRUE(WaitUntilTestCompletes(tab.get(), test_url)); 45 PrintResults(tab.get()); 59 bool WaitUntilTestCompletes(TabProxy* tab, const GURL& test_url) { argument 60 return WaitUntilCookieValue(tab, test_url, "__done", 64 bool GetResults(TabProxy* tab, ResultsMap* results) { argument 66 bool succeeded = tab->ExecuteAndExtractString( 80 void PrintResults(TabProxy* tab) { argument [all...] |
/external/chromium/chrome/browser/ui/webui/ |
H A D | print_preview_ui_uitest.cc | 26 void AssertIsPrintPage(TabProxy* tab) { argument 28 ASSERT_TRUE(tab->GetTabTitle(&title)); 41 scoped_refptr<TabProxy> tab = browser->GetActiveTab(); local 42 ASSERT_TRUE(tab.get()); 44 // Go to the print preview tab via URL. 46 AssertIsPrintPage(tab); 56 // Make sure there is 1 tab and print is enabled. Create print preview tab. 68 scoped_refptr<TabProxy> tab = browser->GetActiveTab(); local 69 ASSERT_TRUE(tab [all...] |
/external/chromium_org/chrome/browser/extensions/api/declarative_content/ |
H A D | declarative_content_apitest.cc | 40 content::WebContents* const tab = member in class:extensions::__anon4803::content 42 const int tab_id = ExtensionTabUtil::GetTabId(tab); 44 NavigateInRenderer(tab, GURL("http://test1/")); 51 NavigateInRenderer(tab, GURL("http://not_checked/")); 56 tab, "document.body.innerHTML = '<input type=\"password\">';")); 59 ASSERT_TRUE(content::ExecuteScript(tab, std::string())); 64 tab, "document.body.innerHTML = 'Hello world';")); 67 ASSERT_TRUE(content::ExecuteScript(tab, std::string()));
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/pageAction/set_icon/ |
H A D | background.js | 19 chrome.pageAction.onClicked.addListener(function(tab) { 20 var clicks = tab_clicks[tab.id] || 0; 22 tabId: tab.id}); 24 chrome.pageAction.show(tab.id); 26 chrome.pageAction.hide(tab.id); 27 setTimeout(function() { chrome.pageAction.show(tab.id); }, 200); 29 chrome.pageAction.setTitle({title: "click:" + clicks, tabId: tab.id}); 36 tab_clicks[tab.id] = clicks; 46 // Don't do anything if we don't have a tab yet.
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/tabs/inspector/ |
H A D | background.js | 5 chrome.browserAction.onClicked.addListener(function(tab) {
|
/external/chromium/chrome/browser/ssl/ |
H A D | ssl_browser_tests.cc | 36 void CheckAuthenticatedState(TabContents* tab, argument 38 NavigationEntry* entry = tab->controller().GetActiveEntry(); 48 void CheckUnauthenticatedState(TabContents* tab) { argument 49 NavigationEntry* entry = tab->controller().GetActiveEntry(); 58 void CheckAuthenticationBrokenState(TabContents* tab, argument 62 NavigationEntry* entry = tab->controller().GetActiveEntry(); 76 void CheckWorkerLoadResult(TabContents* tab, bool expectLoaded) { argument 87 tab->render_view_host(), std::wstring(), 102 tab->render_view_host(), std::wstring(), 108 void ProceedThroughInterstitial(TabContents* tab) { argument 247 TabContents* tab = browser()->GetSelectedTabContents(); local 277 TabContents* tab = browser()->GetSelectedTabContents(); local 320 TabContents* tab = browser()->GetSelectedTabContents(); local 347 TabContents* tab = browser()->GetSelectedTabContents(); local 374 TabContents* tab = browser()->GetSelectedTabContents(); local 478 TabContents* tab = browser()->GetSelectedTabContents(); local 520 TabContents* tab = browser()->GetSelectedTabContents(); local 625 TabContents* tab = browser()->GetSelectedTabContents(); local 651 TabContents* tab = browser()->GetSelectedTabContents(); local 674 TabContents* tab = browser()->GetSelectedTabContents(); local 704 TabContents* tab = browser()->GetSelectedTabContents(); local 774 TabContents* tab = browser()->GetSelectedTabContents(); local 795 TabContents* tab = browser()->GetSelectedTabContents(); local 811 TabContents* tab = browser()->GetSelectedTabContents(); local 828 TabContents* tab = browser()->GetSelectedTabContents(); local 891 TabContents* tab = browser()->GetSelectedTabContents(); local 965 TabContents* tab = browser()->GetSelectedTabContents(); local 1009 TabContents* tab = browser()->GetSelectedTabContents(); local 1060 TabContents* tab = browser()->GetSelectedTabContents(); local 1076 TabContents* tab = browser()->GetSelectedTabContents(); local [all...] |
/external/chromium/chrome/browser/sidebar/ |
H A D | sidebar_browsertest.cc | 71 TabContents* tab = browser()->GetSelectedTabContents(); local 75 sidebar_manager->NavigateSidebar(tab, content_id_, url); 78 sidebar_manager->GetSidebarContainerFor(tab, content_id_); 84 void ShowSidebar(TabContents* tab) { argument 86 sidebar_manager->ShowSidebar(tab, content_id_); 89 void ExpandSidebar(TabContents* tab) { argument 91 sidebar_manager->ExpandSidebar(tab, content_id_); 92 if (browser()->GetSelectedTabContents() == tab) 96 void CollapseSidebar(TabContents* tab) { argument 98 sidebar_manager->CollapseSidebar(tab, content_id 103 HideSidebar(TabContents* tab) argument [all...] |