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

Side by Side Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

Issue 11415140: Refactor 3 PPB_Flash functions to the new resource model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.h ('k') | ppapi/proxy/flash_resource.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/renderer/pepper/pepper_plugin_delegate_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <cstddef> 8 #include <cstddef>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 return render_view_->webkit_preferences().default_encoding; 1391 return render_view_->webkit_preferences().default_encoding;
1392 } 1392 }
1393 1393
1394 void PepperPluginDelegateImpl::ZoomLimitsChanged(double minimum_factor, 1394 void PepperPluginDelegateImpl::ZoomLimitsChanged(double minimum_factor,
1395 double maximum_factor) { 1395 double maximum_factor) {
1396 double minimum_level = WebView::zoomFactorToZoomLevel(minimum_factor); 1396 double minimum_level = WebView::zoomFactorToZoomLevel(minimum_factor);
1397 double maximum_level = WebView::zoomFactorToZoomLevel(maximum_factor); 1397 double maximum_level = WebView::zoomFactorToZoomLevel(maximum_factor);
1398 render_view_->webview()->zoomLimitsChanged(minimum_level, maximum_level); 1398 render_view_->webview()->zoomLimitsChanged(minimum_level, maximum_level);
1399 } 1399 }
1400 1400
1401 std::string PepperPluginDelegateImpl::ResolveProxy(const GURL& url) {
1402 bool result;
1403 std::string proxy_result;
1404 RenderThreadImpl::current()->Send(
1405 new ViewHostMsg_ResolveProxy(url, &result, &proxy_result));
1406 return proxy_result;
1407 }
1408
1409 void PepperPluginDelegateImpl::DidStartLoading() { 1401 void PepperPluginDelegateImpl::DidStartLoading() {
1410 render_view_->DidStartLoadingForPlugin(); 1402 render_view_->DidStartLoadingForPlugin();
1411 } 1403 }
1412 1404
1413 void PepperPluginDelegateImpl::DidStopLoading() { 1405 void PepperPluginDelegateImpl::DidStopLoading() {
1414 render_view_->DidStopLoadingForPlugin(); 1406 render_view_->DidStopLoadingForPlugin();
1415 } 1407 }
1416 1408
1417 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) { 1409 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) {
1418 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions( 1410 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions(
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 RenderWidgetFullscreenPepper* container = 1799 RenderWidgetFullscreenPepper* container =
1808 static_cast<RenderWidgetFullscreenPepper*>( 1800 static_cast<RenderWidgetFullscreenPepper*>(
1809 instance->fullscreen_container()); 1801 instance->fullscreen_container());
1810 return container->mouse_lock_dispatcher(); 1802 return container->mouse_lock_dispatcher();
1811 } else { 1803 } else {
1812 return render_view_->mouse_lock_dispatcher(); 1804 return render_view_->mouse_lock_dispatcher();
1813 } 1805 }
1814 } 1806 }
1815 1807
1816 } // namespace content 1808 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.h ('k') | ppapi/proxy/flash_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698