| 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 // this varies during the lifetime of the browser. For example, if the window | 380 // this varies during the lifetime of the browser. For example, if the window |
| 381 // is fullscreen this may return a different value. If you only care about | 381 // is fullscreen this may return a different value. If you only care about |
| 382 // whether or not it's possible for the browser to support a particular | 382 // whether or not it's possible for the browser to support a particular |
| 383 // feature use |CanSupportWindowFeature|. | 383 // feature use |CanSupportWindowFeature|. |
| 384 bool SupportsWindowFeature(WindowFeature feature) const; | 384 bool SupportsWindowFeature(WindowFeature feature) const; |
| 385 | 385 |
| 386 // Returns true if the Browser can support the specified feature. See comment | 386 // Returns true if the Browser can support the specified feature. See comment |
| 387 // in |SupportsWindowFeature| for details on this. | 387 // in |SupportsWindowFeature| for details on this. |
| 388 bool CanSupportWindowFeature(WindowFeature feature) const; | 388 bool CanSupportWindowFeature(WindowFeature feature) const; |
| 389 | 389 |
| 390 // TODO(port): port these, and re-merge the two function declaration lists. | |
| 391 // Page-related commands. | |
| 392 void ToggleEncodingAutoDetect(); | |
| 393 void OverrideEncoding(int encoding_id); | |
| 394 | |
| 395 // Show various bits of UI | 390 // Show various bits of UI |
| 396 void OpenFile(); | 391 void OpenFile(); |
| 397 | 392 |
| 398 void UpdateDownloadShelfVisibility(bool visible); | 393 void UpdateDownloadShelfVisibility(bool visible); |
| 399 | 394 |
| 400 ///////////////////////////////////////////////////////////////////////////// | 395 ///////////////////////////////////////////////////////////////////////////// |
| 401 | 396 |
| 402 // Called by chrome::Navigate() when a navigation has occurred in a tab in | 397 // Called by chrome::Navigate() when a navigation has occurred in a tab in |
| 403 // this Browser. Updates the UI for the start of this navigation. | 398 // this Browser. Updates the UI for the start of this navigation. |
| 404 void UpdateUIForNavigationInTab(content::WebContents* contents, | 399 void UpdateUIForNavigationInTab(content::WebContents* contents, |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 // The following factory is used for chrome update coalescing. | 1004 // The following factory is used for chrome update coalescing. |
| 1010 base::WeakPtrFactory<Browser> chrome_updater_factory_; | 1005 base::WeakPtrFactory<Browser> chrome_updater_factory_; |
| 1011 | 1006 |
| 1012 // The following factory is used to close the frame at a later time. | 1007 // The following factory is used to close the frame at a later time. |
| 1013 base::WeakPtrFactory<Browser> weak_factory_; | 1008 base::WeakPtrFactory<Browser> weak_factory_; |
| 1014 | 1009 |
| 1015 DISALLOW_COPY_AND_ASSIGN(Browser); | 1010 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1016 }; | 1011 }; |
| 1017 | 1012 |
| 1018 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1013 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |