summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.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.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.h')
-rw-r--r--chrome/browser/browser.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h
index 48fceca..89fb4ef 100644
--- a/chrome/browser/browser.h
+++ b/chrome/browser/browser.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.
@@ -37,6 +37,7 @@
class BrowserIdleTimer;
class BrowserWindow;
class DebuggerWindow;
+class FindBarController;
class GoButton;
class LocationBar;
class PrefService;
@@ -133,6 +134,7 @@ class Browser : public TabStripModelDelegate,
ToolbarModel* toolbar_model() { return &toolbar_model_; }
const SessionID& session_id() const { return session_id_; }
CommandUpdater* command_updater() { return &command_updater_; }
+ FindBarController* find_bar() { return find_bar_controller_.get(); }
// Setters /////////////////////////////////////////////////////////////////
@@ -277,6 +279,7 @@ class Browser : public TabStripModelDelegate,
void BookmarkCurrentPage();
void SavePage();
void ViewSource();
+ void ShowFindBar();
// Returns true if the Browser supports the specified feature.
bool SupportsWindowFeature(WindowFeature feature) const;
@@ -667,6 +670,10 @@ class Browser : public TabStripModelDelegate,
// The following factory is used to close the frame at a later time.
ScopedRunnableMethodFactory<Browser> method_factory_;
+ // The Find Bar. This may be NULL if there is no Find Bar, and if it is
+ // non-NULL, it may or may not be visible.
+ scoped_ptr<FindBarController> find_bar_controller_;
+
// Debugger Window, created lazily
scoped_refptr<DebuggerWindow> debugger_window_;