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

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, 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 NPObject* WebPluginDelegateImpl::GetPluginScriptableObject() {
165 return instance_->GetPluginScriptableObject();
166 }
167
168 NPP WebPluginDelegateImpl::GetPluginNPP() {
169 return instance_->npp();
170 }
171
172 bool WebPluginDelegateImpl::GetFormValue(base::string16* value) { 164 bool WebPluginDelegateImpl::GetFormValue(base::string16* value) {
173 return instance_->GetFormValue(value); 165 return instance_->GetFormValue(value);
174 } 166 }
175 167
176 int WebPluginDelegateImpl::GetProcessId() { 168 int WebPluginDelegateImpl::GetProcessId() {
177 // We are in process, so the plugin pid is this current process pid. 169 // We are in process, so the plugin pid is this current process pid.
178 return base::GetCurrentProcId(); 170 return base::GetCurrentProcId();
179 } 171 }
180 172
181 base::FilePath WebPluginDelegateImpl::GetPluginPath() { 173 base::FilePath WebPluginDelegateImpl::GetPluginPath() {
(...skipping 24 matching lines...) Expand all
206 case WebInputEvent::MouseUp: 198 case WebInputEvent::MouseUp:
207 case WebInputEvent::KeyDown: 199 case WebInputEvent::KeyDown:
208 case WebInputEvent::KeyUp: 200 case WebInputEvent::KeyUp:
209 return true; 201 return true;
210 default: 202 default:
211 return false; 203 return false;
212 } 204 }
213 } 205 }
214 206
215 } // namespace content 207 } // 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