From 4801ecc5ce684ec8556769cb173506b4645c618b Mon Sep 17 00:00:00 2001 From: "finnur@chromium.org" Date: Sun, 5 Apr 2009 04:52:58 +0000 Subject: Moving the Find bar ownership to the Browser object for portability and testability purposes.BUG=None.TEST=No new functionality, just moving stuff around and as such it is covered by pre-existing tests. Review URL: http://codereview.chromium.org/60105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13134 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/find_bar_gtk.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'chrome/browser/gtk/find_bar_gtk.cc') diff --git a/chrome/browser/gtk/find_bar_gtk.cc b/chrome/browser/gtk/find_bar_gtk.cc index 2fdc9f85..6ad363d 100644 --- a/chrome/browser/gtk/find_bar_gtk.cc +++ b/chrome/browser/gtk/find_bar_gtk.cc @@ -129,6 +129,11 @@ void FindBarGtk::StopAnimation() { // No animation yet, so do nothing. } +void FindBarGtk::MoveWindowIfNecessary(const gfx::Rect& selection_rect, + bool no_redraw) { + // Not moving the window on demand, so do nothing. +} + void FindBarGtk::SetFindText(const string16& find_text) { std::string find_text_utf8 = UTF16ToUTF8(find_text); gtk_entry_set_text(GTK_ENTRY(find_text_), find_text_utf8.c_str()); @@ -152,6 +157,16 @@ bool FindBarGtk::IsFindBarVisible() { void FindBarGtk::RestoreSavedFocus() { } +FindBarTesting* FindBarGtk::GetFindBarTesting() { + return this; +} + +bool FindBarGtk::GetFindBarWindowInfo(gfx::Point* position, + bool* fully_visible) { + NOTIMPLEMENTED(); + return false; +} + void FindBarGtk::ContentsChanged() { WebContents* web_contents = find_bar_controller_->web_contents(); if (!web_contents) -- cgit v1.1