| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 // Closes the frame. | 813 // Closes the frame. |
| 814 // TODO(beng): figure out if we need this now that the frame itself closes | 814 // TODO(beng): figure out if we need this now that the frame itself closes |
| 815 // after a return to the message loop. | 815 // after a return to the message loop. |
| 816 void CloseFrame(); | 816 void CloseFrame(); |
| 817 | 817 |
| 818 void TabDetachedAtImpl(content::WebContents* contents, | 818 void TabDetachedAtImpl(content::WebContents* contents, |
| 819 int index, | 819 int index, |
| 820 DetachType type); | 820 DetachType type); |
| 821 | 821 |
| 822 // Shared code between Reload() and ReloadBypassingCache(). | 822 // Shared code between Reload() and ReloadBypassingCache(). |
| 823 void ReloadInternal(WindowOpenDisposition disposition, bool ignore_cache); | 823 void ReloadInternal(WindowOpenDisposition disposition, bool bypass_cache); |
| 824 | 824 |
| 825 // Returns true if the Browser window supports a location bar. Having support | 825 // Returns true if the Browser window supports a location bar. Having support |
| 826 // for the location bar does not mean it will be visible. | 826 // for the location bar does not mean it will be visible. |
| 827 bool SupportsLocationBar() const; | 827 bool SupportsLocationBar() const; |
| 828 | 828 |
| 829 // Returns true if the Browser window should show the location bar. | 829 // Returns true if the Browser window should show the location bar. |
| 830 bool ShouldShowLocationBar() const; | 830 bool ShouldShowLocationBar() const; |
| 831 | 831 |
| 832 // Returns true if the Browser window should use a web app style frame. | 832 // Returns true if the Browser window should use a web app style frame. |
| 833 bool ShouldUseWebAppFrame() const; | 833 bool ShouldUseWebAppFrame() const; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 // The following factory is used for chrome update coalescing. | 1007 // The following factory is used for chrome update coalescing. |
| 1008 base::WeakPtrFactory<Browser> chrome_updater_factory_; | 1008 base::WeakPtrFactory<Browser> chrome_updater_factory_; |
| 1009 | 1009 |
| 1010 // The following factory is used to close the frame at a later time. | 1010 // The following factory is used to close the frame at a later time. |
| 1011 base::WeakPtrFactory<Browser> weak_factory_; | 1011 base::WeakPtrFactory<Browser> weak_factory_; |
| 1012 | 1012 |
| 1013 DISALLOW_COPY_AND_ASSIGN(Browser); | 1013 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1014 }; | 1014 }; |
| 1015 | 1015 |
| 1016 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1016 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |