| 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 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1870 handler_map_["GetUpdateInfo"] = &TestingAutomationProvider::GetUpdateInfo; | 1870 handler_map_["GetUpdateInfo"] = &TestingAutomationProvider::GetUpdateInfo; |
| 1871 handler_map_["UpdateCheck"] = &TestingAutomationProvider::UpdateCheck; | 1871 handler_map_["UpdateCheck"] = &TestingAutomationProvider::UpdateCheck; |
| 1872 handler_map_["SetReleaseTrack"] = | 1872 handler_map_["SetReleaseTrack"] = |
| 1873 &TestingAutomationProvider::SetReleaseTrack; | 1873 &TestingAutomationProvider::SetReleaseTrack; |
| 1874 | 1874 |
| 1875 handler_map_["GetVolumeInfo"] = &TestingAutomationProvider::GetVolumeInfo; | 1875 handler_map_["GetVolumeInfo"] = &TestingAutomationProvider::GetVolumeInfo; |
| 1876 handler_map_["SetVolume"] = &TestingAutomationProvider::SetVolume; | 1876 handler_map_["SetVolume"] = &TestingAutomationProvider::SetVolume; |
| 1877 handler_map_["SetMute"] = &TestingAutomationProvider::SetMute; | 1877 handler_map_["SetMute"] = &TestingAutomationProvider::SetMute; |
| 1878 | 1878 |
| 1879 handler_map_["OpenCrosh"] = &TestingAutomationProvider::OpenCrosh; | 1879 handler_map_["OpenCrosh"] = &TestingAutomationProvider::OpenCrosh; |
| 1880 handler_map_["SetCrosSetting"] = &TestingAutomationProvider::SetCrosSetting; |
| 1880 | 1881 |
| 1881 #endif // defined(OS_CHROMEOS) | 1882 #endif // defined(OS_CHROMEOS) |
| 1882 | 1883 |
| 1883 browser_handler_map_["DisablePlugin"] = | 1884 browser_handler_map_["DisablePlugin"] = |
| 1884 &TestingAutomationProvider::DisablePlugin; | 1885 &TestingAutomationProvider::DisablePlugin; |
| 1885 browser_handler_map_["EnablePlugin"] = | 1886 browser_handler_map_["EnablePlugin"] = |
| 1886 &TestingAutomationProvider::EnablePlugin; | 1887 &TestingAutomationProvider::EnablePlugin; |
| 1887 browser_handler_map_["GetPluginsInfo"] = | 1888 browser_handler_map_["GetPluginsInfo"] = |
| 1888 &TestingAutomationProvider::GetPluginsInfo; | 1889 &TestingAutomationProvider::GetPluginsInfo; |
| 1889 | 1890 |
| (...skipping 5069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6959 void TestingAutomationProvider::OnRemoveProvider() { | 6960 void TestingAutomationProvider::OnRemoveProvider() { |
| 6960 if (g_browser_process) | 6961 if (g_browser_process) |
| 6961 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6962 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
| 6962 } | 6963 } |
| 6963 | 6964 |
| 6964 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, | 6965 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, |
| 6965 WebContents* tab) { | 6966 WebContents* tab) { |
| 6966 if (chrome::GetActiveWebContents(browser) != tab) | 6967 if (chrome::GetActiveWebContents(browser) != tab) |
| 6967 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); | 6968 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); |
| 6968 } | 6969 } |
| OLD | NEW |