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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_controller_impl.h

Issue 15769018: [Autofill] Determine Popup RTLness from page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android compile Created 7 years, 6 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/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_;
« no previous file with comments | « chrome/browser/ui/autofill/autofill_popup_controller.h ('k') | chrome/browser/ui/autofill/autofill_popup_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698