summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorasvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 13:54:25 +0000
committerasvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 13:54:25 +0000
commit4664d6f30434ab7453c7d5e912345f95ececdb07 (patch)
tree55682c597e7f7d2771794a98ad8cb36337492c25 /webkit
parentc2e34c4eb4068b9583cce3c5fd322169ce4a8485 (diff)
downloadchromium_src-4664d6f30434ab7453c7d5e912345f95ececdb07.zip
chromium_src-4664d6f30434ab7453c7d5e912345f95ececdb07.tar.gz
chromium_src-4664d6f30434ab7453c7d5e912345f95ececdb07.tar.bz2
Add custom overhang pattern for rubber-banding.
This will be used in WebKit for overhang painting. BUG=93397 TEST=none Review URL: http://codereview.chromium.org/7711007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97855 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/resources/overhang_pattern.pngbin0 -> 20087 bytes
-rw-r--r--webkit/glue/webkit_resources.grd3
-rw-r--r--webkit/glue/webkitclient_impl.cc3
3 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/resources/overhang_pattern.png b/webkit/glue/resources/overhang_pattern.png
new file mode 100644
index 0000000..042a7c8
--- /dev/null
+++ b/webkit/glue/resources/overhang_pattern.png
Binary files differ
diff --git a/webkit/glue/webkit_resources.grd b/webkit/glue/webkit_resources.grd
index e21bdef..175b776 100644
--- a/webkit/glue/webkit_resources.grd
+++ b/webkit/glue/webkit_resources.grd
@@ -52,6 +52,9 @@
<include name="IDR_MEDIAPLAYER_VOLUME_SLIDER_THUMB" file="resources\mediaplayer_volume_slider_thumb.png" type="BINDATA" />
<include name="IDR_MEDIAPLAYER_VOLUME_SLIDER_THUMB_HOVER" file="resources\mediaplayer_volume_slider_thumb_hover.png" type="BINDATA" />
<include name="IDR_MEDIAPLAYER_VOLUME_SLIDER_THUMB_DOWN" file="resources\mediaplayer_volume_slider_thumb_down.png" type="BINDATA" />
+ <if expr="is_macosx">
+ <include name="IDR_OVERHANG_PATTERN" file="resources\overhang_pattern.png" type="BINDATA" />
+ </if>
<include name="IDC_PAN_EAST" file="resources\pan_east.cur" type="CURSOR" />
<include name="IDC_PAN_MIDDLE" file="resources\pan_middle.cur" type="CURSOR" />
<include name="IDC_PAN_NORTH" file="resources\pan_north.cur" type="CURSOR" />
diff --git a/webkit/glue/webkitclient_impl.cc b/webkit/glue/webkitclient_impl.cc
index fb1c98d..6a0aa1a 100644
--- a/webkit/glue/webkitclient_impl.cc
+++ b/webkit/glue/webkitclient_impl.cc
@@ -394,6 +394,9 @@ const DataResource kDataResources[] = {
IDR_MEDIAPLAYER_VOLUME_SLIDER_THUMB_HOVER },
{ "mediaplayerVolumeSliderThumbDown",
IDR_MEDIAPLAYER_VOLUME_SLIDER_THUMB_DOWN },
+#if defined(OS_MACOSX)
+ { "overhangPattern", IDR_OVERHANG_PATTERN },
+#endif
{ "panIcon", IDR_PAN_SCROLL_ICON },
{ "searchCancel", IDR_SEARCH_CANCEL },
{ "searchCancelPressed", IDR_SEARCH_CANCEL_PRESSED },