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

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

Issue 2611573004: Remove dead ViewMsg_{Zoom, DidZoomUrl} (Closed)
Patch Set: Created 3 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 // Notification that a move or resize renderer's containing window has 141 // Notification that a move or resize renderer's containing window has
142 // started. 142 // started.
143 virtual void NotifyMoveOrResizeStarted() = 0; 143 virtual void NotifyMoveOrResizeStarted() = 0;
144 144
145 // Sets a property with the given name and value on the Web UI binding object. 145 // Sets a property with the given name and value on the Web UI binding object.
146 // Must call AllowWebUIBindings() on this renderer first. 146 // Must call AllowWebUIBindings() on this renderer first.
147 virtual void SetWebUIProperty(const std::string& name, 147 virtual void SetWebUIProperty(const std::string& name,
148 const std::string& value) = 0; 148 const std::string& value) = 0;
149 149
150 // Changes the zoom level for the current main frame.
151 virtual void Zoom(PageZoom zoom) = 0;
152
153 // Send the renderer process the current preferences supplied by the 150 // Send the renderer process the current preferences supplied by the
154 // RenderViewHostDelegate. 151 // RenderViewHostDelegate.
155 virtual void SyncRendererPrefs() = 0; 152 virtual void SyncRendererPrefs() = 0;
156 153
157 // Returns the current WebKit preferences. Note: WebPreferences is cached, so 154 // Returns the current WebKit preferences. Note: WebPreferences is cached, so
158 // this lookup will be fast 155 // this lookup will be fast
159 virtual WebPreferences GetWebkitPreferences() = 0; 156 virtual WebPreferences GetWebkitPreferences() = 0;
160 157
161 // If any state that affects the webkit preferences changed, this method must 158 // If any state that affects the webkit preferences changed, this method must
162 // be called. This triggers recomputing preferences. 159 // be called. This triggers recomputing preferences.
163 virtual void OnWebkitPreferencesChanged() = 0; 160 virtual void OnWebkitPreferencesChanged() = 0;
164 161
165 // Passes a list of Webkit preferences to the renderer. 162 // Passes a list of Webkit preferences to the renderer.
166 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0; 163 virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0;
167 164
168 // Notify the render view host to select the word around the caret. 165 // Notify the render view host to select the word around the caret.
169 virtual void SelectWordAroundCaret() = 0; 166 virtual void SelectWordAroundCaret() = 0;
170 167
171 private: 168 private:
172 // This interface should only be implemented inside content. 169 // This interface should only be implemented inside content.
173 friend class RenderViewHostImpl; 170 friend class RenderViewHostImpl;
174 RenderViewHost() {} 171 RenderViewHost() {}
175 }; 172 };
176 173
177 } // namespace content 174 } // namespace content
178 175
179 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 176 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698