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

Side by Side Diff: chrome/browser/ui/cocoa/framed_browser_window.mm

Issue 7621061: Restoring a session should restore window minimization state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Windows compile. 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 #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
17 // called when building with the 10.5 SDK.
18 #if !defined(MAC_OS_X_VERSION_10_7) || \
19 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
20
21 @interface NSWindow (LionSDKDeclarations)
22 - (void)toggleFullScreen:(id)sender;
23 @end
24
25 #endif // MAC_OS_X_VERSION_10_7
26
27
28 // Implementer's note: Moving the window controls is tricky. When altering the 16 // Implementer's note: Moving the window controls is tricky. When altering the
29 // code, ensure that: 17 // code, ensure that:
30 // - accessibility hit testing works 18 // - accessibility hit testing works
31 // - the accessibility hierarchy is correct 19 // - the accessibility hierarchy is correct
32 // - close/min in the background don't bring the window forward 20 // - close/min in the background don't bring the window forward
33 // - rollover effects work correctly 21 // - rollover effects work correctly
34 22
35 namespace { 23 namespace {
36 24
37 // Size of the gradient. Empirically determined so that the gradient looks 25 // Size of the gradient. Empirically determined so that the gradient looks
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 if ([delegate respondsToSelector:@selector(handleLionToggleFullscreen)]) 282 if ([delegate respondsToSelector:@selector(handleLionToggleFullscreen)])
295 [delegate handleLionToggleFullscreen]; 283 [delegate handleLionToggleFullscreen];
296 } 284 }
297 285
298 - (void)toggleSystemFullScreen { 286 - (void)toggleSystemFullScreen {
299 if ([super respondsToSelector:@selector(toggleFullScreen:)]) 287 if ([super respondsToSelector:@selector(toggleFullScreen:)])
300 [super toggleFullScreen:nil]; 288 [super toggleFullScreen:nil];
301 } 289 }
302 290
303 @end 291 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698