summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/location_bar_view.h
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 03:39:30 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 03:39:30 +0000
commit90791cb7bac6fd9ddfaf933bad3f9b5e13625db5 (patch)
tree9f026e4f71243a2e9b0f2a365ee66763560a2511 /chrome/browser/views/location_bar_view.h
parent56141dede4a2c075baa968e24861ce6a3954f194 (diff)
downloadchromium_src-90791cb7bac6fd9ddfaf933bad3f9b5e13625db5.zip
chromium_src-90791cb7bac6fd9ddfaf933bad3f9b5e13625db5.tar.gz
chromium_src-90791cb7bac6fd9ddfaf933bad3f9b5e13625db5.tar.bz2
Revert change 8693 because it breaks the unit_tests.
TBR Review URL: http://codereview.chromium.org/19009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8704 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/location_bar_view.h')
-rw-r--r--chrome/browser/views/location_bar_view.h33
1 files changed, 19 insertions, 14 deletions
diff --git a/chrome/browser/views/location_bar_view.h b/chrome/browser/views/location_bar_view.h
index ec01c63..eb3b4ef 100644
--- a/chrome/browser/views/location_bar_view.h
+++ b/chrome/browser/views/location_bar_view.h
@@ -9,7 +9,6 @@
#include "base/gfx/rect.h"
#include "chrome/browser/autocomplete/autocomplete_edit.h"
-#include "chrome/browser/location_bar.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/toolbar_model.h"
#include "chrome/browser/views/info_bubble.h"
@@ -31,10 +30,10 @@ class Profile;
// of the URL bar strip and contains its content.
//
/////////////////////////////////////////////////////////////////////////////
-class LocationBarView : public LocationBar,
- public views::View,
+class LocationBarView : public views::View,
public AutocompleteEditController {
public:
+
class Delegate {
public:
// Should return the current tab contents.
@@ -108,18 +107,24 @@ class LocationBarView : public LocationBar,
return location_entry_.get();
}
- // Overridden from views::View:
- virtual bool OverrideAccelerator(const views::Accelerator& accelerator);
+ std::wstring location_input() {
+ return location_input_;
+ }
+
+ WindowOpenDisposition disposition() {
+ return disposition_;
+ }
- // Overridden from LocationBar:
- virtual void ShowFirstRunBubble();
- virtual std::wstring GetInputString() const;
- virtual WindowOpenDisposition GetWindowOpenDisposition() const;
- virtual PageTransition::Type GetPageTransition() const;
- virtual void AcceptInput();
- virtual void FocusLocation();
- virtual void FocusSearch();
- virtual void SaveStateToContents(TabContents* contents);
+ PageTransition::Type transition() {
+ return transition_;
+ }
+
+ // Shows a info bubble that tells the user what the omnibox is and allows
+ // to change the search providers.
+ void ShowFirstRunBubble();
+
+ // Overridden from View.
+ virtual bool OverrideAccelerator(const views::Accelerator& accelerator);
static const int kTextVertMargin;
static const COLORREF kBackgroundColorByLevel[];