Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 10630013: Adds LocationBarContainer that contains (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed debugging code Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/location_bar/location_bar_view.h
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h
index 9cd3f2ec924b5935918aec97bcfb78b3010d797a..650c183d0d28e4db01ee85870b0ef79c633f9cc4 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
@@ -223,6 +223,10 @@ class LocationBarView : public LocationBar,
const gfx::Font& font() const { return font_; }
+ // See description above field.
+ void set_view_to_focus(views::View* view) { view_to_focus_ = view; }
+ views::View* view_to_focus() { return view_to_focus_; }
+
#if defined(OS_WIN) && !defined(USE_AURA)
// Event Handlers
virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
@@ -476,6 +480,10 @@ class LocationBarView : public LocationBar,
// Used to register for notifications received by NotificationObserver.
content::NotificationRegistrar registrar_;
+ // The view to give focus to. This is either |this| or the
+ // LocationBarContainer.
+ views::View* view_to_focus_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView);
};

Powered by Google App Engine
This is Rietveld 408576698