diff options
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r-- | chrome/renderer/render_view.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h index 5836b52..2fe5201 100644 --- a/chrome/renderer/render_view.h +++ b/chrome/renderer/render_view.h @@ -405,9 +405,12 @@ class RenderView : public RenderWidget, void EvaluateScript(const std::wstring& frame_xpath, const std::wstring& jscript); - // Inserts a string of CSS in a particular frame. + // Inserts a string of CSS in a particular frame. |id| can be specified to + // give the CSS style element an id, and (if specified) will replace the + // element with the same id. void InsertCSS(const std::wstring& frame_xpath, - const std::string& css); + const std::string& css, + const std::string& id); int delay_seconds_for_form_state_sync() const { return delay_seconds_for_form_state_sync_; @@ -590,7 +593,8 @@ class RenderView : public RenderWidget, void OnScriptEvalRequest(const std::wstring& frame_xpath, const std::wstring& jscript); void OnCSSInsertRequest(const std::wstring& frame_xpath, - const std::string& css); + const std::string& css, + const std::string& id); void OnAddMessageToConsole(const string16& frame_xpath, const string16& message, const WebKit::WebConsoleMessage::Level&); |