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

Unified Diff: chrome/browser/views/options/fonts_languages_window_view.cc

Issue 15031: Input box's context menu/language settings should set ... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years 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/browser/views/options/fonts_languages_window_view.h ('k') | chrome/views/tabbed_pane.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/options/fonts_languages_window_view.cc
===================================================================
--- chrome/browser/views/options/fonts_languages_window_view.cc (revision 7195)
+++ chrome/browser/views/options/fonts_languages_window_view.cc (working copy)
@@ -73,6 +73,10 @@
IDS_FONTSLANG_DIALOG_HEIGHT_LINES));
}
+void FontsLanguagesWindowView::SelectLanguagesTab() {
+ tabs_->SelectTabForContents(languages_page_);
+}
+
void FontsLanguagesWindowView::ViewHierarchyChanged(
bool is_add, views::View* parent, views::View* child) {
// Can't init before we're inserted into a Container, because we require
@@ -89,11 +93,11 @@
AddChildView(tabs_);
fonts_page_ = new FontsPageView(profile_);
- tabs_->AddTabAtIndex(0, l10n_util::GetString(
- IDS_FONT_LANGUAGE_SETTING_FONT_TAB_TITLE), fonts_page_, true);
+ tabs_->AddTab(l10n_util::GetString(
+ IDS_FONT_LANGUAGE_SETTING_FONT_TAB_TITLE), fonts_page_);
languages_page_ = new LanguagesPageView(profile_);
- tabs_->AddTabAtIndex(1, l10n_util::GetString(
- IDS_FONT_LANGUAGE_SETTING_LANGUAGES_TAB_TITLE), languages_page_, true);
+ tabs_->AddTab(l10n_util::GetString(
+ IDS_FONT_LANGUAGE_SETTING_LANGUAGES_TAB_TITLE), languages_page_);
}
« no previous file with comments | « chrome/browser/views/options/fonts_languages_window_view.h ('k') | chrome/views/tabbed_pane.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698