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

Unified Diff: chrome/browser/resources/new_tab.html

Issue 115910: Allow themes to change the background of the new tab page.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « chrome/browser/profile.cc ('k') | chrome/browser/resources/new_tab_theme.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/new_tab.html
===================================================================
--- chrome/browser/resources/new_tab.html (revision 17403)
+++ chrome/browser/resources/new_tab.html (working copy)
@@ -1,5 +1,5 @@
<!DOCTYPE HTML>
-<html id="t" jsvalues="dir:textdirection;firstview:firstview">
+<html id="t" jsvalues="dir:textdirection;firstview:firstview;bookmarkbarattached:bookmarkbarattached;">
<!--
This page is optimized for perceived performance. Our enemies are the time
taken for the backend to generate our data, and the time taken to parse
@@ -134,9 +134,7 @@
height:100%;
}
body {
- background-color:white;
margin:0px;
- background-repeat:repeat-x;
}
html[firstview='true'] #main {
opacity:0.0;
@@ -440,7 +438,7 @@
<iframe id="p13n" frameborder="0" width="100%" scrolling="no" height="0"
jsdisplay="p13nsrc" style="display:none;"
jsvalues="src:p13nsrc"></iframe>
- <div id="searches" class="sidebar">
+ <div id="searches" class="sidebar themed">
<div class="section-title" jscontent="searches"></div>
<form onsubmit="chrome.send('searchHistoryPage', [this.search.value]); return false;">
<input type="text" class="hint"
@@ -936,6 +934,12 @@
function themeChanged() {
$('themecss').href = 'chrome://theme/css/newtab.css?' + Date.now();
}
+function bookmarkBarAttached() {
+ document.documentElement.setAttribute("bookmarkbarattached", "true");
+}
+function bookmarkBarDetached() {
+ document.documentElement.setAttribute("bookmarkbarattached", "false");
+}
function viewLog() {
var lines = [];
« no previous file with comments | « chrome/browser/profile.cc ('k') | chrome/browser/resources/new_tab_theme.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698