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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h

Issue 2126023003: Mac (Cocoa) Omnibox: Force text field to LTR context if it is a URL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatting. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h
index b4cc9d4aa32d3b41d021f1daac49e53b322e0edb..e18bd35f849d98ce9c6989c108ea2b18f9aff70a 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h
@@ -182,7 +182,9 @@ class OmniboxViewMac : public OmniboxView,
void EmphasizeURLComponents() override;
// Apply our font and paragraph style to |attributedString|.
- void ApplyTextStyle(NSMutableAttributedString* attributedString);
+ // If |force_ltr|, sets the paragraph direction to left-to-right.
+ void ApplyTextStyle(bool force_ltr,
+ NSMutableAttributedString* attributedString);
// Calculates text attributes according to |display_text| and applies them
// to the given |attributedString| object.

Powered by Google App Engine
This is Rietveld 408576698