OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 using content::BrowserChildProcessHostIterator; | 173 using content::BrowserChildProcessHostIterator; |
174 using content::BrowserContext; | 174 using content::BrowserContext; |
175 using content::BrowserThread; | 175 using content::BrowserThread; |
176 using content::ChildProcessHost; | 176 using content::ChildProcessHost; |
177 using content::DownloadItem; | 177 using content::DownloadItem; |
178 using content::DownloadManager; | 178 using content::DownloadManager; |
179 using content::InterstitialPage; | 179 using content::InterstitialPage; |
180 using content::NativeWebKeyboardEvent; | 180 using content::NativeWebKeyboardEvent; |
181 using content::NavigationController; | 181 using content::NavigationController; |
182 using content::NavigationEntry; | 182 using content::NavigationEntry; |
| 183 using content::OpenURLParams; |
183 using content::PluginService; | 184 using content::PluginService; |
184 using content::OpenURLParams; | |
185 using content::Referrer; | 185 using content::Referrer; |
186 using content::RenderViewHost; | 186 using content::RenderViewHost; |
187 using content::SSLStatus; | 187 using content::SSLStatus; |
188 using content::WebContents; | 188 using content::WebContents; |
189 using extensions::Extension; | 189 using extensions::Extension; |
190 using extensions::ExtensionActionManager; | 190 using extensions::ExtensionActionManager; |
191 using extensions::ExtensionList; | 191 using extensions::ExtensionList; |
192 | 192 |
193 namespace { | 193 namespace { |
194 | 194 |
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1793 | 1793 |
1794 handler_map_["AddPrivateNetwork"] = | 1794 handler_map_["AddPrivateNetwork"] = |
1795 &TestingAutomationProvider::AddPrivateNetwork; | 1795 &TestingAutomationProvider::AddPrivateNetwork; |
1796 handler_map_["GetPrivateNetworkInfo"] = | 1796 handler_map_["GetPrivateNetworkInfo"] = |
1797 &TestingAutomationProvider::GetPrivateNetworkInfo; | 1797 &TestingAutomationProvider::GetPrivateNetworkInfo; |
1798 handler_map_["ConnectToPrivateNetwork"] = | 1798 handler_map_["ConnectToPrivateNetwork"] = |
1799 &TestingAutomationProvider::ConnectToPrivateNetwork; | 1799 &TestingAutomationProvider::ConnectToPrivateNetwork; |
1800 handler_map_["DisconnectFromPrivateNetwork"] = | 1800 handler_map_["DisconnectFromPrivateNetwork"] = |
1801 &TestingAutomationProvider::DisconnectFromPrivateNetwork; | 1801 &TestingAutomationProvider::DisconnectFromPrivateNetwork; |
1802 | 1802 |
1803 handler_map_["IsEnterpriseDevice"] = | |
1804 &TestingAutomationProvider::IsEnterpriseDevice; | |
1805 handler_map_["GetEnterprisePolicyInfo"] = | |
1806 &TestingAutomationProvider::GetEnterprisePolicyInfo; | |
1807 handler_map_["EnrollEnterpriseDevice"] = | |
1808 &TestingAutomationProvider::EnrollEnterpriseDevice; | |
1809 | |
1810 handler_map_["EnableSpokenFeedback"] = | 1803 handler_map_["EnableSpokenFeedback"] = |
1811 &TestingAutomationProvider::EnableSpokenFeedback; | 1804 &TestingAutomationProvider::EnableSpokenFeedback; |
1812 handler_map_["IsSpokenFeedbackEnabled"] = | 1805 handler_map_["IsSpokenFeedbackEnabled"] = |
1813 &TestingAutomationProvider::IsSpokenFeedbackEnabled; | 1806 &TestingAutomationProvider::IsSpokenFeedbackEnabled; |
1814 | 1807 |
1815 handler_map_["GetTimeInfo"] = &TestingAutomationProvider::GetTimeInfo; | 1808 handler_map_["GetTimeInfo"] = &TestingAutomationProvider::GetTimeInfo; |
1816 handler_map_["SetTimezone"] = &TestingAutomationProvider::SetTimezone; | 1809 handler_map_["SetTimezone"] = &TestingAutomationProvider::SetTimezone; |
1817 | 1810 |
1818 handler_map_["GetUpdateInfo"] = &TestingAutomationProvider::GetUpdateInfo; | 1811 handler_map_["GetUpdateInfo"] = &TestingAutomationProvider::GetUpdateInfo; |
1819 handler_map_["UpdateCheck"] = &TestingAutomationProvider::UpdateCheck; | 1812 handler_map_["UpdateCheck"] = &TestingAutomationProvider::UpdateCheck; |
(...skipping 4387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6207 if (g_browser_process) | 6200 if (g_browser_process) |
6208 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6201 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
6209 } | 6202 } |
6210 | 6203 |
6211 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, | 6204 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, |
6212 WebContents* tab) { | 6205 WebContents* tab) { |
6213 TabStripModel* tab_strip = browser->tab_strip_model(); | 6206 TabStripModel* tab_strip = browser->tab_strip_model(); |
6214 if (tab_strip->GetActiveWebContents() != tab) | 6207 if (tab_strip->GetActiveWebContents() != tab) |
6215 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); | 6208 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(tab), true); |
6216 } | 6209 } |
OLD | NEW |