| OLD | NEW |
| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 FileChooserParams::Mode permissions) = 0; | 195 FileChooserParams::Mode permissions) = 0; |
| 196 | 196 |
| 197 virtual RenderViewHostDelegate* GetDelegate() const = 0; | 197 virtual RenderViewHostDelegate* GetDelegate() const = 0; |
| 198 | 198 |
| 199 // Returns a bitwise OR of bindings types that have been enabled for this | 199 // Returns a bitwise OR of bindings types that have been enabled for this |
| 200 // RenderView. See BindingsPolicy for details. | 200 // RenderView. See BindingsPolicy for details. |
| 201 virtual int GetEnabledBindings() const = 0; | 201 virtual int GetEnabledBindings() const = 0; |
| 202 | 202 |
| 203 virtual SiteInstance* GetSiteInstance() const = 0; | 203 virtual SiteInstance* GetSiteInstance() const = 0; |
| 204 | 204 |
| 205 // Requests the renderer to evaluate an xpath to a frame and insert css | |
| 206 // into that frame's document. | |
| 207 virtual void InsertCSS(const base::string16& frame_xpath, | |
| 208 const std::string& css) = 0; | |
| 209 | |
| 210 // Returns true if the RenderView is active and has not crashed. Virtual | 205 // Returns true if the RenderView is active and has not crashed. Virtual |
| 211 // because it is overridden by TestRenderViewHost. | 206 // because it is overridden by TestRenderViewHost. |
| 212 virtual bool IsRenderViewLive() const = 0; | 207 virtual bool IsRenderViewLive() const = 0; |
| 213 | 208 |
| 214 // Notification that a move or resize renderer's containing window has | 209 // Notification that a move or resize renderer's containing window has |
| 215 // started. | 210 // started. |
| 216 virtual void NotifyMoveOrResizeStarted() = 0; | 211 virtual void NotifyMoveOrResizeStarted() = 0; |
| 217 | 212 |
| 218 // Reloads the current focused frame. | 213 // Reloads the current focused frame. |
| 219 virtual void ReloadFrame() = 0; | 214 virtual void ReloadFrame() = 0; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 260 |
| 266 private: | 261 private: |
| 267 // This interface should only be implemented inside content. | 262 // This interface should only be implemented inside content. |
| 268 friend class RenderViewHostImpl; | 263 friend class RenderViewHostImpl; |
| 269 RenderViewHost() {} | 264 RenderViewHost() {} |
| 270 }; | 265 }; |
| 271 | 266 |
| 272 } // namespace content | 267 } // namespace content |
| 273 | 268 |
| 274 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 269 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |