| Index: chrome/browser/ui/views/location_bar/location_bar_view.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
| index 40444aa1e74f5fc00e261008c5e96479ae7052f9..d7a8920374916d774344bb503e26e6a66eac7259 100644
|
| --- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
| +++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
| @@ -388,6 +388,17 @@ void LocationBarView::ShowStarBubble(const GURL& url, bool newly_bookmarked) {
|
| profile_, url, newly_bookmarked);
|
| }
|
|
|
| +gfx::Point LocationBarView::GetLocationEntryOrigin() const {
|
| + gfx::Point origin(location_entry_view_->bounds().origin());
|
| + // If the UI layout is RTL, the coordinate system is not transformed and
|
| + // therefore we need to adjust the X coordinate so that bubble appears on the
|
| + // right hand side of the location bar.
|
| + if (base::i18n::IsRTL())
|
| + origin.set_x(width() - origin.x());
|
| + views::View::ConvertPointToScreen(this, &origin);
|
| + return origin;
|
| +}
|
| +
|
| void LocationBarView::OnCommitSuggestedText() {
|
| InstantController* instant = delegate_->GetInstant();
|
| DCHECK(instant);
|
|
|