summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/location_bar_view.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-29 18:07:40 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-29 18:07:40 +0000
commitb8005ef1c304bcb20442c78077bd8af8d6691f2d (patch)
treed06f9738db7b4dd3893d54a98925d057e8240bdc /chrome/browser/views/location_bar_view.h
parent437cf0eb7842e8db4a5702b4e18a5b865e58042a (diff)
downloadchromium_src-b8005ef1c304bcb20442c78077bd8af8d6691f2d.zip
chromium_src-b8005ef1c304bcb20442c78077bd8af8d6691f2d.tar.gz
chromium_src-b8005ef1c304bcb20442c78077bd8af8d6691f2d.tar.bz2
Clean up some things about LocationBarView:
* PageActionViews can be parent-owned, simplifying things. * Using iterators in some loops could make a few things less verbose. * Misc. other tiny bits like removed extra qualifiers or unneeded blank lines. BUG=none TEST=none Review URL: http://codereview.chromium.org/557053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37520 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/location_bar_view.h')
-rw-r--r--chrome/browser/views/location_bar_view.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/chrome/browser/views/location_bar_view.h b/chrome/browser/views/location_bar_view.h
index cc7fb215..ad168f0 100644
--- a/chrome/browser/views/location_bar_view.h
+++ b/chrome/browser/views/location_bar_view.h
@@ -109,7 +109,7 @@ class LocationBarView : public LocationBar,
void SetPreviewEnabledPageAction(ExtensionAction *page_action,
bool preview_enabled);
- // Retrieves the PageAction View which is associated with |page_action|
+ // Retrieves the PageAction View which is associated with |page_action|.
views::View* GetPageActionView(ExtensionAction* page_action);
// Sizing functions
@@ -126,7 +126,6 @@ class LocationBarView : public LocationBar,
// to close its popup.
virtual void VisibleBoundsInRootChanged();
-
#if defined(OS_WIN)
// Event Handlers
virtual bool OnMousePressed(const views::MouseEvent& event);
@@ -140,9 +139,7 @@ class LocationBarView : public LocationBar,
PageTransition::Type transition,
const GURL& alternate_nav_url);
virtual void OnChanged();
- virtual void OnInputInProgress(bool in_progress) {
- delegate_->OnInputInProgress(in_progress);
- }
+ virtual void OnInputInProgress(bool in_progress);
virtual void OnKillFocus();
virtual void OnSetFocus();
virtual SkBitmap GetFavIcon() const;
@@ -273,7 +270,6 @@ class LocationBarView : public LocationBar,
DISALLOW_COPY_AND_ASSIGN(KeywordHintView);
};
-
class ShowInfoBubbleTask;
class ShowFirstRunBubbleTask;
@@ -348,9 +344,6 @@ class LocationBarView : public LocationBar,
// The warning icon shown when HTTPS is broken.
static SkBitmap* warning_icon_;
- // The currently shown info bubble if any.
- InfoBubble* info_bubble_;
-
// A task used to display the info bubble when the mouse hovers on the
// image.
ShowInfoBubbleTask* show_info_bubble_task_;
@@ -462,6 +455,8 @@ class LocationBarView : public LocationBar,
class PageActionWithBadgeView;
friend class PageActionWithBadgeView;
+ typedef std::vector<PageActionWithBadgeView*> PageActionViews;
+
// Both Layout and OnChanged call into this. This updates the contents
// of the 3 views: selected_keyword, keyword_hint and type_search_view. If
// force_layout is true, or one of these views has changed in such a way as
@@ -580,7 +575,7 @@ class LocationBarView : public LocationBar,
SecurityImageView security_image_view_;
// The page action icon views.
- std::vector<PageActionWithBadgeView*> page_action_views_;
+ PageActionViews page_action_views_;
// A label displayed after the lock icon to show some extra information.
views::Label info_label_;