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

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

Issue 1135333002: Suppress -Wpartial-availability warnings that arise from NSWindowDelegate methods only available on… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from thakis. Created 5 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
7 7
8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
9 #import "chrome/browser/ui/cocoa/browser_window_layout.h" 9 #import "chrome/browser/ui/cocoa/browser_window_layout.h"
10 #import "chrome/browser/ui/cocoa/presentation_mode_controller.h" 10 #import "chrome/browser/ui/cocoa/presentation_mode_controller.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // detect when the relevant conditions have been met so that a hack can be 157 // detect when the relevant conditions have been met so that a hack can be
158 // applied to fix the size of the window. 158 // applied to fix the size of the window.
159 // http://crbug.com/396980 159 // http://crbug.com/396980
160 + (BOOL)systemSettingsRequireMavericksAppKitFullscreenHack; 160 + (BOOL)systemSettingsRequireMavericksAppKitFullscreenHack;
161 - (BOOL)shouldUseMavericksAppKitFullscreenHack; 161 - (BOOL)shouldUseMavericksAppKitFullscreenHack;
162 162
163 // Whether the instance should use a custom transition when animating into and 163 // Whether the instance should use a custom transition when animating into and
164 // out of AppKit Fullscreen. 164 // out of AppKit Fullscreen.
165 - (BOOL)shouldUseCustomAppKitFullscreenTransition; 165 - (BOOL)shouldUseCustomAppKitFullscreenTransition;
166 166
167 #if defined(MAC_OS_X_VERSION_10_7) && \
168 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7
169 // Redeclare some methods from NSWindowDelegate to suppress
170 // -Wpartial-availability warnings.
Nico 2015/05/19 00:38:02 is this still needed? all of it? (i think the only
erikchen 2015/05/19 00:48:19 I removed the two unnecessary redeclarations.
171 - (void)windowDidEnterFullScreen:(NSNotification*)notification;
172 - (void)windowDidExitFullScreen:(NSNotification*)notification;
173 - (void)windowWillExitFullScreen:(NSNotification*)notification;
174 - (void)windowDidFailToEnterFullScreen:(NSWindow*)window;
175 - (void)windowDidFailToExitFullScreen:(NSWindow*)window;
176 #endif
177
167 @end // @interface BrowserWindowController(Private) 178 @end // @interface BrowserWindowController(Private)
168 179
169 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 180 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698