Index: chrome/renderer/render_view.h |
=================================================================== |
--- chrome/renderer/render_view.h (revision 26222) |
+++ chrome/renderer/render_view.h (working copy) |
@@ -405,9 +405,12 @@ |
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 @@ |
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&); |