| 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 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 virtual Browser* CreateNewStripWithContents( | 798 virtual Browser* CreateNewStripWithContents( |
| 799 TabContentsWrapper* detached_contents, | 799 TabContentsWrapper* detached_contents, |
| 800 const gfx::Rect& window_bounds, | 800 const gfx::Rect& window_bounds, |
| 801 const DockInfo& dock_info, | 801 const DockInfo& dock_info, |
| 802 bool maximize); | 802 bool maximize); |
| 803 virtual int GetDragActions() const; | 803 virtual int GetDragActions() const; |
| 804 // Construct a TabContents for a given URL, profile and transition type. | 804 // Construct a TabContents for a given URL, profile and transition type. |
| 805 // If instance is not null, its process will be used to render the tab. | 805 // If instance is not null, its process will be used to render the tab. |
| 806 virtual TabContentsWrapper* CreateTabContentsForURL( | 806 virtual TabContentsWrapper* CreateTabContentsForURL( |
| 807 const GURL& url, | 807 const GURL& url, |
| 808 const GURL& referrer, | 808 const content::Referrer& referrer, |
| 809 Profile* profile, | 809 Profile* profile, |
| 810 content::PageTransition transition, | 810 content::PageTransition transition, |
| 811 bool defer_load, | 811 bool defer_load, |
| 812 SiteInstance* instance) const; | 812 SiteInstance* instance) const; |
| 813 virtual bool CanDuplicateContentsAt(int index); | 813 virtual bool CanDuplicateContentsAt(int index); |
| 814 virtual void DuplicateContentsAt(int index); | 814 virtual void DuplicateContentsAt(int index); |
| 815 virtual void CloseFrameAfterDragSession(); | 815 virtual void CloseFrameAfterDragSession(); |
| 816 virtual void CreateHistoricalTab(TabContentsWrapper* contents); | 816 virtual void CreateHistoricalTab(TabContentsWrapper* contents); |
| 817 virtual bool RunUnloadListenerBeforeClosing(TabContentsWrapper* contents); | 817 virtual bool RunUnloadListenerBeforeClosing(TabContentsWrapper* contents); |
| 818 virtual bool CanCloseContents(std::vector<int>* indices); | 818 virtual bool CanCloseContents(std::vector<int>* indices); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 BOOKMARK_BAR_STATE_CHANGE_PREF_CHANGE, | 917 BOOKMARK_BAR_STATE_CHANGE_PREF_CHANGE, |
| 918 | 918 |
| 919 // Change is the result of a state change in the active tab. | 919 // Change is the result of a state change in the active tab. |
| 920 BOOKMARK_BAR_STATE_CHANGE_TAB_STATE, | 920 BOOKMARK_BAR_STATE_CHANGE_TAB_STATE, |
| 921 | 921 |
| 922 // Change is the result of window toggling in/out of fullscreen mode. | 922 // Change is the result of window toggling in/out of fullscreen mode. |
| 923 BOOKMARK_BAR_STATE_CHANGE_TOGGLE_FULLSCREEN, | 923 BOOKMARK_BAR_STATE_CHANGE_TOGGLE_FULLSCREEN, |
| 924 }; | 924 }; |
| 925 | 925 |
| 926 // Overridden from TabContentsDelegate: | 926 // Overridden from TabContentsDelegate: |
| 927 // Deprecated. Please use two-argument variant. | |
| 928 // TODO(adriansc): Remove this method once refactoring changed all call sites. | |
| 929 virtual TabContents* OpenURLFromTab( | |
| 930 TabContents* source, | |
| 931 const GURL& url, | |
| 932 const GURL& referrer, | |
| 933 WindowOpenDisposition disposition, | |
| 934 content::PageTransition transition) OVERRIDE; | |
| 935 virtual TabContents* OpenURLFromTab(TabContents* source, | 927 virtual TabContents* OpenURLFromTab(TabContents* source, |
| 936 const OpenURLParams& params) OVERRIDE; | 928 const OpenURLParams& params) OVERRIDE; |
| 937 virtual void NavigationStateChanged(const TabContents* source, | 929 virtual void NavigationStateChanged(const TabContents* source, |
| 938 unsigned changed_flags) OVERRIDE; | 930 unsigned changed_flags) OVERRIDE; |
| 939 virtual void AddNewContents(TabContents* source, | 931 virtual void AddNewContents(TabContents* source, |
| 940 TabContents* new_contents, | 932 TabContents* new_contents, |
| 941 WindowOpenDisposition disposition, | 933 WindowOpenDisposition disposition, |
| 942 const gfx::Rect& initial_pos, | 934 const gfx::Rect& initial_pos, |
| 943 bool user_gesture) OVERRIDE; | 935 bool user_gesture) OVERRIDE; |
| 944 virtual void ActivateContents(TabContents* contents) OVERRIDE; | 936 virtual void ActivateContents(TabContents* contents) OVERRIDE; |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 | 1428 |
| 1437 scoped_refptr<FullscreenController> fullscreen_controller_; | 1429 scoped_refptr<FullscreenController> fullscreen_controller_; |
| 1438 | 1430 |
| 1439 // True if the browser window has been shown at least once. | 1431 // True if the browser window has been shown at least once. |
| 1440 bool window_has_shown_; | 1432 bool window_has_shown_; |
| 1441 | 1433 |
| 1442 DISALLOW_COPY_AND_ASSIGN(Browser); | 1434 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1443 }; | 1435 }; |
| 1444 | 1436 |
| 1445 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1437 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |