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

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

Issue 9006036: Create an API around PluginService and use it from Chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 #include "chrome/common/chrome_paths.h" 108 #include "chrome/common/chrome_paths.h"
109 #include "chrome/common/chrome_switches.h" 109 #include "chrome/common/chrome_switches.h"
110 #include "chrome/common/chrome_view_type.h" 110 #include "chrome/common/chrome_view_type.h"
111 #include "chrome/common/extensions/extension.h" 111 #include "chrome/common/extensions/extension.h"
112 #include "chrome/common/extensions/extension_action.h" 112 #include "chrome/common/extensions/extension_action.h"
113 #include "chrome/common/extensions/url_pattern.h" 113 #include "chrome/common/extensions/url_pattern.h"
114 #include "chrome/common/extensions/url_pattern_set.h" 114 #include "chrome/common/extensions/url_pattern_set.h"
115 #include "chrome/common/pref_names.h" 115 #include "chrome/common/pref_names.h"
116 #include "chrome/common/render_messages.h" 116 #include "chrome/common/render_messages.h"
117 #include "chrome/common/url_constants.h" 117 #include "chrome/common/url_constants.h"
118 #include "content/browser/plugin_service.h"
119 #include "content/browser/renderer_host/render_view_host.h" 118 #include "content/browser/renderer_host/render_view_host.h"
120 #include "content/browser/tab_contents/interstitial_page.h" 119 #include "content/browser/tab_contents/interstitial_page.h"
121 #include "content/browser/tab_contents/tab_contents.h" 120 #include "content/browser/tab_contents/tab_contents.h"
122 #include "content/public/browser/notification_service.h" 121 #include "content/public/browser/notification_service.h"
122 #include "content/public/browser/plugin_service.h"
123 #include "content/public/browser/render_process_host.h" 123 #include "content/public/browser/render_process_host.h"
124 #include "content/public/common/child_process_host.h" 124 #include "content/public/common/child_process_host.h"
125 #include "content/public/common/common_param_traits.h" 125 #include "content/public/common/common_param_traits.h"
126 #include "net/base/cookie_store.h" 126 #include "net/base/cookie_store.h"
127 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 127 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
128 #include "ui/base/events.h" 128 #include "ui/base/events.h"
129 #include "ui/base/keycodes/keyboard_codes.h" 129 #include "ui/base/keycodes/keyboard_codes.h"
130 #include "ui/base/ui_base_types.h" 130 #include "ui/base/ui_base_types.h"
131 #include "webkit/glue/webdropdata.h" 131 #include "webkit/glue/webdropdata.h"
132 #include "webkit/plugins/webplugininfo.h" 132 #include "webkit/plugins/webplugininfo.h"
(...skipping 12 matching lines...) Expand all
145 #include "chrome/browser/download/download_shelf.h" 145 #include "chrome/browser/download/download_shelf.h"
146 #endif 146 #endif
147 147
148 using automation::Error; 148 using automation::Error;
149 using automation::ErrorCode; 149 using automation::ErrorCode;
150 using automation_util::SendErrorIfModalDialogActive; 150 using automation_util::SendErrorIfModalDialogActive;
151 using content::BrowserThread; 151 using content::BrowserThread;
152 using content::ChildProcessHost; 152 using content::ChildProcessHost;
153 using content::DownloadItem; 153 using content::DownloadItem;
154 using content::DownloadManager; 154 using content::DownloadManager;
155 using content::PluginService;
155 156
156 namespace { 157 namespace {
157 158
158 void SendMouseClick(int flags) { 159 void SendMouseClick(int flags) {
159 ui_controls::MouseButton button = ui_controls::LEFT; 160 ui_controls::MouseButton button = ui_controls::LEFT;
160 if ((flags & ui::EF_LEFT_BUTTON_DOWN) == 161 if ((flags & ui::EF_LEFT_BUTTON_DOWN) ==
161 ui::EF_LEFT_BUTTON_DOWN) { 162 ui::EF_LEFT_BUTTON_DOWN) {
162 button = ui_controls::LEFT; 163 button = ui_controls::LEFT;
163 } else if ((flags & ui::EF_RIGHT_BUTTON_DOWN) == 164 } else if ((flags & ui::EF_RIGHT_BUTTON_DOWN) ==
164 ui::EF_RIGHT_BUTTON_DOWN) { 165 ui::EF_RIGHT_BUTTON_DOWN) {
(...skipping 6507 matching lines...) Expand 10 before | Expand all | Expand 10 after
6672 6673
6673 Send(reply_message_); 6674 Send(reply_message_);
6674 redirect_query_ = 0; 6675 redirect_query_ = 0;
6675 reply_message_ = NULL; 6676 reply_message_ = NULL;
6676 } 6677 }
6677 6678
6678 void TestingAutomationProvider::OnRemoveProvider() { 6679 void TestingAutomationProvider::OnRemoveProvider() {
6679 if (g_browser_process) 6680 if (g_browser_process)
6680 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 6681 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
6681 } 6682 }
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698