| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_H_ |
| 6 #define CHROME_BROWSER_BROWSER_H_ | 6 #define CHROME_BROWSER_BROWSER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 // Initialize state for all browser commands. | 481 // Initialize state for all browser commands. |
| 482 void InitCommandState(); | 482 void InitCommandState(); |
| 483 | 483 |
| 484 // Update commands whose state depends on the tab's state. | 484 // Update commands whose state depends on the tab's state. |
| 485 void UpdateCommandsForTabState(); | 485 void UpdateCommandsForTabState(); |
| 486 | 486 |
| 487 // Update commands whose state depends on whether the window is in fullscreen | 487 // Update commands whose state depends on whether the window is in fullscreen |
| 488 // mode. | 488 // mode. |
| 489 void UpdateCommandsForFullscreenMode(bool is_fullscreen); | 489 void UpdateCommandsForFullscreenMode(bool is_fullscreen); |
| 490 | 490 |
| 491 // Set the correct stop/go icon and update the Go and Stop command states. | 491 // Ask the Stop/Go button to change its icon, and update the Go and Stop |
| 492 // |is_loading| is true if the current TabContents is loading. | 492 // command states. |is_loading| is true if the current TabContents is |
| 493 void UpdateStopGoState(bool is_loading); | 493 // loading. |force| is true if the button should change its icon immediately. |
| 494 void UpdateStopGoState(bool is_loading, bool force); |
| 494 | 495 |
| 495 // UI update coalescing and handling //////////////////////////////////////// | 496 // UI update coalescing and handling //////////////////////////////////////// |
| 496 | 497 |
| 497 // Asks the toolbar (and as such the location bar) to update its state to | 498 // Asks the toolbar (and as such the location bar) to update its state to |
| 498 // reflect the current tab's current URL, security state, etc. | 499 // reflect the current tab's current URL, security state, etc. |
| 499 // If |should_restore_state| is true, we're switching (back?) to this tab and | 500 // If |should_restore_state| is true, we're switching (back?) to this tab and |
| 500 // should restore any previous location bar state (such as user editing) as | 501 // should restore any previous location bar state (such as user editing) as |
| 501 // well. | 502 // well. |
| 502 void UpdateToolbar(bool should_restore_state); | 503 void UpdateToolbar(bool should_restore_state); |
| 503 | 504 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 // The browser idle task helps cleanup unused memory resources when idle. | 725 // The browser idle task helps cleanup unused memory resources when idle. |
| 725 scoped_ptr<BrowserIdleTimer> idle_task_; | 726 scoped_ptr<BrowserIdleTimer> idle_task_; |
| 726 | 727 |
| 727 // Keep track of the encoding auto detect pref. | 728 // Keep track of the encoding auto detect pref. |
| 728 BooleanPrefMember encoding_auto_detect_; | 729 BooleanPrefMember encoding_auto_detect_; |
| 729 | 730 |
| 730 DISALLOW_COPY_AND_ASSIGN(Browser); | 731 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 731 }; | 732 }; |
| 732 | 733 |
| 733 #endif // CHROME_BROWSER_BROWSER_H_ | 734 #endif // CHROME_BROWSER_BROWSER_H_ |
| OLD | NEW |