OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |