diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-08 18:35:54 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-08 18:35:54 +0000 |
commit | fb6de399a7eead8338e4f49920feed47d122fec3 (patch) | |
tree | ce27a7a6d26e6e71709f5a58a4b5f00d39f80df9 /chrome/browser/find_bar.h | |
parent | f2f0a0b643f0edac8b346d2d53957d2a239699d0 (diff) | |
download | chromium_src-fb6de399a7eead8338e4f49920feed47d122fec3.zip chromium_src-fb6de399a7eead8338e4f49920feed47d122fec3.tar.gz chromium_src-fb6de399a7eead8338e4f49920feed47d122fec3.tar.bz2 |
Simplified the api by replacing them with single Show(false) call and cleaned up linux/mac code.
BUG=22036
TEST=None
Review URL: http://codereview.chromium.org/523125
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/find_bar.h')
-rw-r--r-- | chrome/browser/find_bar.h | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/chrome/browser/find_bar.h b/chrome/browser/find_bar.h index 6fcd5d1..a593e71 100644 --- a/chrome/browser/find_bar.h +++ b/chrome/browser/find_bar.h @@ -27,7 +27,8 @@ class FindBar { FindBarController* find_bar_controller) = 0; // Shows the find bar. Any previous search string will again be visible. - virtual void Show() = 0; + // If |animate| is true, we try to slide the find bar in. + virtual void Show(bool animate) = 0; // Hide the find bar. If |animate| is true, we try to slide the find bar // away. @@ -63,26 +64,6 @@ class FindBar { // No match was found; play an audible alert. virtual void AudibleAlert() = 0; - // Returns the rectangle representing where to position the find bar. It uses - // GetDialogBounds and positions itself within that, either to the left (if an - // InfoBar is present) or to the right (no InfoBar). If - // |avoid_overlapping_rect| is specified, the return value will be a rectangle - // located immediately to the left of |avoid_overlapping_rect|, as long as - // there is enough room for the dialog to draw within the bounds. If not, the - // dialog position returned will overlap |avoid_overlapping_rect|. - // Note: |avoid_overlapping_rect| is expected to use coordinates relative to - // the top of the page area, (it will be converted to coordinates relative to - // the top of the browser window, when comparing against the dialog - // coordinates). The returned value is relative to the browser window. - virtual gfx::Rect GetDialogPosition(gfx::Rect avoid_overlapping_rect) = 0; - - // Moves the dialog window to the provided location, moves it to top in the - // z-order (HWND_TOP, not HWND_TOPMOST) and shows the window (if hidden). - // It then calls UpdateWindowEdges to make sure we don't overwrite the Chrome - // window border. If |no_redraw| is set, the window is getting moved but not - // sized, and should not be redrawn to reduce update flicker. - virtual void SetDialogPosition(const gfx::Rect& new_pos, bool no_redraw) = 0; - virtual bool IsFindBarVisible() = 0; // Upon dismissing the window, restore focus to the last focused view which is |