Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 10784009: screenshot disabling policy tests (Closed) Base URL: http://git.chromium.org/chromium/src.git@disable_screenshots
Patch Set: Updated accelerator_action.h Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_["RunAshCommand"] = &TestingAutomationProvider::RunAshCommand;
1881 #endif // defined(OS_CHROMEOS) 1881 #endif // defined(OS_CHROMEOS)
1882 1882
1883 browser_handler_map_["DisablePlugin"] = 1883 browser_handler_map_["DisablePlugin"] =
1884 &TestingAutomationProvider::DisablePlugin; 1884 &TestingAutomationProvider::DisablePlugin;
1885 browser_handler_map_["EnablePlugin"] = 1885 browser_handler_map_["EnablePlugin"] =
1886 &TestingAutomationProvider::EnablePlugin; 1886 &TestingAutomationProvider::EnablePlugin;
1887 browser_handler_map_["GetPluginsInfo"] = 1887 browser_handler_map_["GetPluginsInfo"] =
1888 &TestingAutomationProvider::GetPluginsInfo; 1888 &TestingAutomationProvider::GetPluginsInfo;
1889 1889
1890 browser_handler_map_["GetNavigationInfo"] = 1890 browser_handler_map_["GetNavigationInfo"] =
(...skipping 5068 matching lines...) Expand 10 before | Expand all | Expand 10 after
6959 void TestingAutomationProvider::OnRemoveProvider() { 6959 void TestingAutomationProvider::OnRemoveProvider() {
6960 if (g_browser_process) 6960 if (g_browser_process)
6961 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 6961 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
6962 } 6962 }
6963 6963
6964 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, 6964 void TestingAutomationProvider::EnsureTabSelected(Browser* browser,
6965 WebContents* tab) { 6965 WebContents* tab) {
6966 if (chrome::GetActiveWebContents(browser) != tab) 6966 if (chrome::GetActiveWebContents(browser) != tab)
6967 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); 6967 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true);
6968 } 6968 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698