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

Side by Side Diff: chrome/browser/views/infobars/after_translate_infobar.cc

Issue 3066014: Cleanup: Remove unneeded headers from app/ (part 2) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/views/infobars/after_translate_infobar.h" 5 #include "chrome/browser/views/infobars/after_translate_infobar.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h"
9 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/translate/options_menu_model.h" 9 #include "chrome/browser/translate/options_menu_model.h"
11 #include "chrome/browser/translate/translate_infobar_delegate.h" 10 #include "chrome/browser/translate/translate_infobar_delegate.h"
12 #include "chrome/browser/views/infobars/infobar_button_border.h" 11 #include "chrome/browser/views/infobars/infobar_button_border.h"
13 #include "chrome/browser/views/infobars/infobar_text_button.h" 12 #include "chrome/browser/views/infobars/infobar_text_button.h"
14 #include "grit/app_resources.h" 13 #include "grit/app_resources.h"
15 #include "grit/generated_resources.h" 14 #include "grit/generated_resources.h"
16 #include "views/controls/button/menu_button.h" 15 #include "views/controls/button/menu_button.h"
17 #include "views/controls/button/text_button.h" 16 #include "views/controls/button/text_button.h"
18 #include "views/controls/image_view.h" 17 #include "views/controls/image_view.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 160 }
162 string16 language = 161 string16 language =
163 GetDelegate()->GetLanguageDisplayableNameAt(language_index); 162 GetDelegate()->GetLanguageDisplayableNameAt(language_index);
164 language_button->SetText(UTF16ToWideHack(language)); 163 language_button->SetText(UTF16ToWideHack(language));
165 // The following line is necessary for the preferred size to be recomputed. 164 // The following line is necessary for the preferred size to be recomputed.
166 language_button->ClearMaxTextSize(); 165 language_button->ClearMaxTextSize();
167 // The button may have to grow to show the new text. 166 // The button may have to grow to show the new text.
168 Layout(); 167 Layout();
169 SchedulePaint(); 168 SchedulePaint();
170 } 169 }
OLDNEW
« no previous file with comments | « chrome/browser/views/infobars/after_translate_infobar.h ('k') | chrome/browser/views/infobars/before_translate_infobar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698