| OLD | NEW |
| 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_FRAMED_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/memory/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "chrome/browser/ui/cocoa/chrome_browser_window.h" | 11 #include "chrome/browser/ui/cocoa/chrome_browser_window.h" |
| 12 | 12 |
| 13 // Offsets from the top/left of the window frame to the top of the window | 13 // Offsets from the top/left of the window frame to the top of the window |
| 14 // controls (zoom, close, miniaturize) for a window with a tabstrip. | 14 // controls (zoom, close, miniaturize) for a window with a tabstrip. |
| 15 const NSInteger kFramedWindowButtonsWithTabStripOffsetFromTop = 11; | 15 const NSInteger kFramedWindowButtonsWithTabStripOffsetFromTop = 11; |
| 16 const NSInteger kFramedWindowButtonsWithTabStripOffsetFromLeft = 11; | 16 const NSInteger kFramedWindowButtonsWithTabStripOffsetFromLeft = 11; |
| 17 | 17 |
| 18 // Offsets from the top/left of the window frame to the top of the window | 18 // Offsets from the top/left of the window frame to the top of the window |
| 19 // controls (zoom, close, miniaturize) for a window without a tabstrip. | 19 // controls (zoom, close, miniaturize) for a window without a tabstrip. |
| 20 const NSInteger kFramedWindowButtonsWithoutTabStripOffsetFromTop = 4; | 20 const NSInteger kFramedWindowButtonsWithoutTabStripOffsetFromTop = 4; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // Undocumented Cocoa API to suppress drawing of the window's title. | 71 // Undocumented Cocoa API to suppress drawing of the window's title. |
| 72 // -setTitle: still works, but the title set only applies to the | 72 // -setTitle: still works, but the title set only applies to the |
| 73 // miniwindow and menus (and, importantly, Expose). Overridden to | 73 // miniwindow and menus (and, importantly, Expose). Overridden to |
| 74 // return |shouldHideTitle_|. | 74 // return |shouldHideTitle_|. |
| 75 -(BOOL)_isTitleHidden; | 75 -(BOOL)_isTitleHidden; |
| 76 | 76 |
| 77 @end | 77 @end |
| 78 | 78 |
| 79 #endif // CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_ | 79 #endif // CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_ |
| OLD | NEW |