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

Side by Side Diff: content/child/npapi/webplugin_delegate_impl.cc

Issue 1844383003: Remove NPAPI support for form data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl.h ('k') | content/child/plugin_messages.h » ('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) 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 "content/child/npapi/webplugin_delegate_impl.h" 5 #include "content/child/npapi/webplugin_delegate_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 plugin_has_focus_ = focused; 154 plugin_has_focus_ = focused;
155 } 155 }
156 156
157 void WebPluginDelegateImpl::SetContentAreaHasFocus(bool has_focus) { 157 void WebPluginDelegateImpl::SetContentAreaHasFocus(bool has_focus) {
158 containing_view_has_focus_ = has_focus; 158 containing_view_has_focus_ = has_focus;
159 #if !defined(OS_WIN) // See SetFocus above. 159 #if !defined(OS_WIN) // See SetFocus above.
160 SetPluginHasFocus(containing_view_has_focus_ && has_webkit_focus_); 160 SetPluginHasFocus(containing_view_has_focus_ && has_webkit_focus_);
161 #endif 161 #endif
162 } 162 }
163 163
164 bool WebPluginDelegateImpl::GetFormValue(base::string16* value) {
165 return instance_->GetFormValue(value);
166 }
167
168 int WebPluginDelegateImpl::GetProcessId() { 164 int WebPluginDelegateImpl::GetProcessId() {
169 // We are in process, so the plugin pid is this current process pid. 165 // We are in process, so the plugin pid is this current process pid.
170 return base::GetCurrentProcId(); 166 return base::GetCurrentProcId();
171 } 167 }
172 168
173 base::FilePath WebPluginDelegateImpl::GetPluginPath() { 169 base::FilePath WebPluginDelegateImpl::GetPluginPath() {
174 return instance()->plugin_lib()->plugin_info().path; 170 return instance()->plugin_lib()->plugin_info().path;
175 } 171 }
176 172
177 bool WebPluginDelegateImpl::HandleInputEvent( 173 bool WebPluginDelegateImpl::HandleInputEvent(
(...skipping 20 matching lines...) Expand all
198 case WebInputEvent::MouseUp: 194 case WebInputEvent::MouseUp:
199 case WebInputEvent::KeyDown: 195 case WebInputEvent::KeyDown:
200 case WebInputEvent::KeyUp: 196 case WebInputEvent::KeyUp:
201 return true; 197 return true;
202 default: 198 default:
203 return false; 199 return false;
204 } 200 }
205 } 201 }
206 202
207 } // namespace content 203 } // namespace content
OLDNEW
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl.h ('k') | content/child/plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698