| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 | 671 |
| 672 // Overridden from SearchModelObserver: | 672 // Overridden from SearchModelObserver: |
| 673 virtual void ModelChanged(const SearchModel::State& old_state, | 673 virtual void ModelChanged(const SearchModel::State& old_state, |
| 674 const SearchModel::State& new_state) OVERRIDE; | 674 const SearchModel::State& new_state) OVERRIDE; |
| 675 | 675 |
| 676 // Command and state updating /////////////////////////////////////////////// | 676 // Command and state updating /////////////////////////////////////////////// |
| 677 | 677 |
| 678 // Handle changes to kDevTools preference. | 678 // Handle changes to kDevTools preference. |
| 679 void OnDevToolsDisabledChanged(); | 679 void OnDevToolsDisabledChanged(); |
| 680 | 680 |
| 681 // Set the preference that indicates that the home page has been changed. | |
| 682 void MarkHomePageAsChanged(); | |
| 683 | |
| 684 // UI update coalescing and handling //////////////////////////////////////// | 681 // UI update coalescing and handling //////////////////////////////////////// |
| 685 | 682 |
| 686 // Asks the toolbar (and as such the location bar) to update its state to | 683 // Asks the toolbar (and as such the location bar) to update its state to |
| 687 // reflect the current tab's current URL, security state, etc. | 684 // reflect the current tab's current URL, security state, etc. |
| 688 // If |should_restore_state| is true, we're switching (back?) to this tab and | 685 // If |should_restore_state| is true, we're switching (back?) to this tab and |
| 689 // should restore any previous location bar state (such as user editing) as | 686 // should restore any previous location bar state (such as user editing) as |
| 690 // well. | 687 // well. |
| 691 void UpdateToolbar(bool should_restore_state); | 688 void UpdateToolbar(bool should_restore_state); |
| 692 | 689 |
| 693 // Updates the browser's search model with the tab's search model. | 690 // Updates the browser's search model with the tab's search model. |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 bool window_has_shown_; | 912 bool window_has_shown_; |
| 916 | 913 |
| 917 // Currently open color chooser. Non-NULL after OpenColorChooser is called and | 914 // Currently open color chooser. Non-NULL after OpenColorChooser is called and |
| 918 // before DidEndColorChooser is called. | 915 // before DidEndColorChooser is called. |
| 919 scoped_ptr<content::ColorChooser> color_chooser_; | 916 scoped_ptr<content::ColorChooser> color_chooser_; |
| 920 | 917 |
| 921 DISALLOW_COPY_AND_ASSIGN(Browser); | 918 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 922 }; | 919 }; |
| 923 | 920 |
| 924 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 921 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |