summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/wrench_menu.css
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-12 04:21:08 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-12 04:21:08 +0000
commit090bc22fd9703492c5cf2f76a0a9c16ffa580e0a (patch)
tree8ee44ee5a82ba4007b9403c04901e353586ec198 /chrome/browser/resources/wrench_menu.css
parent3f96c4e4b7254361caccc433be724469438cbc95 (diff)
downloadchromium_src-090bc22fd9703492c5cf2f76a0a9c16ffa580e0a.zip
chromium_src-090bc22fd9703492c5cf2f76a0a9c16ffa580e0a.tar.gz
chromium_src-090bc22fd9703492c5cf2f76a0a9c16ffa580e0a.tar.bz2
Switch WrenchMenu to use domui.
* Add WrenchMenu class that implements zoom/edit commands. * changed toolkit_view to use domui menu. * Add accelerator support. * allow subclass to have its own css. this also addresses comments on * removed clearTimeout * move init code to decorate as much as possible * changed init:config to setter * use 'hidden' rule to hide it, instead of not adding it. * I didn't change addHandler as now target and menuitem does not necessary the same. BUG=6497 TEST= Review URL: http://codereview.chromium.org/3601021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/wrench_menu.css')
-rw-r--r--chrome/browser/resources/wrench_menu.css43
1 files changed, 43 insertions, 0 deletions
diff --git a/chrome/browser/resources/wrench_menu.css b/chrome/browser/resources/wrench_menu.css
new file mode 100644
index 0000000..b696068
--- /dev/null
+++ b/chrome/browser/resources/wrench_menu.css
@@ -0,0 +1,43 @@
+.fullscreen {
+ background-image: url('../../app/theme/fullscreen_menu_button.png');
+ background-position: center center;
+ background-repeat: no-repeat;
+ border: solid 1px rgba(0, 0, 0, 0.3);
+ border-radius: 3px;
+ width: 23px;
+ height: 23px;
+ -webkit-margin-start: 4px;
+}
+
+.edit-button {
+ padding: 2px;
+ text-align: center;
+ min-width: 35px;
+}
+
+.left-button {
+ border: solid 1px rgba(0, 0, 0, 0.3);
+ border-top-left-radius: 3px;
+ border-bottom-left-radius: 3px;
+}
+
+.right-button {
+ border: solid 1px rgba(0, 0, 0, 0.3);
+ border-top-right-radius: 3px;
+ border-bottom-right-radius: 3px;
+}
+
+.center-button {
+ border-top: solid 1px rgba(0, 0, 0, 0.3);
+ border-bottom: solid 1px rgba(0, 0, 0, 0.3);
+}
+
+.zoom-button {
+ text-align: center;
+ width: 15px;
+}
+
+.zoom-percent {
+ min-width: 40px;
+ text-align: center;
+}