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

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: Remove set_view_to_focus 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 1f25de48eb7be5782a1bfb92495941bc60f5e084..45a3bf9d449920c618f244f74d87ef847df92408 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
@@ -225,6 +225,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;
@@ -478,6 +482,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