Index: chrome/browser/ui/views/location_bar/location_bar_view.h |
=================================================================== |
--- chrome/browser/ui/views/location_bar/location_bar_view.h (revision 89828) |
+++ chrome/browser/ui/views/location_bar/location_bar_view.h (working copy) |
@@ -329,6 +329,14 @@ |
// Returns true if the suggest text is valid. |
bool HasValidSuggestText() const; |
+ |
+ // Returns |location_entry_| cast to OmniboxViewWin, or NULL if |
+ // |location_entry_| is of a different type. |
+ OmniboxViewWin* GetOmniboxViewWin(); |
+ |
+ // Returns true if the views-based omnibox should be used. When false, |
+ // |location_entry_| can be cast to OmniboxViewWin. |
+ static bool UseViewsOmnibox(); |
#endif |
// Helper to show the first run info bubble. |
@@ -339,7 +347,7 @@ |
// The Autocomplete Edit field. |
#if defined(OS_WIN) |
oshima
2011/06/21 22:36:07
we can get rid of if/def?
|
- scoped_ptr<OmniboxViewWin> location_entry_; |
+ scoped_ptr<OmniboxView> location_entry_; |
#else |
scoped_ptr<OmniboxView> location_entry_; |
#endif |