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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 98073015: <webview>: Support zoom in WebUI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed RenderViewHost::SetZoomLevel Created 6 years, 11 months 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
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/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 2019 matching lines...) Expand 10 before | Expand all | Expand 10 after
2030 const GetAudioOutputControllersCallback& callback) const { 2030 const GetAudioOutputControllersCallback& callback) const {
2031 AudioRendererHost* audio_host = 2031 AudioRendererHost* audio_host =
2032 static_cast<RenderProcessHostImpl*>(GetProcess())->audio_renderer_host(); 2032 static_cast<RenderProcessHostImpl*>(GetProcess())->audio_renderer_host();
2033 audio_host->GetOutputControllers(GetRoutingID(), callback); 2033 audio_host->GetOutputControllers(GetRoutingID(), callback);
2034 } 2034 }
2035 2035
2036 void RenderViewHostImpl::ClearFocusedNode() { 2036 void RenderViewHostImpl::ClearFocusedNode() {
2037 Send(new ViewMsg_ClearFocusedNode(GetRoutingID())); 2037 Send(new ViewMsg_ClearFocusedNode(GetRoutingID()));
2038 } 2038 }
2039 2039
2040 void RenderViewHostImpl::SetZoomLevel(double level) {
2041 Send(new ViewMsg_SetZoomLevel(GetRoutingID(), level));
2042 }
2043
2044 void RenderViewHostImpl::Zoom(PageZoom zoom) { 2040 void RenderViewHostImpl::Zoom(PageZoom zoom) {
2045 Send(new ViewMsg_Zoom(GetRoutingID(), zoom)); 2041 Send(new ViewMsg_Zoom(GetRoutingID(), zoom));
2046 } 2042 }
2047 2043
2048 void RenderViewHostImpl::ReloadFrame() { 2044 void RenderViewHostImpl::ReloadFrame() {
2049 Send(new ViewMsg_ReloadFrame(GetRoutingID())); 2045 Send(new ViewMsg_ReloadFrame(GetRoutingID()));
2050 } 2046 }
2051 2047
2052 void RenderViewHostImpl::Find(int request_id, 2048 void RenderViewHostImpl::Find(int request_id,
2053 const base::string16& search_text, 2049 const base::string16& search_text,
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
2282 void RenderViewHostImpl::AttachToFrameTree() { 2278 void RenderViewHostImpl::AttachToFrameTree() {
2283 FrameTree* frame_tree = delegate_->GetFrameTree(); 2279 FrameTree* frame_tree = delegate_->GetFrameTree();
2284 2280
2285 frame_tree->ResetForMainFrameSwap(); 2281 frame_tree->ResetForMainFrameSwap();
2286 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { 2282 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) {
2287 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); 2283 frame_tree->OnFirstNavigationAfterSwap(main_frame_id());
2288 } 2284 }
2289 } 2285 }
2290 2286
2291 } // namespace content 2287 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698