| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 // disposition type of the command will be stored in |*disposition| if it's | 736 // disposition type of the command will be stored in |*disposition| if it's |
| 737 // not null. | 737 // not null. |
| 738 int GetLastBlockedCommand(WindowOpenDisposition* disposition); | 738 int GetLastBlockedCommand(WindowOpenDisposition* disposition); |
| 739 | 739 |
| 740 // Called by browser::Navigate() when a navigation has occurred in a tab in | 740 // Called by browser::Navigate() when a navigation has occurred in a tab in |
| 741 // this Browser. Updates the UI for the start of this navigation. | 741 // this Browser. Updates the UI for the start of this navigation. |
| 742 void UpdateUIForNavigationInTab(TabContentsWrapper* contents, | 742 void UpdateUIForNavigationInTab(TabContentsWrapper* contents, |
| 743 content::PageTransition transition, | 743 content::PageTransition transition, |
| 744 bool user_initiated); | 744 bool user_initiated); |
| 745 | 745 |
| 746 // Called by browser::Navigate() to retrieve the home page if no URL is | |
| 747 // specified. | |
| 748 GURL GetHomePage() const; | |
| 749 | |
| 750 // Shows the cookies collected in the tab contents wrapper. | 746 // Shows the cookies collected in the tab contents wrapper. |
| 751 void ShowCollectedCookiesDialog(TabContentsWrapper* wrapper); | 747 void ShowCollectedCookiesDialog(TabContentsWrapper* wrapper); |
| 752 | 748 |
| 753 // Interface implementations //////////////////////////////////////////////// | 749 // Interface implementations //////////////////////////////////////////////// |
| 754 | 750 |
| 755 // Overridden from PageNavigator: | 751 // Overridden from PageNavigator: |
| 756 // Deprecated. Please use the one-argument variant instead. | 752 // Deprecated. Please use the one-argument variant instead. |
| 757 // TODO(adriansc): Remove this method once refactoring changed all call sites. | 753 // TODO(adriansc): Remove this method once refactoring changed all call sites. |
| 758 virtual TabContents* OpenURL(const GURL& url, | 754 virtual TabContents* OpenURL(const GURL& url, |
| 759 const GURL& referrer, | 755 const GURL& referrer, |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1455 | 1451 |
| 1456 MouseLockState mouse_lock_state_; | 1452 MouseLockState mouse_lock_state_; |
| 1457 | 1453 |
| 1458 // True if the browser window has been shown at least once. | 1454 // True if the browser window has been shown at least once. |
| 1459 bool window_has_shown_; | 1455 bool window_has_shown_; |
| 1460 | 1456 |
| 1461 DISALLOW_COPY_AND_ASSIGN(Browser); | 1457 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1462 }; | 1458 }; |
| 1463 | 1459 |
| 1464 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1460 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |