| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_H_ |
| 6 #define CHROME_BROWSER_BROWSER_H_ | 6 #define CHROME_BROWSER_BROWSER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 void set_window(BrowserWindow* window) { | 129 void set_window(BrowserWindow* window) { |
| 130 DCHECK(!window_); | 130 DCHECK(!window_); |
| 131 window_ = window; | 131 window_ = window; |
| 132 } | 132 } |
| 133 #endif | 133 #endif |
| 134 | 134 |
| 135 BrowserWindow* window() const { return window_; } | 135 BrowserWindow* window() const { return window_; } |
| 136 ToolbarModel* toolbar_model() { return &toolbar_model_; } | 136 ToolbarModel* toolbar_model() { return &toolbar_model_; } |
| 137 const SessionID& session_id() const { return session_id_; } | 137 const SessionID& session_id() const { return session_id_; } |
| 138 CommandUpdater* command_updater() { return &command_updater_; } | 138 CommandUpdater* command_updater() { return &command_updater_; } |
| 139 FindBarController* find_bar() { return find_bar_controller_.get(); } | |
| 140 FindBarController* GetFindBarController(); | |
| 141 ExtensionShelfModel* extension_shelf_model() { | 139 ExtensionShelfModel* extension_shelf_model() { |
| 142 return extension_shelf_model_.get(); | 140 return extension_shelf_model_.get(); |
| 143 } | 141 } |
| 144 | 142 |
| 143 // Get the FindBarController for this browser, creating it if it does not |
| 144 // yet exist. |
| 145 FindBarController* GetFindBarController(); |
| 146 |
| 147 // Returns true if a FindBarController exists for this browser. |
| 148 bool HasFindBarController() const; |
| 149 |
| 145 // Setters ///////////////////////////////////////////////////////////////// | 150 // Setters ///////////////////////////////////////////////////////////////// |
| 146 | 151 |
| 147 void set_user_data_dir_profiles(const std::vector<std::wstring>& profiles); | 152 void set_user_data_dir_profiles(const std::vector<std::wstring>& profiles); |
| 148 | 153 |
| 149 // Browser Creation Helpers ///////////////////////////////////////////////// | 154 // Browser Creation Helpers ///////////////////////////////////////////////// |
| 150 | 155 |
| 151 // Opens a new window with the default blank tab. | 156 // Opens a new window with the default blank tab. |
| 152 static void OpenEmptyWindow(Profile* profile); | 157 static void OpenEmptyWindow(Profile* profile); |
| 153 | 158 |
| 154 // Opens a new window with the tabs from |profile|'s TabRestoreService. | 159 // Opens a new window with the tabs from |profile|'s TabRestoreService. |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 // Dialog box used for opening and saving files. | 815 // Dialog box used for opening and saving files. |
| 811 scoped_refptr<SelectFileDialog> select_file_dialog_; | 816 scoped_refptr<SelectFileDialog> select_file_dialog_; |
| 812 | 817 |
| 813 // Keep track of the encoding auto detect pref. | 818 // Keep track of the encoding auto detect pref. |
| 814 BooleanPrefMember encoding_auto_detect_; | 819 BooleanPrefMember encoding_auto_detect_; |
| 815 | 820 |
| 816 DISALLOW_COPY_AND_ASSIGN(Browser); | 821 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 817 }; | 822 }; |
| 818 | 823 |
| 819 #endif // CHROME_BROWSER_BROWSER_H_ | 824 #endif // CHROME_BROWSER_BROWSER_H_ |
| OLD | NEW |