Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Side by Side Diff: chrome/browser/ui/browser.h

Issue 7564011: Prevent accelerators from toggling the bookmark bar when disabled by policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 953
954 // Updates commands when the content's restrictions change. 954 // Updates commands when the content's restrictions change.
955 void UpdateCommandsForContentRestrictionState(); 955 void UpdateCommandsForContentRestrictionState();
956 956
957 // Updates commands for enabling developer tools. 957 // Updates commands for enabling developer tools.
958 void UpdateCommandsForDevTools(); 958 void UpdateCommandsForDevTools();
959 959
960 // Updates commands for bookmark editing. 960 // Updates commands for bookmark editing.
961 void UpdateCommandsForBookmarkEditing(); 961 void UpdateCommandsForBookmarkEditing();
962 962
963 // Updates commands that affect the bookmark bar.
964 void UpdateCommandsForBookmarkBar();
965
963 // Update commands whose state depends on whether the window is in fullscreen 966 // Update commands whose state depends on whether the window is in fullscreen
964 // mode. 967 // mode.
965 void UpdateCommandsForFullscreenMode(bool is_fullscreen); 968 void UpdateCommandsForFullscreenMode(bool is_fullscreen);
966 969
967 // Updates the printing command state. 970 // Updates the printing command state.
968 void UpdatePrintingState(int content_restrictions); 971 void UpdatePrintingState(int content_restrictions);
969 972
970 // Updates the save-page-as command state. 973 // Updates the save-page-as command state.
971 void UpdateSaveAsState(int content_restrictions); 974 void UpdateSaveAsState(int content_restrictions);
972 975
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1280 1283
1281 scoped_ptr<InstantController> instant_; 1284 scoped_ptr<InstantController> instant_;
1282 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; 1285 scoped_ptr<InstantUnloadHandler> instant_unload_handler_;
1283 1286
1284 BookmarkBar::State bookmark_bar_state_; 1287 BookmarkBar::State bookmark_bar_state_;
1285 1288
1286 DISALLOW_COPY_AND_ASSIGN(Browser); 1289 DISALLOW_COPY_AND_ASSIGN(Browser);
1287 }; 1290 };
1288 1291
1289 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1292 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698