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

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

Issue 2489373002: [Mac] (More) RTL support for tab strip (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
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_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "chrome/browser/ui/cocoa/fullscreen_toolbar_controller.h" 10 #import "chrome/browser/ui/cocoa/fullscreen_toolbar_controller.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 CGFloat downloadShelfHeight; 78 CGFloat downloadShelfHeight;
79 79
80 // This parameter exists so that unit tests can configure the OS version. 80 // This parameter exists so that unit tests can configure the OS version.
81 BOOL isOSYosemiteOrLater; 81 BOOL isOSYosemiteOrLater;
82 }; 82 };
83 83
84 // The parameters required to lay out the tab strip and its components. 84 // The parameters required to lay out the tab strip and its components.
85 struct TabStripLayout { 85 struct TabStripLayout {
86 // The frame of the tab strip in window coordinates. 86 // The frame of the tab strip in window coordinates.
87 NSRect frame; 87 NSRect frame;
88 // The left indent for the controls of the TabStripController. 88 // The leading indent for the controls of the TabStripController.
89 CGFloat leftIndent; 89 CGFloat leadingIndent;
90 // The right indent for the controls of the TabStripController. 90 // The trailing indent for the controls of the TabStripController.
91 CGFloat rightIndent; 91 CGFloat trailingIndent;
92 // Whether the TabStripController needs to add custom traffic light buttons. 92 // Whether the TabStripController needs to add custom traffic light buttons.
93 BOOL addCustomWindowControls; 93 BOOL addCustomWindowControls;
94 // The frame of the avatar in window coordinates. 94 // The frame of the avatar in window coordinates.
95 NSRect avatarFrame; 95 NSRect avatarFrame;
96 }; 96 };
97 97
98 // The output frames of the views managed by the BrowserWindowController. All 98 // The output frames of the views managed by the BrowserWindowController. All
99 // frames are in the coordinate system of the window. The lower-left corner of 99 // frames are in the coordinate system of the window. The lower-left corner of
100 // the contentView coincides with the lower-left corner of the window, so these 100 // the contentView coincides with the lower-left corner of the window, so these
101 // frames are also in the coordinate system of the contentView. 101 // frames are also in the coordinate system of the contentView.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 - (void)setHasDownloadShelf:(BOOL)hasDownloadShelf; 178 - (void)setHasDownloadShelf:(BOOL)hasDownloadShelf;
179 - (void)setDownloadShelfHeight:(CGFloat)downloadShelfHeight; 179 - (void)setDownloadShelfHeight:(CGFloat)downloadShelfHeight;
180 @end 180 @end
181 181
182 @interface BrowserWindowLayout (ExposedForTesting) 182 @interface BrowserWindowLayout (ExposedForTesting)
183 - (void)setOSYosemiteOrLater:(BOOL)osYosemiteOrLater; 183 - (void)setOSYosemiteOrLater:(BOOL)osYosemiteOrLater;
184 @end 184 @end
185 185
186 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_ 186 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_private.mm ('k') | chrome/browser/ui/cocoa/browser_window_layout.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698