| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 using content::BrowserThread; | 165 using content::BrowserThread; |
| 166 using content::ChildProcessHost; | 166 using content::ChildProcessHost; |
| 167 using content::DownloadItem; | 167 using content::DownloadItem; |
| 168 using content::DownloadManager; | 168 using content::DownloadManager; |
| 169 using content::InterstitialPage; | 169 using content::InterstitialPage; |
| 170 using content::NavigationController; | 170 using content::NavigationController; |
| 171 using content::NavigationEntry; | 171 using content::NavigationEntry; |
| 172 using content::PluginService; | 172 using content::PluginService; |
| 173 using content::OpenURLParams; | 173 using content::OpenURLParams; |
| 174 using content::Referrer; | 174 using content::Referrer; |
| 175 using content::RenderViewHost; |
| 175 using content::SSLStatus; | 176 using content::SSLStatus; |
| 176 using content::WebContents; | 177 using content::WebContents; |
| 177 | 178 |
| 178 namespace { | 179 namespace { |
| 179 | 180 |
| 180 void SendMouseClick(int flags) { | 181 void SendMouseClick(int flags) { |
| 181 ui_controls::MouseButton button = ui_controls::LEFT; | 182 ui_controls::MouseButton button = ui_controls::LEFT; |
| 182 if ((flags & ui::EF_LEFT_MOUSE_BUTTON) == | 183 if ((flags & ui::EF_LEFT_MOUSE_BUTTON) == |
| 183 ui::EF_LEFT_MOUSE_BUTTON) { | 184 ui::EF_LEFT_MOUSE_BUTTON) { |
| 184 button = ui_controls::LEFT; | 185 button = ui_controls::LEFT; |
| (...skipping 6870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7055 | 7056 |
| 7056 Send(reply_message_); | 7057 Send(reply_message_); |
| 7057 redirect_query_ = 0; | 7058 redirect_query_ = 0; |
| 7058 reply_message_ = NULL; | 7059 reply_message_ = NULL; |
| 7059 } | 7060 } |
| 7060 | 7061 |
| 7061 void TestingAutomationProvider::OnRemoveProvider() { | 7062 void TestingAutomationProvider::OnRemoveProvider() { |
| 7062 if (g_browser_process) | 7063 if (g_browser_process) |
| 7063 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 7064 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
| 7064 } | 7065 } |
| OLD | NEW |