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/gtk/find_bar_gtk.cc | |
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/gtk/find_bar_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/find_bar_gtk.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/gtk/find_bar_gtk.cc b/chrome/browser/gtk/find_bar_gtk.cc index e3ddeb8..a26b0cf 100644 --- a/chrome/browser/gtk/find_bar_gtk.cc +++ b/chrome/browser/gtk/find_bar_gtk.cc @@ -298,12 +298,16 @@ void FindBarGtk::InitWidgets() { gtk_widget_show(widget()); } -void FindBarGtk::Show() { - slide_widget_->Open(); - selection_rect = gfx::Rect(); - Reposition(); - if (container_->window) - gdk_window_raise(container_->window); +void FindBarGtk::Show(bool animate) { + if (animate) { + slide_widget_->Open(); + selection_rect = gfx::Rect(); + Reposition(); + if (container_->window) + gdk_window_raise(container_->window); + } else { + slide_widget_->OpenWithoutAnimation(); + } } void FindBarGtk::Hide(bool animate) { @@ -408,10 +412,6 @@ gfx::Rect FindBarGtk::GetDialogPosition(gfx::Rect avoid_overlapping_rect) { return new_pos; } -void FindBarGtk::SetDialogPosition(const gfx::Rect& new_pos, bool no_redraw) { - slide_widget_->OpenWithoutAnimation(); -} - bool FindBarGtk::IsFindBarVisible() { return GTK_WIDGET_VISIBLE(widget()); } |