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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1139 // Updates commands that affect the bookmark bar. | 1139 // Updates commands that affect the bookmark bar. |
1140 void UpdateCommandsForBookmarkBar(); | 1140 void UpdateCommandsForBookmarkBar(); |
1141 | 1141 |
1142 // Set the preference that indicates that the home page has been changed. | 1142 // Set the preference that indicates that the home page has been changed. |
1143 void MarkHomePageAsChanged(PrefService* pref_service); | 1143 void MarkHomePageAsChanged(PrefService* pref_service); |
1144 | 1144 |
1145 // Update commands whose state depends on whether the window is in fullscreen | 1145 // Update commands whose state depends on whether the window is in fullscreen |
1146 // mode. | 1146 // mode. |
1147 void UpdateCommandsForFullscreenMode(bool is_fullscreen); | 1147 void UpdateCommandsForFullscreenMode(bool is_fullscreen); |
1148 | 1148 |
| 1149 // Update commands whose state depends on whether multiple profiles are |
| 1150 // allowed. |
| 1151 void UpdateCommandsForMultipleProfiles(); |
| 1152 |
1149 // Updates the printing command state. | 1153 // Updates the printing command state. |
1150 void UpdatePrintingState(int content_restrictions); | 1154 void UpdatePrintingState(int content_restrictions); |
1151 | 1155 |
1152 // Updates the save-page-as command state. | 1156 // Updates the save-page-as command state. |
1153 void UpdateSaveAsState(int content_restrictions); | 1157 void UpdateSaveAsState(int content_restrictions); |
1154 | 1158 |
1155 // Updates the open-file state (Mac Only). | 1159 // Updates the open-file state (Mac Only). |
1156 void UpdateOpenFileState(); | 1160 void UpdateOpenFileState(); |
1157 | 1161 |
1158 // Ask the Reload/Stop button to change its icon, and update the Stop command | 1162 // Ask the Reload/Stop button to change its icon, and update the Stop command |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1481 bool window_has_shown_; | 1485 bool window_has_shown_; |
1482 | 1486 |
1483 // Currently open color chooser. Non-NULL after OpenColorChooser is called and | 1487 // Currently open color chooser. Non-NULL after OpenColorChooser is called and |
1484 // before DidEndColorChooser is called. | 1488 // before DidEndColorChooser is called. |
1485 scoped_ptr<content::ColorChooser> color_chooser_; | 1489 scoped_ptr<content::ColorChooser> color_chooser_; |
1486 | 1490 |
1487 DISALLOW_COPY_AND_ASSIGN(Browser); | 1491 DISALLOW_COPY_AND_ASSIGN(Browser); |
1488 }; | 1492 }; |
1489 | 1493 |
1490 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1494 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |