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

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: Fix GTK 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 2013 matching lines...) Expand 10 before | Expand all | Expand 10 after
2024 const GetAudioOutputControllersCallback& callback) const { 2024 const GetAudioOutputControllersCallback& callback) const {
2025 AudioRendererHost* audio_host = 2025 AudioRendererHost* audio_host =
2026 static_cast<RenderProcessHostImpl*>(GetProcess())->audio_renderer_host(); 2026 static_cast<RenderProcessHostImpl*>(GetProcess())->audio_renderer_host();
2027 audio_host->GetOutputControllers(GetRoutingID(), callback); 2027 audio_host->GetOutputControllers(GetRoutingID(), callback);
2028 } 2028 }
2029 2029
2030 void RenderViewHostImpl::ClearFocusedNode() { 2030 void RenderViewHostImpl::ClearFocusedNode() {
2031 Send(new ViewMsg_ClearFocusedNode(GetRoutingID())); 2031 Send(new ViewMsg_ClearFocusedNode(GetRoutingID()));
2032 } 2032 }
2033 2033
2034 void RenderViewHostImpl::SetZoomLevel(double level) {
2035 Send(new ViewMsg_SetZoomLevel(GetRoutingID(), level));
2036 }
2037
2038 void RenderViewHostImpl::Zoom(PageZoom zoom) { 2034 void RenderViewHostImpl::Zoom(PageZoom zoom) {
2039 Send(new ViewMsg_Zoom(GetRoutingID(), zoom)); 2035 Send(new ViewMsg_Zoom(GetRoutingID(), zoom));
2040 } 2036 }
2041 2037
2042 void RenderViewHostImpl::ReloadFrame() { 2038 void RenderViewHostImpl::ReloadFrame() {
2043 Send(new ViewMsg_ReloadFrame(GetRoutingID())); 2039 Send(new ViewMsg_ReloadFrame(GetRoutingID()));
2044 } 2040 }
2045 2041
2046 void RenderViewHostImpl::InsertCSS(const base::string16& frame_xpath, 2042 void RenderViewHostImpl::InsertCSS(const base::string16& frame_xpath,
2047 const std::string& css) { 2043 const std::string& css) {
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
2269 void RenderViewHostImpl::AttachToFrameTree() { 2265 void RenderViewHostImpl::AttachToFrameTree() {
2270 FrameTree* frame_tree = delegate_->GetFrameTree(); 2266 FrameTree* frame_tree = delegate_->GetFrameTree();
2271 2267
2272 frame_tree->ResetForMainFrameSwap(); 2268 frame_tree->ResetForMainFrameSwap();
2273 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { 2269 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) {
2274 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); 2270 frame_tree->OnFirstNavigationAfterSwap(main_frame_id());
2275 } 2271 }
2276 } 2272 }
2277 2273
2278 } // namespace content 2274 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698