| 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 823 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 834   // |check_fullscreen| is true, the set of features reflect the actual state of | 834   // |check_fullscreen| is true, the set of features reflect the actual state of | 
| 835   // the browser, otherwise the set of features reflect the possible state of | 835   // the browser, otherwise the set of features reflect the possible state of | 
| 836   // the browser. | 836   // the browser. | 
| 837   bool SupportsWindowFeatureImpl(WindowFeature feature, | 837   bool SupportsWindowFeatureImpl(WindowFeature feature, | 
| 838                                  bool check_fullscreen) const; | 838                                  bool check_fullscreen) const; | 
| 839 | 839 | 
| 840   // Resets |bookmark_bar_state_| based on the active tab. Notifies the | 840   // Resets |bookmark_bar_state_| based on the active tab. Notifies the | 
| 841   // BrowserWindow if necessary. | 841   // BrowserWindow if necessary. | 
| 842   void UpdateBookmarkBarState(BookmarkBarStateChangeReason reason); | 842   void UpdateBookmarkBarState(BookmarkBarStateChangeReason reason); | 
| 843 | 843 | 
|  | 844   // Updates the visibility state of the fullscreen toolbar. | 
|  | 845   void UpdateFullscreenToolbar(); | 
|  | 846 | 
| 844   bool ShouldHideUIForFullscreen() const; | 847   bool ShouldHideUIForFullscreen() const; | 
| 845 | 848 | 
| 846   // Returns true if we can start the shutdown sequence for the browser, i.e. | 849   // Returns true if we can start the shutdown sequence for the browser, i.e. | 
| 847   // the last browser window is being closed. | 850   // the last browser window is being closed. | 
| 848   bool ShouldStartShutdown() const; | 851   bool ShouldStartShutdown() const; | 
| 849 | 852 | 
| 850   // Creates a BackgroundContents if appropriate; return true if one was | 853   // Creates a BackgroundContents if appropriate; return true if one was | 
| 851   // created. | 854   // created. | 
| 852   bool MaybeCreateBackgroundContents( | 855   bool MaybeCreateBackgroundContents( | 
| 853       int32_t route_id, | 856       int32_t route_id, | 
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1005   // The following factory is used for chrome update coalescing. | 1008   // The following factory is used for chrome update coalescing. | 
| 1006   base::WeakPtrFactory<Browser> chrome_updater_factory_; | 1009   base::WeakPtrFactory<Browser> chrome_updater_factory_; | 
| 1007 | 1010 | 
| 1008   // The following factory is used to close the frame at a later time. | 1011   // The following factory is used to close the frame at a later time. | 
| 1009   base::WeakPtrFactory<Browser> weak_factory_; | 1012   base::WeakPtrFactory<Browser> weak_factory_; | 
| 1010 | 1013 | 
| 1011   DISALLOW_COPY_AND_ASSIGN(Browser); | 1014   DISALLOW_COPY_AND_ASSIGN(Browser); | 
| 1012 }; | 1015 }; | 
| 1013 | 1016 | 
| 1014 #endif  // CHROME_BROWSER_UI_BROWSER_H_ | 1017 #endif  // CHROME_BROWSER_UI_BROWSER_H_ | 
| OLD | NEW | 
|---|