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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 #endif | 133 #endif |
134 | 134 |
135 #if defined(OS_CHROMEOS) | 135 #if defined(OS_CHROMEOS) |
136 #include "chrome/browser/chromeos/cros/cros_library.h" | 136 #include "chrome/browser/chromeos/cros/cros_library.h" |
137 #include "chrome/browser/ui/webui/active_downloads_ui.h" | 137 #include "chrome/browser/ui/webui/active_downloads_ui.h" |
138 #else | 138 #else |
139 #include "chrome/browser/download/download_shelf.h" | 139 #include "chrome/browser/download/download_shelf.h" |
140 #endif | 140 #endif |
141 | 141 |
142 using automation_util::SendErrorIfModalDialogActive; | 142 using automation_util::SendErrorIfModalDialogActive; |
| 143 using content::BrowserThread; |
143 | 144 |
144 namespace { | 145 namespace { |
145 | 146 |
146 void SendMouseClick(int flags) { | 147 void SendMouseClick(int flags) { |
147 ui_controls::MouseButton button = ui_controls::LEFT; | 148 ui_controls::MouseButton button = ui_controls::LEFT; |
148 if ((flags & ui::EF_LEFT_BUTTON_DOWN) == | 149 if ((flags & ui::EF_LEFT_BUTTON_DOWN) == |
149 ui::EF_LEFT_BUTTON_DOWN) { | 150 ui::EF_LEFT_BUTTON_DOWN) { |
150 button = ui_controls::LEFT; | 151 button = ui_controls::LEFT; |
151 } else if ((flags & ui::EF_RIGHT_BUTTON_DOWN) == | 152 } else if ((flags & ui::EF_RIGHT_BUTTON_DOWN) == |
152 ui::EF_RIGHT_BUTTON_DOWN) { | 153 ui::EF_RIGHT_BUTTON_DOWN) { |
(...skipping 6375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6528 | 6529 |
6529 Send(reply_message_); | 6530 Send(reply_message_); |
6530 redirect_query_ = 0; | 6531 redirect_query_ = 0; |
6531 reply_message_ = NULL; | 6532 reply_message_ = NULL; |
6532 } | 6533 } |
6533 | 6534 |
6534 void TestingAutomationProvider::OnRemoveProvider() { | 6535 void TestingAutomationProvider::OnRemoveProvider() { |
6535 if (g_browser_process) | 6536 if (g_browser_process) |
6536 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 6537 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
6537 } | 6538 } |
OLD | NEW |