From 072bbfa45e16385741fd00dede5c4c31e42438a6 Mon Sep 17 00:00:00 2001 From: "aa@chromium.org" Date: Wed, 29 Apr 2009 20:03:07 +0000 Subject: Part 1 of sample sprucing. Also, change chromium_extension.py to generate a random ID if the manifest doesn't have one. * Create a test/data/extensions/samples directory and add Reader and Gmail samples to it. * Minor fixes to buildbot sample to fit better visually. * Minor fixes to bookmarks sample to use new button styles. * Workaround for bug in bookmark sample where extension APIs do not load the first time. * Move Resizer extension into samples/. * Fix TabsAPI sample to not use old deprecated manifest properties anymore. Part 2 will move the remaining samples into samples/ (don't want to do that at the same time because git-cl doesn't know how to tell Rietveld about moves and it would be confusing to review). Review URL: http://codereview.chromium.org/99172 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14872 0039d316-1c4b-4281-b951-d872f2087c98 --- .../samples/gmail/extensions_toolstrip.css | 89 +++++++++++++++++++++ .../test/data/extensions/samples/gmail/gmail.png | Bin 0 -> 48123 bytes .../extensions/samples/gmail/gmail_checker.html | 89 +++++++++++++++++++++ .../data/extensions/samples/gmail/manifest.json | 13 +++ .../test/data/extensions/samples/gmail/styles.css | 16 ++++ 5 files changed, 207 insertions(+) create mode 100644 chrome/test/data/extensions/samples/gmail/extensions_toolstrip.css create mode 100644 chrome/test/data/extensions/samples/gmail/gmail.png create mode 100644 chrome/test/data/extensions/samples/gmail/gmail_checker.html create mode 100644 chrome/test/data/extensions/samples/gmail/manifest.json create mode 100644 chrome/test/data/extensions/samples/gmail/styles.css (limited to 'chrome/test/data/extensions/samples/gmail') diff --git a/chrome/test/data/extensions/samples/gmail/extensions_toolstrip.css b/chrome/test/data/extensions/samples/gmail/extensions_toolstrip.css new file mode 100644 index 0000000..3ba1892 --- /dev/null +++ b/chrome/test/data/extensions/samples/gmail/extensions_toolstrip.css @@ -0,0 +1,89 @@ +/** + * NOTE: This shouldn't need to be included in every toolstrip manually, but we + * currently have a race where it sometimes isn't applied, so we include it + * manually to be sure. In the future, these styles will be applied to all + * toolstrips automatically. + */ + + +/** + * Body styles. This makes the toolstrip layout fit in with the Windows + * bookmarkbar. Note that the background is provided separately, by + * RenderWidget. + */ +body { + display:-webkit-box; + -webkit-box-orient:horizontal; + -webkit-box-align:stretch; + white-space:nowrap; + overflow: hidden; + margin: 0; + padding:0; + font: menu; + color: #062D75; + text-shadow: #FFFFFF 1px 1px 0px; + -webkit-user-select:none; + cursor:default; +} + +/** + * Toolstrip Buttons. The following styles make + *
Woot
look like the + * bookmarkbar buttons on Windows. + * + * TODO(aa): We may have to come up with a way to modify these slightly on + * different platforms. + * + * TODO(aa): It would be nice if we could use actual