| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| 11 #include "base/scoped_nsobject.h" | 11 #include "base/scoped_nsobject.h" |
| 12 #include "chrome/browser/ui/cocoa/chrome_browser_window.h" | 12 #include "chrome/browser/ui/cocoa/chrome_browser_window.h" |
| 13 | 13 |
| 14 // Offsets from the top/left of the window frame to the top of the window | 14 // Offsets from the top/left of the window frame to the top of the window |
| 15 // controls (zoom, close, miniaturize) for a window with a tabstrip. | 15 // controls (zoom, close, miniaturize) for a window with a tabstrip. |
| 16 const NSInteger kFramedWindowButtonsWithTabStripOffsetFromTop = 10; | 16 const NSInteger kFramedWindowButtonsWithTabStripOffsetFromTop = 11; |
| 17 const NSInteger kFramedWindowButtonsWithTabStripOffsetFromLeft = 10; | 17 const NSInteger kFramedWindowButtonsWithTabStripOffsetFromLeft = 11; |
| 18 | 18 |
| 19 // Offsets from the top/left of the window frame to the top of the window | 19 // Offsets from the top/left of the window frame to the top of the window |
| 20 // controls (zoom, close, miniaturize) for a window without a tabstrip. | 20 // controls (zoom, close, miniaturize) for a window without a tabstrip. |
| 21 const NSInteger kFramedWindowButtonsWithoutTabStripOffsetFromTop = 4; | 21 const NSInteger kFramedWindowButtonsWithoutTabStripOffsetFromTop = 4; |
| 22 const NSInteger kFramedWindowButtonsWithoutTabStripOffsetFromLeft = 8; | 22 const NSInteger kFramedWindowButtonsWithoutTabStripOffsetFromLeft = 8; |
| 23 | 23 |
| 24 // Offset between the window controls (zoom, close, miniaturize). | 24 // Offset between the window controls (zoom, close, miniaturize). |
| 25 const NSInteger kFramedWindowButtonsInterButtonSpacing = 7; | 25 const NSInteger kFramedWindowButtonsInterButtonSpacing = 7; |
| 26 | 26 |
| 27 // Cocoa class representing a framed browser window. | 27 // Cocoa class representing a framed browser window. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 54 | 54 |
| 55 // Undocumented Cocoa API to suppress drawing of the window's title. | 55 // Undocumented Cocoa API to suppress drawing of the window's title. |
| 56 // -setTitle: still works, but the title set only applies to the | 56 // -setTitle: still works, but the title set only applies to the |
| 57 // miniwindow and menus (and, importantly, Expose). Overridden to | 57 // miniwindow and menus (and, importantly, Expose). Overridden to |
| 58 // return |shouldHideTitle_|. | 58 // return |shouldHideTitle_|. |
| 59 -(BOOL)_isTitleHidden; | 59 -(BOOL)_isTitleHidden; |
| 60 | 60 |
| 61 @end | 61 @end |
| 62 | 62 |
| 63 #endif // CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_ | 63 #endif // CHROME_BROWSER_UI_COCOA_FRAMED_BROWSER_WINDOW_H_ |
| OLD | NEW |