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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller_private.h

Issue 463263002: Mac: Fix rounded corners on browser windows on retina display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace 10.7+ CGPath function with 10.2+ equivalent function. Created 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_controller_private.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
7 7
8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
9 9
10 // Private methods for the |BrowserWindowController|. This category should 10 // Private methods for the |BrowserWindowController|. This category should
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // y-coordinate, with the given width; returns the new minimum y (above the 84 // y-coordinate, with the given width; returns the new minimum y (above the
85 // download shelf). This is safe to call even if there is no download shelf. 85 // download shelf). This is safe to call even if there is no download shelf.
86 - (CGFloat)layoutDownloadShelfAtMinX:(CGFloat)minX 86 - (CGFloat)layoutDownloadShelfAtMinX:(CGFloat)minX
87 minY:(CGFloat)minY 87 minY:(CGFloat)minY
88 width:(CGFloat)width; 88 width:(CGFloat)width;
89 89
90 // Lays out the tab content area in the given frame. If the height changes, 90 // Lays out the tab content area in the given frame. If the height changes,
91 // sends a message to the renderer to resize. 91 // sends a message to the renderer to resize.
92 - (void)layoutTabContentArea:(NSRect)frame; 92 - (void)layoutTabContentArea:(NSRect)frame;
93 93
94 // Updates whether the bottom two corners are rounded.
95 - (void)updateRoundedBottomCorners;
96
94 // Sets the toolbar's height to a value appropriate for the given compression. 97 // Sets the toolbar's height to a value appropriate for the given compression.
95 // Also adjusts the bookmark bar's height by the opposite amount in order to 98 // Also adjusts the bookmark bar's height by the opposite amount in order to
96 // keep the total height of the two views constant. 99 // keep the total height of the two views constant.
97 - (void)adjustToolbarAndBookmarkBarForCompression:(CGFloat)compression; 100 - (void)adjustToolbarAndBookmarkBarForCompression:(CGFloat)compression;
98 101
99 // Moves views between windows in preparation for fullscreen mode when not using 102 // Moves views between windows in preparation for fullscreen mode when not using
100 // Cocoa's System Fullscreen API. (System Fullscreen reuses the original window 103 // Cocoa's System Fullscreen API. (System Fullscreen reuses the original window
101 // for fullscreen mode, so there is no need to move views around.) This method 104 // for fullscreen mode, so there is no need to move views around.) This method
102 // does not position views; callers must also call |-layoutSubviews:|. 105 // does not position views; callers must also call |-layoutSubviews:|.
103 - (void)moveViewsForImmersiveFullscreen:(BOOL)fullscreen 106 - (void)moveViewsForImmersiveFullscreen:(BOOL)fullscreen
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 - (void)updateSubviewZOrder:(BOOL)inPresentationMode; 152 - (void)updateSubviewZOrder:(BOOL)inPresentationMode;
150 153
151 - (void)updateAllowOverlappingViews:(BOOL)inPresentationMode; 154 - (void)updateAllowOverlappingViews:(BOOL)inPresentationMode;
152 155
153 // Update visibility of the infobar tip, depending on the state of the window. 156 // Update visibility of the infobar tip, depending on the state of the window.
154 - (void)updateInfoBarTipVisibility; 157 - (void)updateInfoBarTipVisibility;
155 158
156 @end // @interface BrowserWindowController(Private) 159 @end // @interface BrowserWindowController(Private)
157 160
158 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ 161 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_controller_private.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698