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

Unified Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h

Issue 2576563002: [Mac] Reverse the omnibox in RTL (Closed)
Patch Set: Review comments Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h
index 71c8865d9c849aa2f8a342fc96982f0460c80a55..1e3ca73d1bfa0fee02c5c88fc034bb314033e123 100644
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h
@@ -19,10 +19,10 @@ class LocationBarDecoration;
// a button-like token on the left-hand side).
@interface AutocompleteTextFieldCell : StyledTextFieldCell {
@private
- // Decorations which live to the left and right of the text, ordered
+ // Decorations which live before and after the text, ordered
// from outside in. Decorations are owned by |LocationBarViewMac|.
- std::vector<LocationBarDecoration*> leftDecorations_;
- std::vector<LocationBarDecoration*> rightDecorations_;
+ std::vector<LocationBarDecoration*> leadingDecorations_;
+ std::vector<LocationBarDecoration*> trailingDecorations_;
// The decoration associated to the current dragging session.
LocationBarDecoration* draggedDecoration_;
@@ -56,13 +56,13 @@ class LocationBarDecoration;
// Clear |leftDecorations_| and |rightDecorations_|.
- (void)clearDecorations;
-// Add a new left-side decoration to the right of the existing
-// left-side decorations.
-- (void)addLeftDecoration:(LocationBarDecoration*)decoration;
+// Add a new leading decoration after the existing
+// leading decorations.
+- (void)addLeadingDecoration:(LocationBarDecoration*)decoration;
-// Add a new right-side decoration to the left of the existing
-// right-side decorations.
-- (void)addRightDecoration:(LocationBarDecoration*)decoration;
+// Add a new trailing decoration before the existing
+// trailing decorations.
+- (void)addTrailingDecoration:(LocationBarDecoration*)decoration;
// The width available after accounting for decorations.
- (CGFloat)availableWidthInFrame:(const NSRect)frame;
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698