| Index: content/renderer/render_view_impl.cc
|
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
|
| index b6542ffbd6a27e3a63ea96e4858bb8f0a758a83b..207d6db585769e8c11a2037e668cbd06f9808fc4 100644
|
| --- a/content/renderer/render_view_impl.cc
|
| +++ b/content/renderer/render_view_impl.cc
|
| @@ -675,8 +675,7 @@ RenderViewImpl::RenderViewImpl(RenderViewImplParams* params)
|
| #endif
|
| enumeration_completion_id_(0),
|
| session_storage_namespace_id_(params->session_storage_namespace_id),
|
| - next_snapshot_id_(0) {
|
| -}
|
| + next_snapshot_id_(0) {}
|
|
|
| void RenderViewImpl::Initialize(RenderViewImplParams* params) {
|
| routing_id_ = params->routing_id;
|
| @@ -1079,6 +1078,8 @@ bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) {
|
| IPC_MESSAGE_HANDLER(ViewMsg_Zoom, OnZoom)
|
| IPC_MESSAGE_HANDLER(ViewMsg_SetZoomLevelForLoadingURL,
|
| OnSetZoomLevelForLoadingURL)
|
| + IPC_MESSAGE_HANDLER(ViewMsg_SetZoomLevelForView,
|
| + OnSetZoomLevelForView)
|
| IPC_MESSAGE_HANDLER(ViewMsg_SetPageEncoding, OnSetPageEncoding)
|
| IPC_MESSAGE_HANDLER(ViewMsg_ResetPageEncodingToDefault,
|
| OnResetPageEncodingToDefault)
|
| @@ -2658,6 +2659,11 @@ void RenderViewImpl::OnSetZoomLevelForLoadingURL(const GURL& url,
|
| #endif
|
| }
|
|
|
| +void RenderViewImpl::OnSetZoomLevelForView(double level) {
|
| + webview()->hidePopups();
|
| + webview()->setZoomLevel(level);
|
| +}
|
| +
|
| void RenderViewImpl::OnSetPageEncoding(const std::string& encoding_name) {
|
| webview()->setPageEncoding(WebString::fromUTF8(encoding_name));
|
| }
|
|
|