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

Side by Side Diff: content/public/browser/render_view_host.h

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 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 virtual void ReloadFrame() = 0; 224 virtual void ReloadFrame() = 0;
225 225
226 // Sets the alternate error page URL (link doctor) for the renderer process. 226 // Sets the alternate error page URL (link doctor) for the renderer process.
227 virtual void SetAltErrorPageURL(const GURL& url) = 0; 227 virtual void SetAltErrorPageURL(const GURL& url) = 0;
228 228
229 // Sets a property with the given name and value on the Web UI binding object. 229 // Sets a property with the given name and value on the Web UI binding object.
230 // Must call AllowWebUIBindings() on this renderer first. 230 // Must call AllowWebUIBindings() on this renderer first.
231 virtual void SetWebUIProperty(const std::string& name, 231 virtual void SetWebUIProperty(const std::string& name,
232 const std::string& value) = 0; 232 const std::string& value) = 0;
233 233
234 // Set the zoom level for the current main frame
235 virtual void SetZoomLevel(double level) = 0;
236
237 // Changes the zoom level for the current main frame. 234 // Changes the zoom level for the current main frame.
238 virtual void Zoom(PageZoom zoom) = 0; 235 virtual void Zoom(PageZoom zoom) = 0;
239 236
240 // Send the renderer process the current preferences supplied by the 237 // Send the renderer process the current preferences supplied by the
241 // RenderViewHostDelegate. 238 // RenderViewHostDelegate.
242 virtual void SyncRendererPrefs() = 0; 239 virtual void SyncRendererPrefs() = 0;
243 240
244 virtual void ToggleSpeechInput() = 0; 241 virtual void ToggleSpeechInput() = 0;
245 242
246 // Returns the current WebKit preferences. 243 // Returns the current WebKit preferences.
(...skipping 29 matching lines...) Expand all
276 273
277 private: 274 private:
278 // This interface should only be implemented inside content. 275 // This interface should only be implemented inside content.
279 friend class RenderViewHostImpl; 276 friend class RenderViewHostImpl;
280 RenderViewHost() {} 277 RenderViewHost() {}
281 }; 278 };
282 279
283 } // namespace content 280 } // namespace content
284 281
285 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 282 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698