| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |