OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1099 // Set the preference that indicates that the home page has been changed. | 1099 // Set the preference that indicates that the home page has been changed. |
1100 void MarkHomePageAsChanged(PrefService* pref_service); | 1100 void MarkHomePageAsChanged(PrefService* pref_service); |
1101 | 1101 |
1102 // Update commands whose state depends on whether the window is in fullscreen | 1102 // Update commands whose state depends on whether the window is in fullscreen |
1103 // mode. | 1103 // mode. |
1104 void UpdateCommandsForFullscreenMode(bool is_fullscreen); | 1104 void UpdateCommandsForFullscreenMode(bool is_fullscreen); |
1105 | 1105 |
1106 // Updates the printing command state. | 1106 // Updates the printing command state. |
1107 void UpdatePrintingState(int content_restrictions); | 1107 void UpdatePrintingState(int content_restrictions); |
1108 | 1108 |
| 1109 // Updates the cloud printing connector state. |
| 1110 void UpdateCloudPrintConnectorState(); |
| 1111 |
1109 // Updates the save-page-as command state. | 1112 // Updates the save-page-as command state. |
1110 void UpdateSaveAsState(int content_restrictions); | 1113 void UpdateSaveAsState(int content_restrictions); |
1111 | 1114 |
1112 // Updates the open-file state (Mac Only). | 1115 // Updates the open-file state (Mac Only). |
1113 void UpdateOpenFileState(); | 1116 void UpdateOpenFileState(); |
1114 | 1117 |
1115 // Ask the Reload/Stop button to change its icon, and update the Stop command | 1118 // Ask the Reload/Stop button to change its icon, and update the Stop command |
1116 // state. |is_loading| is true if the current TabContents is loading. | 1119 // state. |is_loading| is true if the current TabContents is loading. |
1117 // |force| is true if the button should change its icon immediately. | 1120 // |force| is true if the button should change its icon immediately. |
1118 void UpdateReloadStopState(bool is_loading, bool force); | 1121 void UpdateReloadStopState(bool is_loading, bool force); |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 | 1459 |
1457 MouseLockState mouse_lock_state_; | 1460 MouseLockState mouse_lock_state_; |
1458 | 1461 |
1459 // True if the browser window has been shown at least once. | 1462 // True if the browser window has been shown at least once. |
1460 bool window_has_shown_; | 1463 bool window_has_shown_; |
1461 | 1464 |
1462 DISALLOW_COPY_AND_ASSIGN(Browser); | 1465 DISALLOW_COPY_AND_ASSIGN(Browser); |
1463 }; | 1466 }; |
1464 | 1467 |
1465 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1468 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |