| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 #include "content/public/browser/render_process_host.h" | 142 #include "content/public/browser/render_process_host.h" |
| 143 #include "content/public/browser/render_view_host.h" | 143 #include "content/public/browser/render_view_host.h" |
| 144 #include "content/public/browser/render_widget_host_view.h" | 144 #include "content/public/browser/render_widget_host_view.h" |
| 145 #include "content/public/browser/web_contents.h" | 145 #include "content/public/browser/web_contents.h" |
| 146 #include "content/public/common/child_process_host.h" | 146 #include "content/public/common/child_process_host.h" |
| 147 #include "content/public/common/common_param_traits.h" | 147 #include "content/public/common/common_param_traits.h" |
| 148 #include "content/public/common/geoposition.h" | 148 #include "content/public/common/geoposition.h" |
| 149 #include "content/public/common/ssl_status.h" | 149 #include "content/public/common/ssl_status.h" |
| 150 #include "net/cookies/cookie_store.h" | 150 #include "net/cookies/cookie_store.h" |
| 151 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 151 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 152 #include "ui/base/events.h" | 152 #include "ui/base/events/event_constants.h" |
| 153 #include "ui/base/keycodes/keyboard_codes.h" | 153 #include "ui/base/keycodes/keyboard_codes.h" |
| 154 #include "ui/base/ui_base_types.h" | 154 #include "ui/base/ui_base_types.h" |
| 155 #include "ui/ui_controls/ui_controls.h" | 155 #include "ui/ui_controls/ui_controls.h" |
| 156 #include "webkit/glue/webdropdata.h" | 156 #include "webkit/glue/webdropdata.h" |
| 157 #include "webkit/plugins/webplugininfo.h" | 157 #include "webkit/plugins/webplugininfo.h" |
| 158 | 158 |
| 159 #if defined(ENABLE_CONFIGURATION_POLICY) | 159 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 160 #include "chrome/browser/policy/policy_service.h" | 160 #include "chrome/browser/policy/policy_service.h" |
| 161 #include "policy/policy_constants.h" | 161 #include "policy/policy_constants.h" |
| 162 #endif | 162 #endif |
| (...skipping 6273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6436 void TestingAutomationProvider::OnRemoveProvider() { | 6436 void TestingAutomationProvider::OnRemoveProvider() { |
| 6437 if (g_browser_process) | 6437 if (g_browser_process) |
| 6438 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6438 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
| 6439 } | 6439 } |
| 6440 | 6440 |
| 6441 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, | 6441 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, |
| 6442 WebContents* tab) { | 6442 WebContents* tab) { |
| 6443 if (chrome::GetActiveWebContents(browser) != tab) | 6443 if (chrome::GetActiveWebContents(browser) != tab) |
| 6444 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); | 6444 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); |
| 6445 } | 6445 } |
| OLD | NEW |