| 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 7ecf397f3d4d1e04ad31a3845668e293ef84d9f0..225681f8f62fde42ece443553a25ed9f63b6a1b0 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/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_;
|
|
|