| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FULL_SIZE_CONTENT_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_FULL_SIZE_CONTENT_WINDOW_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_FULL_SIZE_CONTENT_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_COCOA_FULL_SIZE_CONTENT_WINDOW_H_ |
| 7 | 7 |
| 8 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" | 8 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 base::scoped_nsobject<NSView> chromeWindowView_; | 28 base::scoped_nsobject<NSView> chromeWindowView_; |
| 29 } | 29 } |
| 30 | 30 |
| 31 // Designated initializer. | 31 // Designated initializer. |
| 32 - (instancetype)initWithContentRect:(NSRect)contentRect | 32 - (instancetype)initWithContentRect:(NSRect)contentRect |
| 33 styleMask:(NSUInteger)windowStyle | 33 styleMask:(NSUInteger)windowStyle |
| 34 backing:(NSBackingStoreType)bufferingType | 34 backing:(NSBackingStoreType)bufferingType |
| 35 defer:(BOOL)deferCreation | 35 defer:(BOOL)deferCreation |
| 36 wantsViewsOverTitlebar:(BOOL)wantsViewsOverTitlebar; | 36 wantsViewsOverTitlebar:(BOOL)wantsViewsOverTitlebar; |
| 37 | 37 |
| 38 // Forces the contentView to resize to the given size. This need to be forced |
| 39 // because by default, the contentView will always have the same size as the |
| 40 // window. |
| 41 - (void)forceContentViewSize:(NSSize)size; |
| 42 |
| 38 @end | 43 @end |
| 39 | 44 |
| 40 #endif // CHROME_BROWSER_UI_COCOA_FULL_SIZE_CONTENT_WINDOW_H_ | 45 #endif // CHROME_BROWSER_UI_COCOA_FULL_SIZE_CONTENT_WINDOW_H_ |
| OLD | NEW |