Index: chrome/browser/ui/autofill/autofill_popup_controller_impl.h |
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_impl.h b/chrome/browser/ui/autofill/autofill_popup_controller_impl.h |
index a25ad9d62f2475cb2a43bfb3563911f77e21039a..f26fcf91bf31bb70325d9859bb436807d4b45c34 100644 |
--- a/chrome/browser/ui/autofill/autofill_popup_controller_impl.h |
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_impl.h |
@@ -6,6 +6,7 @@ |
#define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_IMPL_H_ |
#include "base/gtest_prod_util.h" |
+#include "base/i18n/rtl.h" |
#include "base/memory/weak_ptr.h" |
#include "base/strings/string16.h" |
#include "chrome/browser/ui/autofill/autofill_popup_controller.h" |
@@ -40,7 +41,8 @@ class AutofillPopupControllerImpl : public AutofillPopupController, |
base::WeakPtr<AutofillPopupControllerImpl> previous, |
base::WeakPtr<AutofillPopupDelegate> delegate, |
gfx::NativeView container_view, |
- const gfx::RectF& element_bounds); |
+ const gfx::RectF& element_bounds, |
+ base::i18n::TextDirection text_direction); |
// Shows the popup, or updates the existing popup with the given values. |
void Show(const std::vector<string16>& names, |
@@ -67,7 +69,8 @@ class AutofillPopupControllerImpl : public AutofillPopupController, |
AutofillPopupControllerImpl(base::WeakPtr<AutofillPopupDelegate> delegate, |
gfx::NativeView container_view, |
- const gfx::RectF& element_bounds); |
+ const gfx::RectF& element_bounds, |
+ base::i18n::TextDirection text_direction); |
virtual ~AutofillPopupControllerImpl(); |
// AutofillPopupController implementation. |
@@ -83,6 +86,7 @@ class AutofillPopupControllerImpl : public AutofillPopupController, |
virtual const gfx::Rect& popup_bounds() const OVERRIDE; |
virtual gfx::NativeView container_view() const OVERRIDE; |
virtual const gfx::RectF& element_bounds() const OVERRIDE; |
+ virtual bool IsRTL() const OVERRIDE; |
virtual const std::vector<string16>& names() const OVERRIDE; |
virtual const std::vector<string16>& subtexts() const OVERRIDE; |
@@ -191,6 +195,9 @@ class AutofillPopupControllerImpl : public AutofillPopupController, |
// The bounds of the Autofill popup. |
gfx::Rect popup_bounds_; |
+ // The text direction of the popup. |
+ base::i18n::TextDirection text_direction_; |
+ |
// The current Autofill query values. |
std::vector<string16> names_; |
std::vector<string16> subtexts_; |