OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/fonts_languages_window.h" | 5 #include "chrome/browser/fonts_languages_window.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "chrome/browser/gtk/gtk_util.h" | 11 #include "chrome/browser/gtk/gtk_util.h" |
12 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/gtk/options/fonts_page_gtk.h" | 13 #include "chrome/browser/gtk/options/fonts_page_gtk.h" |
14 #include "chrome/browser/gtk/options/languages_page_gtk.h" | 14 #include "chrome/browser/gtk/options/languages_page_gtk.h" |
15 #include "grit/chromium_strings.h" | 15 #include "grit/chromium_strings.h" |
16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
17 | 17 |
18 /////////////////////////////////////////////////////////////////////////////// | 18 /////////////////////////////////////////////////////////////////////////////// |
19 // FontsLanguagesWindowGtk | 19 // FontsLanguagesWindowGtk |
20 // | 20 // |
21 // The contents of the Options dialog window. | 21 // The contents of the Options dialog window. |
22 | 22 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 FontsLanguagesPage page, | 140 FontsLanguagesPage page, |
141 Profile* profile) { | 141 Profile* profile) { |
142 DCHECK(profile); | 142 DCHECK(profile); |
143 // If there's already an existing fonts and language window, activate it and | 143 // If there's already an existing fonts and language window, activate it and |
144 // switch to the specified page. | 144 // switch to the specified page. |
145 if (!instance_) | 145 if (!instance_) |
146 instance_ = new FontsLanguagesWindowGtk(profile); | 146 instance_ = new FontsLanguagesWindowGtk(profile); |
147 | 147 |
148 instance_->ShowTabPage(window, page); | 148 instance_->ShowTabPage(window, page); |
149 } | 149 } |
OLD | NEW |