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

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

Issue 2576563002: [Mac] Reverse the omnibox in RTL (Closed)
Patch Set: 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
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 f88aed1edc3e3a635cf89f32fc866f685c2e3d0e..4f183e46681290771b9a7210f1881478e56487bc 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_;
// Decorations with tracking areas attached to the AutocompleteTextField.
std::vector<LocationBarDecoration*> mouseTrackingDecorations_;
@@ -53,13 +53,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;

Powered by Google App Engine
This is Rietveld 408576698