summaryrefslogtreecommitdiffstats
path: root/base/scoped_vector.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-16 23:45:38 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-16 23:45:38 +0000
commit3263b45534a37c63cbc6d43506cf8cd9bb30bbef (patch)
tree08e2c955f659f9e518847b7e80e439c9f7a27ba0 /base/scoped_vector.h
parent7803a0551ee242b5da6f646f1165276e13514818 (diff)
downloadchromium_src-3263b45534a37c63cbc6d43506cf8cd9bb30bbef.zip
chromium_src-3263b45534a37c63cbc6d43506cf8cd9bb30bbef.tar.gz
chromium_src-3263b45534a37c63cbc6d43506cf8cd9bb30bbef.tar.bz2
Mac: Content blocked icons.
Also rewrite how omnibox icons are handled, to make it less repetitive to add the content blocked icons. Remove a O(n^2) while I'm at it. BUG=35594,34894 TEST=Go to a page with popups. "popups blocked" icon should appear in omnibox. It should have a tooltip, and a normal arrow cursor on mouse over. Switching tabs should make it go away, coming back to the tab with the blocked popup should make it go back. Page actions should still work (tooltips, clicking, context menu, display). Security icon should still work. Install rss extension; the preview bubble should point to the right icon. http://imgur.com/Yo0Ss Review URL: http://codereview.chromium.org/600133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39158 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/scoped_vector.h')
-rw-r--r--base/scoped_vector.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/base/scoped_vector.h b/base/scoped_vector.h
index 0c7449d..c007ce4 100644
--- a/base/scoped_vector.h
+++ b/base/scoped_vector.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 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.
@@ -17,6 +17,9 @@ class ScopedVector {
public:
typedef typename std::vector<T*>::iterator iterator;
typedef typename std::vector<T*>::const_iterator const_iterator;
+ typedef typename std::vector<T*>::reverse_iterator reverse_iterator;
+ typedef typename std::vector<T*>::const_reverse_iterator
+ const_reverse_iterator;
ScopedVector() {}
~ScopedVector() { reset(); }
@@ -29,6 +32,11 @@ class ScopedVector {
bool empty() const { return v.empty(); }
size_t size() const { return v.size(); }
+ reverse_iterator rbegin() { return v.rbegin(); }
+ const_reverse_iterator rbegin() const { return v.rbegin(); }
+ reverse_iterator rend() { return v.rend(); }
+ const_reverse_iterator rend() const { return v.rend(); }
+
iterator begin() { return v.begin(); }
const_iterator begin() const { return v.begin(); }
iterator end() { return v.end(); }