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

Unified Diff: chrome/browser/views/first_run_search_engine_view.cc

Issue 3198006: Fix search engine dialog top image for RTL languages. The search engine dial... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/first_run_search_engine_view.cc
===================================================================
--- chrome/browser/views/first_run_search_engine_view.cc (revision 56873)
+++ chrome/browser/views/first_run_search_engine_view.cc (working copy)
@@ -244,7 +244,13 @@
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
background_image_ = new views::ImageView();
- background_image_->SetImage(rb.GetBitmapNamed(IDR_SEARCH_ENGINE_DIALOG_TOP));
+ if (text_direction_is_rtl_) {
+ background_image_->SetImage(rb.GetBitmapNamed(
+ IDR_SEARCH_ENGINE_DIALOG_TOP_RTL));
+ } else {
+ background_image_->SetImage(rb.GetBitmapNamed(
+ IDR_SEARCH_ENGINE_DIALOG_TOP));
+ }
background_image_->SetHorizontalAlignment(ImageView::TRAILING);
AddChildView(background_image_);
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698