summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_window.h
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/browser_window.h
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/browser_window.h')
-rw-r--r--chrome/browser/browser_window.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/chrome/browser/browser_window.h b/chrome/browser/browser_window.h
index b6b6e12..50d3dda 100644
--- a/chrome/browser/browser_window.h
+++ b/chrome/browser/browser_window.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -10,6 +10,7 @@
class Browser;
class BrowserList;
class BrowserWindowTesting;
+class FindBar;
class GURL;
class LocationBar;
class HtmlDialogUIDelegate;
@@ -132,9 +133,6 @@ class BrowserWindow {
// Shows or hides the bookmark bar depending on its current visibility.
virtual void ToggleBookmarkBar() = 0;
- // Shows the Find Bar.
- virtual void ShowFindBar() = 0;
-
// Shows the About Chrome dialog box.
virtual void ShowAboutChromeDialog() = 0;
@@ -175,6 +173,9 @@ class BrowserWindow {
// Construct a BrowserWindow implementation for the specified |browser|.
static BrowserWindow* CreateBrowserWindow(Browser* browser);
+ // Construct a FindBar implementation for the specified |browser|.
+ static FindBar* CreateFindBar(Browser* browser_window);
+
protected:
friend class BrowserList;
friend class BrowserView;
@@ -194,15 +195,6 @@ class BrowserWindowTesting {
// Returns the LocationBarView.
virtual LocationBarView* GetLocationBarView() const = 0;
-
- // Computes the location of the find bar and whether it is fully visible in
- // its parent window. The return value indicates if the window is visible at
- // all. Both out arguments are required.
- //
- // This is used for UI tests of the find bar. If the find bar is not currently
- // shown (return value of false), the out params will be {(0, 0), false}.
- virtual bool GetFindBarWindowInfo(gfx::Point* position,
- bool* fully_visible) const = 0;
#endif
};