Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Side by Side Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_util.cc ('k') | chrome/browser/automation/ui_controls_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698