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

Side by Side Diff: content/plugin/webplugin_delegate_stub.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
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/plugin/webplugin_delegate_stub.h" 5 #include "content/plugin/webplugin_delegate_stub.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 if (!in_destructor_) 76 if (!in_destructor_)
77 AddRef(); 77 AddRef();
78 78
79 bool handled = true; 79 bool handled = true;
80 IPC_BEGIN_MESSAGE_MAP(WebPluginDelegateStub, msg) 80 IPC_BEGIN_MESSAGE_MAP(WebPluginDelegateStub, msg)
81 IPC_MESSAGE_HANDLER(PluginMsg_Init, OnInit) 81 IPC_MESSAGE_HANDLER(PluginMsg_Init, OnInit)
82 IPC_MESSAGE_HANDLER(PluginMsg_SetFocus, OnSetFocus) 82 IPC_MESSAGE_HANDLER(PluginMsg_SetFocus, OnSetFocus)
83 IPC_MESSAGE_HANDLER(PluginMsg_HandleInputEvent, OnHandleInputEvent) 83 IPC_MESSAGE_HANDLER(PluginMsg_HandleInputEvent, OnHandleInputEvent)
84 IPC_MESSAGE_HANDLER(PluginMsg_Paint, OnPaint) 84 IPC_MESSAGE_HANDLER(PluginMsg_Paint, OnPaint)
85 IPC_MESSAGE_HANDLER(PluginMsg_DidPaint, OnDidPaint) 85 IPC_MESSAGE_HANDLER(PluginMsg_DidPaint, OnDidPaint)
86 IPC_MESSAGE_HANDLER(PluginMsg_GetFormValue, OnGetFormValue)
87 IPC_MESSAGE_HANDLER(PluginMsg_UpdateGeometry, OnUpdateGeometry) 86 IPC_MESSAGE_HANDLER(PluginMsg_UpdateGeometry, OnUpdateGeometry)
88 IPC_MESSAGE_HANDLER(PluginMsg_UpdateGeometrySync, OnUpdateGeometry) 87 IPC_MESSAGE_HANDLER(PluginMsg_UpdateGeometrySync, OnUpdateGeometry)
89 IPC_MESSAGE_HANDLER(PluginMsg_SetContentAreaFocus, OnSetContentAreaFocus) 88 IPC_MESSAGE_HANDLER(PluginMsg_SetContentAreaFocus, OnSetContentAreaFocus)
90 #if defined(OS_MACOSX) 89 #if defined(OS_MACOSX)
91 IPC_MESSAGE_HANDLER(PluginMsg_SetWindowFocus, OnSetWindowFocus) 90 IPC_MESSAGE_HANDLER(PluginMsg_SetWindowFocus, OnSetWindowFocus)
92 IPC_MESSAGE_HANDLER(PluginMsg_ContainerHidden, OnContainerHidden) 91 IPC_MESSAGE_HANDLER(PluginMsg_ContainerHidden, OnContainerHidden)
93 IPC_MESSAGE_HANDLER(PluginMsg_ContainerShown, OnContainerShown) 92 IPC_MESSAGE_HANDLER(PluginMsg_ContainerShown, OnContainerShown)
94 IPC_MESSAGE_HANDLER(PluginMsg_WindowFrameChanged, OnWindowFrameChanged) 93 IPC_MESSAGE_HANDLER(PluginMsg_WindowFrameChanged, OnWindowFrameChanged)
95 IPC_MESSAGE_HANDLER(PluginMsg_ImeCompositionCompleted, 94 IPC_MESSAGE_HANDLER(PluginMsg_ImeCompositionCompleted,
96 OnImeCompositionCompleted) 95 OnImeCompositionCompleted)
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 } 171 }
173 172
174 void WebPluginDelegateStub::OnUpdateGeometry( 173 void WebPluginDelegateStub::OnUpdateGeometry(
175 const PluginMsg_UpdateGeometry_Param& param) { 174 const PluginMsg_UpdateGeometry_Param& param) {
176 webplugin_->UpdateGeometry( 175 webplugin_->UpdateGeometry(
177 param.window_rect, param.clip_rect, 176 param.window_rect, param.clip_rect,
178 param.windowless_buffer0, param.windowless_buffer1, 177 param.windowless_buffer0, param.windowless_buffer1,
179 param.windowless_buffer_index); 178 param.windowless_buffer_index);
180 } 179 }
181 180
182 void WebPluginDelegateStub::OnGetFormValue(base::string16* value,
183 bool* success) {
184 *success = false;
185 if (!delegate_)
186 return;
187 *success = delegate_->GetFormValue(value);
188 }
189
190 void WebPluginDelegateStub::OnSetContentAreaFocus(bool has_focus) { 181 void WebPluginDelegateStub::OnSetContentAreaFocus(bool has_focus) {
191 if (delegate_) 182 if (delegate_)
192 delegate_->SetContentAreaHasFocus(has_focus); 183 delegate_->SetContentAreaHasFocus(has_focus);
193 } 184 }
194 185
195 #if defined(OS_MACOSX) 186 #if defined(OS_MACOSX)
196 void WebPluginDelegateStub::OnSetWindowFocus(bool has_focus) { 187 void WebPluginDelegateStub::OnSetWindowFocus(bool has_focus) {
197 if (delegate_) 188 if (delegate_)
198 delegate_->SetWindowHasFocus(has_focus); 189 delegate_->SetWindowHasFocus(has_focus);
199 } 190 }
(...skipping 20 matching lines...) Expand all
220 } 211 }
221 212
222 void WebPluginDelegateStub::OnImeCompositionCompleted( 213 void WebPluginDelegateStub::OnImeCompositionCompleted(
223 const base::string16& text) { 214 const base::string16& text) {
224 if (delegate_) 215 if (delegate_)
225 delegate_->ImeCompositionCompleted(text); 216 delegate_->ImeCompositionCompleted(text);
226 } 217 }
227 #endif // OS_MACOSX 218 #endif // OS_MACOSX
228 219
229 } // namespace content 220 } // namespace content
OLDNEW
« no previous file with comments | « content/plugin/webplugin_delegate_stub.h ('k') | content/renderer/npapi/webplugin_delegate_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698