summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-03 01:17:26 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-03 01:17:26 +0000
commit44ec9b3b965335d661a144e11894da3cea999bf3 (patch)
tree549ce1740dda62e2014a75a7f3a6cff430dde45e /chrome/browser/extensions
parent993e6ea820a8b71c8f7767822de3b66bd2bb3c6f (diff)
downloadchromium_src-44ec9b3b965335d661a144e11894da3cea999bf3.zip
chromium_src-44ec9b3b965335d661a144e11894da3cea999bf3.tar.gz
chromium_src-44ec9b3b965335d661a144e11894da3cea999bf3.tar.bz2
Support reordering of Browser Actions within the container. Currently does not support dragging to/from the chevron menu.
Also fixed two bugs in the same code: - the container would be 0 width if a value for it hasn't been saved (part of bug 32101). - the default icon was not used when a tab specific icon was not found (bug 34317). BUG=http://crbug.com/26990, http://crbug.com/32101, http://crbug.com/34317 TEST=In both LTR and RTL locale, try reordering the browser actions and make sure to test dragging to the ends with and without a chevron visible. Install Send to Gmail extension and make sure it has an icon while in the overflow menu. Review URL: http://codereview.chromium.org/549224 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37922 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r--chrome/browser/extensions/extension_toolbar_model.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_toolbar_model.h b/chrome/browser/extensions/extension_toolbar_model.h
index 5b6a8a4..3889f3d 100644
--- a/chrome/browser/extensions/extension_toolbar_model.h
+++ b/chrome/browser/extensions/extension_toolbar_model.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -38,6 +38,10 @@ class ExtensionToolbarModel : public NotificationObserver {
void RemoveObserver(Observer* observer);
void MoveBrowserAction(Extension* extension, int index);
+ size_t size() const {
+ return toolitems_.size();
+ }
+
ExtensionList::iterator begin() {
return toolitems_.begin();
}