| Index: chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
|
| diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
|
| index b4fcaf7b7d469cbd561849e1de3c7411c1115446..4e71ebc8990753a0815b881b18bea65571093d2e 100644
|
| --- a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
|
| +++ b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
|
| @@ -72,7 +72,8 @@ WeakPtr<AutofillPopupControllerImpl> AutofillPopupControllerImpl::GetOrCreate(
|
| WeakPtr<AutofillPopupControllerImpl> previous,
|
| WeakPtr<AutofillPopupDelegate> delegate,
|
| gfx::NativeView container_view,
|
| - const gfx::RectF& element_bounds) {
|
| + const gfx::RectF& element_bounds,
|
| + bool is_rtl) {
|
| DCHECK(!previous.get() || previous->delegate_.get() == delegate.get());
|
|
|
| if (previous.get() && previous->container_view() == container_view &&
|
| @@ -85,18 +86,21 @@ WeakPtr<AutofillPopupControllerImpl> AutofillPopupControllerImpl::GetOrCreate(
|
| previous->Hide();
|
|
|
| AutofillPopupControllerImpl* controller =
|
| - new AutofillPopupControllerImpl(delegate, container_view, element_bounds);
|
| + new AutofillPopupControllerImpl(
|
| + delegate, container_view, element_bounds, is_rtl);
|
| return controller->GetWeakPtr();
|
| }
|
|
|
| AutofillPopupControllerImpl::AutofillPopupControllerImpl(
|
| base::WeakPtr<AutofillPopupDelegate> delegate,
|
| gfx::NativeView container_view,
|
| - const gfx::RectF& element_bounds)
|
| + const gfx::RectF& element_bounds,
|
| + bool is_rtl)
|
| : view_(NULL),
|
| delegate_(delegate),
|
| container_view_(container_view),
|
| element_bounds_(element_bounds),
|
| + is_rtl_(is_rtl),
|
| weak_ptr_factory_(this) {
|
| ClearState();
|
| #if !defined(OS_ANDROID)
|
| @@ -296,6 +300,10 @@ const gfx::RectF& AutofillPopupControllerImpl::element_bounds() const {
|
| return element_bounds_;
|
| }
|
|
|
| +bool AutofillPopupControllerImpl::is_rtl() const {
|
| + return is_rtl_;
|
| +}
|
| +
|
| const std::vector<string16>& AutofillPopupControllerImpl::names() const {
|
| return names_;
|
| }
|
|
|