| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/automation/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1803 handler_map_["PickUserImage"] = &TestingAutomationProvider::PickUserImage; | 1803 handler_map_["PickUserImage"] = &TestingAutomationProvider::PickUserImage; |
| 1804 handler_map_["SkipToLogin"] = &TestingAutomationProvider::SkipToLogin; | 1804 handler_map_["SkipToLogin"] = &TestingAutomationProvider::SkipToLogin; |
| 1805 handler_map_["GetOOBEScreenInfo"] = | 1805 handler_map_["GetOOBEScreenInfo"] = |
| 1806 &TestingAutomationProvider::GetOOBEScreenInfo; | 1806 &TestingAutomationProvider::GetOOBEScreenInfo; |
| 1807 | 1807 |
| 1808 handler_map_["GetLoginInfo"] = &TestingAutomationProvider::GetLoginInfo; | 1808 handler_map_["GetLoginInfo"] = &TestingAutomationProvider::GetLoginInfo; |
| 1809 handler_map_["ShowCreateAccountUI"] = | 1809 handler_map_["ShowCreateAccountUI"] = |
| 1810 &TestingAutomationProvider::ShowCreateAccountUI; | 1810 &TestingAutomationProvider::ShowCreateAccountUI; |
| 1811 handler_map_["ExecuteJavascriptInOOBEWebUI"] = | 1811 handler_map_["ExecuteJavascriptInOOBEWebUI"] = |
| 1812 &TestingAutomationProvider::ExecuteJavascriptInOOBEWebUI; | 1812 &TestingAutomationProvider::ExecuteJavascriptInOOBEWebUI; |
| 1813 handler_map_["LoginWithCachedCredentials"] = |
| 1814 &TestingAutomationProvider::LoginWithCachedCredentials; |
| 1813 handler_map_["LoginAsGuest"] = &TestingAutomationProvider::LoginAsGuest; | 1815 handler_map_["LoginAsGuest"] = &TestingAutomationProvider::LoginAsGuest; |
| 1814 handler_map_["SubmitLoginForm"] = | 1816 handler_map_["SubmitLoginForm"] = |
| 1815 &TestingAutomationProvider::SubmitLoginForm; | 1817 &TestingAutomationProvider::SubmitLoginForm; |
| 1816 handler_map_["AddLoginEventObserver"] = | 1818 handler_map_["AddLoginEventObserver"] = |
| 1817 &TestingAutomationProvider::AddLoginEventObserver; | 1819 &TestingAutomationProvider::AddLoginEventObserver; |
| 1818 handler_map_["SignOut"] = &TestingAutomationProvider::SignOut; | 1820 handler_map_["SignOut"] = &TestingAutomationProvider::SignOut; |
| 1819 | 1821 |
| 1820 handler_map_["LockScreen"] = &TestingAutomationProvider::LockScreen; | 1822 handler_map_["LockScreen"] = &TestingAutomationProvider::LockScreen; |
| 1821 handler_map_["UnlockScreen"] = &TestingAutomationProvider::UnlockScreen; | 1823 handler_map_["UnlockScreen"] = &TestingAutomationProvider::UnlockScreen; |
| 1822 handler_map_["SignoutInScreenLocker"] = | 1824 handler_map_["SignoutInScreenLocker"] = |
| (...skipping 4603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6426 void TestingAutomationProvider::OnRemoveProvider() { | 6428 void TestingAutomationProvider::OnRemoveProvider() { |
| 6427 if (g_browser_process) | 6429 if (g_browser_process) |
| 6428 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6430 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
| 6429 } | 6431 } |
| 6430 | 6432 |
| 6431 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, | 6433 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, |
| 6432 WebContents* tab) { | 6434 WebContents* tab) { |
| 6433 if (chrome::GetActiveWebContents(browser) != tab) | 6435 if (chrome::GetActiveWebContents(browser) != tab) |
| 6434 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); | 6436 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); |
| 6435 } | 6437 } |
| OLD | NEW |