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 | 1880 handler_map_["ApplyAshAccelerator"] = |
| 1881 &TestingAutomationProvider::ApplyAshAccelerator; |
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 |
1890 browser_handler_map_["GetNavigationInfo"] = | 1891 browser_handler_map_["GetNavigationInfo"] = |
(...skipping 4879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6770 void TestingAutomationProvider::OnRemoveProvider() { | 6771 void TestingAutomationProvider::OnRemoveProvider() { |
6771 if (g_browser_process) | 6772 if (g_browser_process) |
6772 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6773 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
6773 } | 6774 } |
6774 | 6775 |
6775 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, | 6776 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, |
6776 WebContents* tab) { | 6777 WebContents* tab) { |
6777 if (chrome::GetActiveWebContents(browser) != tab) | 6778 if (chrome::GetActiveWebContents(browser) != tab) |
6778 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); | 6779 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); |
6779 } | 6780 } |
OLD | NEW |