summaryrefslogtreecommitdiffstats
path: root/chrome/app
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-13 19:00:29 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-13 19:00:29 +0000
commit34cdd0557b61c9c98aa0510cadfcd814a8156b44 (patch)
treefc5ee6c4e81b184e5259a23ed1957528bf034615 /chrome/app
parent5c65e10ad600bf4786f9eb8f6f30872bc61231e3 (diff)
downloadchromium_src-34cdd0557b61c9c98aa0510cadfcd814a8156b44.zip
chromium_src-34cdd0557b61c9c98aa0510cadfcd814a8156b44.tar.gz
chromium_src-34cdd0557b61c9c98aa0510cadfcd814a8156b44.tar.bz2
This CL adds some UI to remove most-visited thumbnails from the New Tab Page.
The URL of removed thumbnails is added to a blacklist, which is a user pref. I had to modify the VisitSegmentDatabase::QuerySegmentUsage not to return a fixed number of items, as now we may filter the ones we get back. Note: this adds between 20 and 30ms to the first NTP load on my machine (a 3 to 5% increase). BUG=685 TEST=Open the NTP. Click the 'Edit thumbnails' link. Remove some thumbnails. Press Done. Edit again, use the "Restore removed" link. Review URL: http://codereview.chromium.org/67037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13611 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r--chrome/app/generated_resources.grd16
-rw-r--r--chrome/app/theme/ntp_x_icon.pngbin0 -> 2680 bytes
-rw-r--r--chrome/app/theme/ntp_x_icon_active.pngbin0 -> 2565 bytes
-rw-r--r--chrome/app/theme/ntp_x_icon_hover.pngbin0 -> 2531 bytes
-rw-r--r--chrome/app/theme/ntp_x_icon_small.pngbin0 -> 785 bytes
5 files changed, 16 insertions, 0 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index 33cbe02..4c2cc64 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -3033,6 +3033,22 @@ each locale. -->
desc="The 'Show history' link on the new tab page">
Show full history
</message>
+ <message name="IDS_NEW_TAB_EDIT_THUMBNAILS"
+ desc="The 'Edit thumbnails' link on the new tab page">
+ Edit thumbnails
+ </message>
+ <message name="IDS_NEW_TAB_MOST_VISITED_DONE_EDITING_BUTTON"
+ desc="The caption of the button used to exit the edit thumbnails mode">
+ Done editing
+ </message>
+ <message name="IDS_NEW_TAB_RESTORE_THUMBNAILS_LINK"
+ desc="The link that restores previously removed thumbnails">
+ Restore all removed thumbnails
+ </message>
+ <message name="IDS_NEW_TAB_MOST_VISITED_EDIT_MODE_HEADING"
+ desc="The new tab page heading when in edit thumbnails mode.">
+ Click <ph name="CROSS_IMAGE">&lt;div id="cross-image-container"&gt;&lt;/div&gt;</ph> to remove the thumbnail
+ </message>
<message name="IDS_NEW_TAB_HISTORY_SEARCH"
desc="The label for the field that searches the user's history on the new tab page">
Search your history
diff --git a/chrome/app/theme/ntp_x_icon.png b/chrome/app/theme/ntp_x_icon.png
new file mode 100644
index 0000000..1fcc1a4
--- /dev/null
+++ b/chrome/app/theme/ntp_x_icon.png
Binary files differ
diff --git a/chrome/app/theme/ntp_x_icon_active.png b/chrome/app/theme/ntp_x_icon_active.png
new file mode 100644
index 0000000..ac50454
--- /dev/null
+++ b/chrome/app/theme/ntp_x_icon_active.png
Binary files differ
diff --git a/chrome/app/theme/ntp_x_icon_hover.png b/chrome/app/theme/ntp_x_icon_hover.png
new file mode 100644
index 0000000..466ada1
--- /dev/null
+++ b/chrome/app/theme/ntp_x_icon_hover.png
Binary files differ
diff --git a/chrome/app/theme/ntp_x_icon_small.png b/chrome/app/theme/ntp_x_icon_small.png
new file mode 100644
index 0000000..16792d1
--- /dev/null
+++ b/chrome/app/theme/ntp_x_icon_small.png
Binary files differ