| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 #include "chrome/common/extensions/extension.h" | 110 #include "chrome/common/extensions/extension.h" |
| 111 #include "chrome/common/extensions/extension_action.h" | 111 #include "chrome/common/extensions/extension_action.h" |
| 112 #include "chrome/common/extensions/url_pattern.h" | 112 #include "chrome/common/extensions/url_pattern.h" |
| 113 #include "chrome/common/extensions/url_pattern_set.h" | 113 #include "chrome/common/extensions/url_pattern_set.h" |
| 114 #include "chrome/common/pref_names.h" | 114 #include "chrome/common/pref_names.h" |
| 115 #include "chrome/common/render_messages.h" | 115 #include "chrome/common/render_messages.h" |
| 116 #include "chrome/common/url_constants.h" | 116 #include "chrome/common/url_constants.h" |
| 117 #include "content/browser/plugin_service.h" | 117 #include "content/browser/plugin_service.h" |
| 118 #include "content/browser/renderer_host/render_view_host.h" | 118 #include "content/browser/renderer_host/render_view_host.h" |
| 119 #include "content/browser/tab_contents/interstitial_page.h" | 119 #include "content/browser/tab_contents/interstitial_page.h" |
| 120 #include "content/common/child_process_host.h" | |
| 121 #include "content/public/browser/notification_service.h" | 120 #include "content/public/browser/notification_service.h" |
| 122 #include "content/public/browser/render_process_host.h" | 121 #include "content/public/browser/render_process_host.h" |
| 122 #include "content/public/common/child_process_host.h" |
| 123 #include "content/public/common/common_param_traits.h" | 123 #include "content/public/common/common_param_traits.h" |
| 124 #include "net/base/cookie_store.h" | 124 #include "net/base/cookie_store.h" |
| 125 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 125 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 126 #include "ui/base/events.h" | 126 #include "ui/base/events.h" |
| 127 #include "ui/base/keycodes/keyboard_codes.h" | 127 #include "ui/base/keycodes/keyboard_codes.h" |
| 128 #include "ui/base/ui_base_types.h" | 128 #include "ui/base/ui_base_types.h" |
| 129 #include "webkit/glue/webdropdata.h" | 129 #include "webkit/glue/webdropdata.h" |
| 130 #include "webkit/plugins/webplugininfo.h" | 130 #include "webkit/plugins/webplugininfo.h" |
| 131 | 131 |
| 132 #if defined(ENABLE_CONFIGURATION_POLICY) | 132 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 133 #include "chrome/browser/policy/browser_policy_connector.h" | 133 #include "chrome/browser/policy/browser_policy_connector.h" |
| 134 #include "chrome/browser/policy/configuration_policy_provider.h" | 134 #include "chrome/browser/policy/configuration_policy_provider.h" |
| 135 #include "chrome/browser/policy/policy_map.h" | 135 #include "chrome/browser/policy/policy_map.h" |
| 136 #include "policy/policy_constants.h" | 136 #include "policy/policy_constants.h" |
| 137 #endif | 137 #endif |
| 138 | 138 |
| 139 #if defined(OS_CHROMEOS) | 139 #if defined(OS_CHROMEOS) |
| 140 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | 140 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" |
| 141 #include "chrome/browser/ui/webui/active_downloads_ui.h" | 141 #include "chrome/browser/ui/webui/active_downloads_ui.h" |
| 142 #else | 142 #else |
| 143 #include "chrome/browser/download/download_shelf.h" | 143 #include "chrome/browser/download/download_shelf.h" |
| 144 #endif | 144 #endif |
| 145 | 145 |
| 146 using automation_util::SendErrorIfModalDialogActive; | 146 using automation_util::SendErrorIfModalDialogActive; |
| 147 using content::BrowserThread; | 147 using content::BrowserThread; |
| 148 using content::ChildProcessHost; |
| 148 | 149 |
| 149 namespace { | 150 namespace { |
| 150 | 151 |
| 151 void SendMouseClick(int flags) { | 152 void SendMouseClick(int flags) { |
| 152 ui_controls::MouseButton button = ui_controls::LEFT; | 153 ui_controls::MouseButton button = ui_controls::LEFT; |
| 153 if ((flags & ui::EF_LEFT_BUTTON_DOWN) == | 154 if ((flags & ui::EF_LEFT_BUTTON_DOWN) == |
| 154 ui::EF_LEFT_BUTTON_DOWN) { | 155 ui::EF_LEFT_BUTTON_DOWN) { |
| 155 button = ui_controls::LEFT; | 156 button = ui_controls::LEFT; |
| 156 } else if ((flags & ui::EF_RIGHT_BUTTON_DOWN) == | 157 } else if ((flags & ui::EF_RIGHT_BUTTON_DOWN) == |
| 157 ui::EF_RIGHT_BUTTON_DOWN) { | 158 ui::EF_RIGHT_BUTTON_DOWN) { |
| (...skipping 6402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6560 | 6561 |
| 6561 Send(reply_message_); | 6562 Send(reply_message_); |
| 6562 redirect_query_ = 0; | 6563 redirect_query_ = 0; |
| 6563 reply_message_ = NULL; | 6564 reply_message_ = NULL; |
| 6564 } | 6565 } |
| 6565 | 6566 |
| 6566 void TestingAutomationProvider::OnRemoveProvider() { | 6567 void TestingAutomationProvider::OnRemoveProvider() { |
| 6567 if (g_browser_process) | 6568 if (g_browser_process) |
| 6568 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6569 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
| 6569 } | 6570 } |
| OLD | NEW |