diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-03 01:15:07 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-03 01:15:07 +0000 |
commit | 0a49fa28ef184ad40c406368d23c8079a34cd251 (patch) | |
tree | 3ae88562d1a4bd0d455e09253e753e30a26d606b /chrome/browser/views/dropdown_bar_host.h | |
parent | c026b2dae325caa4a61029fdd7101f2799095815 (diff) | |
download | chromium_src-0a49fa28ef184ad40c406368d23c8079a34cd251.zip chromium_src-0a49fa28ef184ad40c406368d23c8079a34cd251.tar.gz chromium_src-0a49fa28ef184ad40c406368d23c8079a34cd251.tar.bz2 |
Hide compact location bar when a content area is clicked,
instead of when losing focus.
BUG=chromium-os:1264
TEST=manual. switch to compact nav bar mode, move mouse over to a tab to show
a compact location bar, and copy the text in the text field.
Review URL: http://codereview.chromium.org/568014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37920 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/dropdown_bar_host.h')
-rw-r--r-- | chrome/browser/views/dropdown_bar_host.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/views/dropdown_bar_host.h b/chrome/browser/views/dropdown_bar_host.h index 58dcc17..04e0c51 100644 --- a/chrome/browser/views/dropdown_bar_host.h +++ b/chrome/browser/views/dropdown_bar_host.h @@ -48,15 +48,16 @@ class DropdownBarHost : public views::AcceleratorTarget, bool IsAnimating() const; // Returns true if the dropdown bar view is visible, or false otherwise. bool IsVisible() const; - // Shows the dropdown bar. - void Show(bool animate); - // Hides the dropdown bar. - void Hide(bool animate); // Selects text in the entry field and set focus. void SetFocusAndSelection(); // Stops the animation. void StopAnimation(); + // Shows the dropdown bar. + virtual void Show(bool animate); + // Hides the dropdown bar. + virtual void Hide(bool animate); + // Returns the rectangle representing where to position the dropdown widget. virtual gfx::Rect GetDialogPosition(gfx::Rect avoid_overlapping_rect) = 0; |