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

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
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 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1382 return render_view_->webkit_preferences().default_encoding; 1382 return render_view_->webkit_preferences().default_encoding;
1383 } 1383 }
1384 1384
1385 void PepperPluginDelegateImpl::ZoomLimitsChanged(double minimum_factor, 1385 void PepperPluginDelegateImpl::ZoomLimitsChanged(double minimum_factor,
1386 double maximum_factor) { 1386 double maximum_factor) {
1387 double minimum_level = WebView::zoomFactorToZoomLevel(minimum_factor); 1387 double minimum_level = WebView::zoomFactorToZoomLevel(minimum_factor);
1388 double maximum_level = WebView::zoomFactorToZoomLevel(maximum_factor); 1388 double maximum_level = WebView::zoomFactorToZoomLevel(maximum_factor);
1389 render_view_->webview()->zoomLimitsChanged(minimum_level, maximum_level); 1389 render_view_->webview()->zoomLimitsChanged(minimum_level, maximum_level);
1390 } 1390 }
1391 1391
1392 std::string PepperPluginDelegateImpl::ResolveProxy(const GURL& url) {
1393 bool result;
1394 std::string proxy_result;
1395 RenderThreadImpl::current()->Send(
1396 new ViewHostMsg_ResolveProxy(url, &result, &proxy_result));
1397 return proxy_result;
1398 }
1399
1400 void PepperPluginDelegateImpl::DidStartLoading() { 1392 void PepperPluginDelegateImpl::DidStartLoading() {
1401 render_view_->DidStartLoadingForPlugin(); 1393 render_view_->DidStartLoadingForPlugin();
1402 } 1394 }
1403 1395
1404 void PepperPluginDelegateImpl::DidStopLoading() { 1396 void PepperPluginDelegateImpl::DidStopLoading() {
1405 render_view_->DidStopLoadingForPlugin(); 1397 render_view_->DidStopLoadingForPlugin();
1406 } 1398 }
1407 1399
1408 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) { 1400 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) {
1409 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions( 1401 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions(
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1798 RenderWidgetFullscreenPepper* container = 1790 RenderWidgetFullscreenPepper* container =
1799 static_cast<RenderWidgetFullscreenPepper*>( 1791 static_cast<RenderWidgetFullscreenPepper*>(
1800 instance->fullscreen_container()); 1792 instance->fullscreen_container());
1801 return container->mouse_lock_dispatcher(); 1793 return container->mouse_lock_dispatcher();
1802 } else { 1794 } else {
1803 return render_view_->mouse_lock_dispatcher(); 1795 return render_view_->mouse_lock_dispatcher();
1804 } 1796 }
1805 } 1797 }
1806 1798
1807 } // namespace content 1799 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698