| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/mac/foundation_util.h" | 8 #include "base/mac/foundation_util.h" |
| 9 #include "base/mac/mac_util.h" | 9 #include "base/mac/mac_util.h" |
| 10 #include "base/mac/sdk_forward_declarations.h" | 10 #include "base/mac/sdk_forward_declarations.h" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 return NO; | 182 return NO; |
| 183 } | 183 } |
| 184 | 184 |
| 185 @end | 185 @end |
| 186 | 186 |
| 187 @interface AppNSWindow : ChromeEventProcessingWindow | 187 @interface AppNSWindow : ChromeEventProcessingWindow |
| 188 @end | 188 @end |
| 189 | 189 |
| 190 @implementation AppNSWindow | 190 @implementation AppNSWindow |
| 191 | 191 |
| 192 - (BOOL)shouldHideFullscreenToolbar { |
| 193 return NO; |
| 194 } |
| 195 |
| 192 // Similar to ChromeBrowserWindow, don't draw the title, but allow it to be seen | 196 // Similar to ChromeBrowserWindow, don't draw the title, but allow it to be seen |
| 193 // in menus, Expose, etc. | 197 // in menus, Expose, etc. |
| 194 - (BOOL)_isTitleHidden { | 198 - (BOOL)_isTitleHidden { |
| 195 return YES; | 199 return YES; |
| 196 } | 200 } |
| 197 | 201 |
| 198 @end | 202 @end |
| 199 | 203 |
| 200 @interface AppFramelessNSWindow : AppNSWindow | 204 @interface AppFramelessNSWindow : AppNSWindow |
| 201 @end | 205 @end |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 } | 886 } |
| 883 | 887 |
| 884 void NativeAppWindowCocoa::UpdateRestoredBounds() { | 888 void NativeAppWindowCocoa::UpdateRestoredBounds() { |
| 885 if (IsRestored(*this)) | 889 if (IsRestored(*this)) |
| 886 restored_bounds_ = [window() frame]; | 890 restored_bounds_ = [window() frame]; |
| 887 } | 891 } |
| 888 | 892 |
| 889 void NativeAppWindowCocoa::HideWithoutMarkingHidden() { | 893 void NativeAppWindowCocoa::HideWithoutMarkingHidden() { |
| 890 [window() orderOut:window_controller_]; | 894 [window() orderOut:window_controller_]; |
| 891 } | 895 } |
| OLD | NEW |