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

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

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 void WebPluginDelegateImpl::SetContentAreaHasFocus(bool has_focus) { 170 void WebPluginDelegateImpl::SetContentAreaHasFocus(bool has_focus) {
171 containing_view_has_focus_ = has_focus; 171 containing_view_has_focus_ = has_focus;
172 if (!windowless_) 172 if (!windowless_)
173 return; 173 return;
174 #if !defined(OS_WIN) // See SetFocus above. 174 #if !defined(OS_WIN) // See SetFocus above.
175 SetPluginHasFocus(containing_view_has_focus_ && has_webkit_focus_); 175 SetPluginHasFocus(containing_view_has_focus_ && has_webkit_focus_);
176 #endif 176 #endif
177 } 177 }
178 178
179 NPObject* WebPluginDelegateImpl::GetPluginScriptableObject() {
180 return instance_->GetPluginScriptableObject();
181 }
182
183 NPP WebPluginDelegateImpl::GetPluginNPP() {
184 return instance_->npp();
185 }
186
187 bool WebPluginDelegateImpl::GetFormValue(base::string16* value) { 179 bool WebPluginDelegateImpl::GetFormValue(base::string16* value) {
188 return instance_->GetFormValue(value); 180 return instance_->GetFormValue(value);
189 } 181 }
190 182
191 int WebPluginDelegateImpl::GetProcessId() { 183 int WebPluginDelegateImpl::GetProcessId() {
192 // We are in process, so the plugin pid is this current process pid. 184 // We are in process, so the plugin pid is this current process pid.
193 return base::GetCurrentProcId(); 185 return base::GetCurrentProcId();
194 } 186 }
195 187
196 base::FilePath WebPluginDelegateImpl::GetPluginPath() { 188 base::FilePath WebPluginDelegateImpl::GetPluginPath() {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 case WebInputEvent::MouseUp: 225 case WebInputEvent::MouseUp:
234 case WebInputEvent::KeyDown: 226 case WebInputEvent::KeyDown:
235 case WebInputEvent::KeyUp: 227 case WebInputEvent::KeyUp:
236 return true; 228 return true;
237 default: 229 default:
238 return false; 230 return false;
239 } 231 }
240 } 232 }
241 233
242 } // namespace content 234 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698