summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/shared
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-05 00:20:53 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-05 00:20:53 +0000
commit5d6019661a1315570a3ed2b253098ad938f33d16 (patch)
tree5dea4a8a0b0777d5cc50725eb3c854cdd6638322 /chrome/browser/resources/shared
parent30b1ea766019358bc334c6b29d7db8b1b7eb1ffe (diff)
downloadchromium_src-5d6019661a1315570a3ed2b253098ad938f33d16.zip
chromium_src-5d6019661a1315570a3ed2b253098ad938f33d16.tar.gz
chromium_src-5d6019661a1315570a3ed2b253098ad938f33d16.tar.bz2
[tabbed options] use CSS to order confirm/cancel dialog buttons
This adds an action-area class which handles positioning and padding (anchors the action strip to the bottom right), which is basically what the old button-strip did). Now, button-strip just handles ordering of the buttons, and on Windows it is reversed. One usage is to create a div with both button-strip and action-area classes on it, which is convenient if the only thing in the action area is buttons. The other usage is to create an action-area div, and put children in it, one of which is a button-strip. For now, views is [OK] [Cancel] and all others are [Cancel] [Ok]. I'll ping zelidrag and alcor about what we want chromeos to be. BUG=none TEST=manual Review URL: http://codereview.chromium.org/4515001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65149 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/shared')
-rw-r--r--chrome/browser/resources/shared/js/cr.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/resources/shared/js/cr.js b/chrome/browser/resources/shared/js/cr.js
index 25ba498..a470234 100644
--- a/chrome/browser/resources/shared/js/cr.js
+++ b/chrome/browser/resources/shared/js/cr.js
@@ -23,6 +23,12 @@ const cr = (function() {
const isChromeOS = /CrOS/.test(navigator.userAgent);
/**
+ * Whether this uses the views toolkit or not.
+ * @type {boolean}
+ */
+ const isViews = isWindows || isChromeOS;
+
+ /**
* Builds an object structure for the provided namespace path,
* ensuring that names that already exist are not overwritten. For
* example: