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 #import "chrome/browser/ui/cocoa/framed_browser_window.h" | 5 #import "chrome/browser/ui/cocoa/framed_browser_window.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/global_keyboard_shortcuts_mac.h" | 8 #include "chrome/browser/global_keyboard_shortcuts_mac.h" |
9 #import "chrome/browser/ui/cocoa/browser_frame_view.h" | 9 #import "chrome/browser/ui/cocoa/browser_frame_view.h" |
10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
11 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" | 11 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" |
12 #import "chrome/browser/ui/cocoa/themed_window.h" | 12 #import "chrome/browser/ui/cocoa/themed_window.h" |
13 #import "chrome/browser/renderer_host/render_widget_host_view_mac.h" | 13 #import "chrome/browser/renderer_host/render_widget_host_view_mac.h" |
14 #include "chrome/browser/themes/theme_service.h" | 14 #include "chrome/browser/themes/theme_service.h" |
15 | 15 |
16 // Provide the forward-declarations of new 10.7 SDK symbols so they can be | 16 // Replicate specific 10.7 SDK declarations for building with prior SDKs. |
17 // called when building with the 10.5 SDK. | |
18 #if !defined(MAC_OS_X_VERSION_10_7) || \ | 17 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
19 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | 18 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 |
20 | 19 |
21 @interface NSWindow (LionSDKDeclarations) | 20 @interface NSWindow (LionSDKDeclarations) |
22 - (void)toggleFullScreen:(id)sender; | 21 - (void)toggleFullScreen:(id)sender; |
23 @end | 22 @end |
24 | 23 |
25 #endif // MAC_OS_X_VERSION_10_7 | 24 #endif // MAC_OS_X_VERSION_10_7 |
26 | 25 |
27 | 26 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 if ([delegate respondsToSelector:@selector(handleLionToggleFullscreen)]) | 293 if ([delegate respondsToSelector:@selector(handleLionToggleFullscreen)]) |
295 [delegate handleLionToggleFullscreen]; | 294 [delegate handleLionToggleFullscreen]; |
296 } | 295 } |
297 | 296 |
298 - (void)toggleSystemFullScreen { | 297 - (void)toggleSystemFullScreen { |
299 if ([super respondsToSelector:@selector(toggleFullScreen:)]) | 298 if ([super respondsToSelector:@selector(toggleFullScreen:)]) |
300 [super toggleFullScreen:nil]; | 299 [super toggleFullScreen:nil]; |
301 } | 300 } |
302 | 301 |
303 @end | 302 @end |
OLD | NEW |