summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/find_bar_gtk.cc
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-05 04:52:58 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-05 04:52:58 +0000
commit4801ecc5ce684ec8556769cb173506b4645c618b (patch)
tree526495f64269f04390ff3ef7f313513495fc36e9 /chrome/browser/gtk/find_bar_gtk.cc
parent19e7dbd299d4b4281ade12550870b0cb15f0193d (diff)
downloadchromium_src-4801ecc5ce684ec8556769cb173506b4645c618b.zip
chromium_src-4801ecc5ce684ec8556769cb173506b4645c618b.tar.gz
chromium_src-4801ecc5ce684ec8556769cb173506b4645c618b.tar.bz2
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
Diffstat (limited to 'chrome/browser/gtk/find_bar_gtk.cc')
-rw-r--r--chrome/browser/gtk/find_bar_gtk.cc15
1 files changed, 15 insertions, 0 deletions
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)