OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 using content::BrowserChildProcessHostIterator; | 171 using content::BrowserChildProcessHostIterator; |
172 using content::BrowserContext; | 172 using content::BrowserContext; |
173 using content::BrowserThread; | 173 using content::BrowserThread; |
174 using content::ChildProcessHost; | 174 using content::ChildProcessHost; |
175 using content::DownloadItem; | 175 using content::DownloadItem; |
176 using content::DownloadManager; | 176 using content::DownloadManager; |
177 using content::InterstitialPage; | 177 using content::InterstitialPage; |
178 using content::NativeWebKeyboardEvent; | 178 using content::NativeWebKeyboardEvent; |
179 using content::NavigationController; | 179 using content::NavigationController; |
180 using content::NavigationEntry; | 180 using content::NavigationEntry; |
| 181 using content::OpenURLParams; |
181 using content::PluginService; | 182 using content::PluginService; |
182 using content::OpenURLParams; | |
183 using content::Referrer; | 183 using content::Referrer; |
184 using content::RenderViewHost; | 184 using content::RenderViewHost; |
185 using content::SSLStatus; | 185 using content::SSLStatus; |
186 using content::WebContents; | 186 using content::WebContents; |
187 using extensions::Extension; | 187 using extensions::Extension; |
188 using extensions::ExtensionActionManager; | 188 using extensions::ExtensionActionManager; |
189 using extensions::ExtensionList; | 189 using extensions::ExtensionList; |
190 | 190 |
191 namespace { | 191 namespace { |
192 | 192 |
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1791 | 1791 |
1792 handler_map_["AddPrivateNetwork"] = | 1792 handler_map_["AddPrivateNetwork"] = |
1793 &TestingAutomationProvider::AddPrivateNetwork; | 1793 &TestingAutomationProvider::AddPrivateNetwork; |
1794 handler_map_["GetPrivateNetworkInfo"] = | 1794 handler_map_["GetPrivateNetworkInfo"] = |
1795 &TestingAutomationProvider::GetPrivateNetworkInfo; | 1795 &TestingAutomationProvider::GetPrivateNetworkInfo; |
1796 handler_map_["ConnectToPrivateNetwork"] = | 1796 handler_map_["ConnectToPrivateNetwork"] = |
1797 &TestingAutomationProvider::ConnectToPrivateNetwork; | 1797 &TestingAutomationProvider::ConnectToPrivateNetwork; |
1798 handler_map_["DisconnectFromPrivateNetwork"] = | 1798 handler_map_["DisconnectFromPrivateNetwork"] = |
1799 &TestingAutomationProvider::DisconnectFromPrivateNetwork; | 1799 &TestingAutomationProvider::DisconnectFromPrivateNetwork; |
1800 | 1800 |
1801 handler_map_["IsEnterpriseDevice"] = | |
1802 &TestingAutomationProvider::IsEnterpriseDevice; | |
1803 handler_map_["GetEnterprisePolicyInfo"] = | |
1804 &TestingAutomationProvider::GetEnterprisePolicyInfo; | |
1805 handler_map_["EnrollEnterpriseDevice"] = | |
1806 &TestingAutomationProvider::EnrollEnterpriseDevice; | |
1807 | |
1808 handler_map_["EnableSpokenFeedback"] = | 1801 handler_map_["EnableSpokenFeedback"] = |
1809 &TestingAutomationProvider::EnableSpokenFeedback; | 1802 &TestingAutomationProvider::EnableSpokenFeedback; |
1810 handler_map_["IsSpokenFeedbackEnabled"] = | 1803 handler_map_["IsSpokenFeedbackEnabled"] = |
1811 &TestingAutomationProvider::IsSpokenFeedbackEnabled; | 1804 &TestingAutomationProvider::IsSpokenFeedbackEnabled; |
1812 | 1805 |
1813 handler_map_["GetTimeInfo"] = &TestingAutomationProvider::GetTimeInfo; | 1806 handler_map_["GetTimeInfo"] = &TestingAutomationProvider::GetTimeInfo; |
1814 handler_map_["SetTimezone"] = &TestingAutomationProvider::SetTimezone; | 1807 handler_map_["SetTimezone"] = &TestingAutomationProvider::SetTimezone; |
1815 | 1808 |
1816 handler_map_["GetUpdateInfo"] = &TestingAutomationProvider::GetUpdateInfo; | 1809 handler_map_["GetUpdateInfo"] = &TestingAutomationProvider::GetUpdateInfo; |
1817 handler_map_["UpdateCheck"] = &TestingAutomationProvider::UpdateCheck; | 1810 handler_map_["UpdateCheck"] = &TestingAutomationProvider::UpdateCheck; |
(...skipping 4143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5961 if (g_browser_process) | 5954 if (g_browser_process) |
5962 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 5955 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
5963 } | 5956 } |
5964 | 5957 |
5965 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, | 5958 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, |
5966 WebContents* tab) { | 5959 WebContents* tab) { |
5967 TabStripModel* tab_strip = browser->tab_strip_model(); | 5960 TabStripModel* tab_strip = browser->tab_strip_model(); |
5968 if (tab_strip->GetActiveWebContents() != tab) | 5961 if (tab_strip->GetActiveWebContents() != tab) |
5969 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); | 5962 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); |
5970 } | 5963 } |
OLD | NEW |