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

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

Issue 13467038: Browser Plugin: Expose frame name changes to the content API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Expose RenderViewHost::SetName to the content API Created 7 years, 8 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 "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/render_widget_host.h" 10 #include "content/public/browser/render_widget_host.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // Notification that a move or resize renderer's containing window has 244 // Notification that a move or resize renderer's containing window has
245 // started. 245 // started.
246 virtual void NotifyMoveOrResizeStarted() = 0; 246 virtual void NotifyMoveOrResizeStarted() = 0;
247 247
248 // Reloads the current focused frame. 248 // Reloads the current focused frame.
249 virtual void ReloadFrame() = 0; 249 virtual void ReloadFrame() = 0;
250 250
251 // Sets the alternate error page URL (link doctor) for the renderer process. 251 // Sets the alternate error page URL (link doctor) for the renderer process.
252 virtual void SetAltErrorPageURL(const GURL& url) = 0; 252 virtual void SetAltErrorPageURL(const GURL& url) = 0;
253 253
254 // Sets the name of the top-level frame.
255 virtual void SetName(const std::string& name) = 0;
256
254 // Sets a property with the given name and value on the Web UI binding object. 257 // Sets a property with the given name and value on the Web UI binding object.
255 // Must call AllowWebUIBindings() on this renderer first. 258 // Must call AllowWebUIBindings() on this renderer first.
256 virtual void SetWebUIProperty(const std::string& name, 259 virtual void SetWebUIProperty(const std::string& name,
257 const std::string& value) = 0; 260 const std::string& value) = 0;
258 261
259 // Set the zoom level for the current main frame 262 // Set the zoom level for the current main frame
260 virtual void SetZoomLevel(double level) = 0; 263 virtual void SetZoomLevel(double level) = 0;
261 264
262 // Changes the zoom level for the current main frame. 265 // Changes the zoom level for the current main frame.
263 virtual void Zoom(PageZoom zoom) = 0; 266 virtual void Zoom(PageZoom zoom) = 0;
(...skipping 25 matching lines...) Expand all
289 292
290 private: 293 private:
291 // This interface should only be implemented inside content. 294 // This interface should only be implemented inside content.
292 friend class RenderViewHostImpl; 295 friend class RenderViewHostImpl;
293 RenderViewHost() {} 296 RenderViewHost() {}
294 }; 297 };
295 298
296 } // namespace content 299 } // namespace content
297 300
298 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 301 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698