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

Unified Diff: chrome/renderer/render_view.cc

Issue 203034: Theme support for the extension shelf (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 25988)
+++ chrome/renderer/render_view.cc (working copy)
@@ -2709,12 +2709,13 @@
}
void RenderView::InsertCSS(const std::wstring& frame_xpath,
- const std::string& css) {
+ const std::string& css,
+ const std::string& id) {
WebFrame* web_frame = GetChildFrame(frame_xpath);
if (!web_frame)
return;
- web_frame->insertStyleText(WebString::fromUTF8(css));
+ web_frame->insertStyleText(WebString::fromUTF8(css), WebString::fromUTF8(id));
}
void RenderView::OnScriptEvalRequest(const std::wstring& frame_xpath,
@@ -2723,8 +2724,9 @@
}
void RenderView::OnCSSInsertRequest(const std::wstring& frame_xpath,
- const std::string& css) {
- InsertCSS(frame_xpath, css);
+ const std::string& css,
+ const std::string& id) {
+ InsertCSS(frame_xpath, css, id);
// Notify RenderViewHost that css has been inserted into the frame.
Send(new ViewHostMsg_OnCSSInserted(routing_id_));

Powered by Google App Engine
This is Rietveld 408576698