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

Side by Side Diff: chrome/browser/cocoa/browser_window_controller.mm

Issue 341001: Disable fullscreen for Mstone-4 / ReleaseBlock-Beta. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/cocoa/browser_window_controller_unittest.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include <Carbon/Carbon.h> 5 #include <Carbon/Carbon.h>
6 6
7 #include "base/mac_util.h" 7 #include "base/mac_util.h"
8 #include "base/scoped_nsdisable_screen_updates.h" 8 #include "base/scoped_nsdisable_screen_updates.h"
9 #import "base/scoped_nsobject.h" 9 #import "base/scoped_nsobject.h"
10 #include "base/sys_string_conversions.h" 10 #include "base/sys_string_conversions.h"
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 529
530 bool toggled = encoding_controller.IsItemChecked(profile, encoding, tag); 530 bool toggled = encoding_controller.IsItemChecked(profile, encoding, tag);
531 NSInteger oldState = [item state]; 531 NSInteger oldState = [item state];
532 NSInteger newState = toggled ? NSOnState : NSOffState; 532 NSInteger newState = toggled ? NSOnState : NSOffState;
533 if (oldState != newState) 533 if (oldState != newState)
534 [item setState:newState]; 534 [item setState:newState];
535 } 535 }
536 } 536 }
537 537
538 - (BOOL)supportsFullscreen { 538 - (BOOL)supportsFullscreen {
539 // Fullscreen mode disabled for Mstone-4 / ReleaseBlock-Beta.
540 return NO;
541
539 // TODO(avi, thakis): GTMWindowSheetController has no api to move 542 // TODO(avi, thakis): GTMWindowSheetController has no api to move
540 // tabsheets between windows. Until then, we have to prevent having to 543 // tabsheets between windows. Until then, we have to prevent having to
541 // move a tabsheet between windows, e.g. no fullscreen toggling 544 // move a tabsheet between windows, e.g. no fullscreen toggling
542 NSArray* a = [[tabStripController_ sheetController] viewsWithAttachedSheets]; 545 NSArray* a = [[tabStripController_ sheetController] viewsWithAttachedSheets];
543 return [a count] == 0; 546 return [a count] == 0;
544 } 547 }
545 548
546 // Called to validate menu and toolbar items when this window is key. All the 549 // Called to validate menu and toolbar items when this window is key. All the
547 // items we care about have been set with the |-commandDispatch:| or 550 // items we care about have been set with the |-commandDispatch:| or
548 // |-commandDispatchUsingKeyModifiers:| actions and a target of FirstResponder 551 // |-commandDispatchUsingKeyModifiers:| actions and a target of FirstResponder
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1531 if (frameOverlayInactiveImage) { 1534 if (frameOverlayInactiveImage) {
1532 [theme setValue:frameOverlayInactiveImage 1535 [theme setValue:frameOverlayInactiveImage
1533 forAttribute:@"overlay" 1536 forAttribute:@"overlay"
1534 style:GTMThemeStyleWindow 1537 style:GTMThemeStyleWindow
1535 state:GTMThemeStateInactiveWindow]; 1538 state:GTMThemeStateInactiveWindow];
1536 } 1539 }
1537 1540
1538 return theme; 1541 return theme;
1539 } 1542 }
1540 @end 1543 @end
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/browser_window_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698