| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 166 |
| 167 // Gets the FavIcon of the page in the selected tab. | 167 // Gets the FavIcon of the page in the selected tab. |
| 168 SkBitmap GetCurrentPageIcon() const; | 168 SkBitmap GetCurrentPageIcon() const; |
| 169 | 169 |
| 170 // Gets the title of the page in the selected tab. | 170 // Gets the title of the page in the selected tab. |
| 171 std::wstring GetCurrentPageTitle() const; | 171 std::wstring GetCurrentPageTitle() const; |
| 172 | 172 |
| 173 // Prepares a title string for display (removes embedded newlines, etc). | 173 // Prepares a title string for display (removes embedded newlines, etc). |
| 174 static void FormatTitleForDisplay(std::wstring* title); | 174 static void FormatTitleForDisplay(std::wstring* title); |
| 175 | 175 |
| 176 // Returns true if the frame should show a distributor logo for this Browser. |
| 177 bool ShouldShowDistributorLogo() const; |
| 178 |
| 176 // OnBeforeUnload handling ////////////////////////////////////////////////// | 179 // OnBeforeUnload handling ////////////////////////////////////////////////// |
| 177 | 180 |
| 178 // Gives beforeunload handlers the chance to cancel the close. | 181 // Gives beforeunload handlers the chance to cancel the close. |
| 179 bool ShouldCloseWindow(); | 182 bool ShouldCloseWindow(); |
| 180 | 183 |
| 181 // Invoked when the window containing us is closing. Performs the necessary | 184 // Invoked when the window containing us is closing. Performs the necessary |
| 182 // cleanup. | 185 // cleanup. |
| 183 void OnWindowClosing(); | 186 void OnWindowClosing(); |
| 184 | 187 |
| 185 // TabStripModel pass-thrus ///////////////////////////////////////////////// | 188 // TabStripModel pass-thrus ///////////////////////////////////////////////// |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 // The browser idle task helps cleanup unused memory resources when idle. | 691 // The browser idle task helps cleanup unused memory resources when idle. |
| 689 scoped_ptr<BrowserIdleTimer> idle_task_; | 692 scoped_ptr<BrowserIdleTimer> idle_task_; |
| 690 | 693 |
| 691 // Keep track of the encoding auto detect pref. | 694 // Keep track of the encoding auto detect pref. |
| 692 BooleanPrefMember encoding_auto_detect_; | 695 BooleanPrefMember encoding_auto_detect_; |
| 693 | 696 |
| 694 DISALLOW_COPY_AND_ASSIGN(Browser); | 697 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 695 }; | 698 }; |
| 696 | 699 |
| 697 #endif // CHROME_BROWSER_BROWSER_H_ | 700 #endif // CHROME_BROWSER_BROWSER_H_ |
| OLD | NEW |