| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 int index); | 703 int index); |
| 704 virtual void TabPinnedStateChanged(TabContentsWrapper* contents, int index); | 704 virtual void TabPinnedStateChanged(TabContentsWrapper* contents, int index); |
| 705 virtual void TabStripEmpty(); | 705 virtual void TabStripEmpty(); |
| 706 | 706 |
| 707 // Figure out if there are tabs that have beforeunload handlers. | 707 // Figure out if there are tabs that have beforeunload handlers. |
| 708 bool TabsNeedBeforeUnloadFired(); | 708 bool TabsNeedBeforeUnloadFired(); |
| 709 | 709 |
| 710 private: | 710 private: |
| 711 FRIEND_TEST_ALL_PREFIXES(BrowserTest, NoTabsInPopups); | 711 FRIEND_TEST_ALL_PREFIXES(BrowserTest, NoTabsInPopups); |
| 712 FRIEND_TEST_ALL_PREFIXES(BrowserTest, ConvertTabToAppShortcut); | 712 FRIEND_TEST_ALL_PREFIXES(BrowserTest, ConvertTabToAppShortcut); |
| 713 FRIEND_TEST_ALL_PREFIXES(BrowserTest, OpenAppWindowLikeNtp); |
| 714 FRIEND_TEST_ALL_PREFIXES(BrowserTest, AppIdSwitch); |
| 713 | 715 |
| 714 // Used to describe why a tab is being detached. This is used by | 716 // Used to describe why a tab is being detached. This is used by |
| 715 // TabDetachedAtImpl. | 717 // TabDetachedAtImpl. |
| 716 enum DetachType { | 718 enum DetachType { |
| 717 // Result of TabDetachedAt. | 719 // Result of TabDetachedAt. |
| 718 DETACH_TYPE_DETACH, | 720 DETACH_TYPE_DETACH, |
| 719 | 721 |
| 720 // Result of TabReplacedAt. | 722 // Result of TabReplacedAt. |
| 721 DETACH_TYPE_REPLACE, | 723 DETACH_TYPE_REPLACE, |
| 722 | 724 |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 // and we install ourselves as an observer. | 1128 // and we install ourselves as an observer. |
| 1127 TabRestoreService* tab_restore_service_; | 1129 TabRestoreService* tab_restore_service_; |
| 1128 | 1130 |
| 1129 scoped_ptr<InstantController> instant_; | 1131 scoped_ptr<InstantController> instant_; |
| 1130 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; | 1132 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; |
| 1131 | 1133 |
| 1132 DISALLOW_COPY_AND_ASSIGN(Browser); | 1134 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1133 }; | 1135 }; |
| 1134 | 1136 |
| 1135 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1137 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |