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/renderer/pepper/pepper_webplugin_impl.h" | 5 #include "content/renderer/pepper/pepper_webplugin_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/debug/crash_logging.h" | 9 #include "base/debug/crash_logging.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "content/public/common/page_zoom.h" | |
12 #include "content/public/renderer/content_renderer_client.h" | 11 #include "content/public/renderer/content_renderer_client.h" |
13 #include "content/renderer/pepper/message_channel.h" | 12 #include "content/renderer/pepper/message_channel.h" |
14 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 13 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
15 #include "content/renderer/pepper/plugin_instance_throttler_impl.h" | 14 #include "content/renderer/pepper/plugin_instance_throttler_impl.h" |
16 #include "content/renderer/pepper/plugin_module.h" | 15 #include "content/renderer/pepper/plugin_module.h" |
17 #include "content/renderer/pepper/v8object_var.h" | 16 #include "content/renderer/pepper/v8object_var.h" |
18 #include "content/renderer/render_frame_impl.h" | 17 #include "content/renderer/render_frame_impl.h" |
19 #include "ppapi/shared_impl/ppapi_globals.h" | 18 #include "ppapi/shared_impl/ppapi_globals.h" |
20 #include "ppapi/shared_impl/var_tracker.h" | 19 #include "ppapi/shared_impl/var_tracker.h" |
21 #include "third_party/WebKit/public/platform/WebPoint.h" | 20 #include "third_party/WebKit/public/platform/WebPoint.h" |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 } | 239 } |
241 | 240 |
242 WebString PepperWebPluginImpl::selectionAsMarkup() const { | 241 WebString PepperWebPluginImpl::selectionAsMarkup() const { |
243 return instance_->GetSelectedText(true); | 242 return instance_->GetSelectedText(true); |
244 } | 243 } |
245 | 244 |
246 WebURL PepperWebPluginImpl::linkAtPosition(const WebPoint& position) const { | 245 WebURL PepperWebPluginImpl::linkAtPosition(const WebPoint& position) const { |
247 return GURL(instance_->GetLinkAtPosition(position)); | 246 return GURL(instance_->GetLinkAtPosition(position)); |
248 } | 247 } |
249 | 248 |
250 void PepperWebPluginImpl::setZoomLevel(double level, bool text_only) { | |
251 instance_->Zoom(content::ZoomLevelToZoomFactor(level), text_only); | |
252 } | |
253 | |
254 bool PepperWebPluginImpl::startFind(const blink::WebString& search_text, | 249 bool PepperWebPluginImpl::startFind(const blink::WebString& search_text, |
255 bool case_sensitive, | 250 bool case_sensitive, |
256 int identifier) { | 251 int identifier) { |
257 return instance_->StartFind(search_text, case_sensitive, identifier); | 252 return instance_->StartFind(search_text, case_sensitive, identifier); |
258 } | 253 } |
259 | 254 |
260 void PepperWebPluginImpl::selectFindResult(bool forward) { | 255 void PepperWebPluginImpl::selectFindResult(bool forward) { |
261 instance_->SelectFindResult(forward); | 256 instance_->SelectFindResult(forward); |
262 } | 257 } |
263 | 258 |
(...skipping 24 matching lines...) Expand all Loading... |
288 | 283 |
289 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } | 284 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } |
290 | 285 |
291 void PepperWebPluginImpl::rotateView(RotationType type) { | 286 void PepperWebPluginImpl::rotateView(RotationType type) { |
292 instance_->RotateView(type); | 287 instance_->RotateView(type); |
293 } | 288 } |
294 | 289 |
295 bool PepperWebPluginImpl::isPlaceholder() { return false; } | 290 bool PepperWebPluginImpl::isPlaceholder() { return false; } |
296 | 291 |
297 } // namespace content | 292 } // namespace content |
OLD | NEW |