OLD | NEW |
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 // The languages page of the Languages & languages options dialog, which | 5 // The languages page of the Languages & languages options dialog, which |
6 // contains accept-languages and spellchecker language options. | 6 // contains accept-languages and spellchecker language options. |
7 // | 7 // |
8 // Note that we intentionally do not implement the application locale setting, | 8 // Note that we intentionally do not implement the application locale setting, |
9 // as it does not make sense on Linux, where locale is set through the LANG and | 9 // as it does not make sense on Linux, where locale is set through the LANG and |
10 // LC_* environment variables. | 10 // LC_* environment variables. |
11 | 11 |
12 #ifndef CHROME_BROWSER_GTK_OPTIONS_LANGUAGES_PAGE_GTK_H_ | 12 #ifndef CHROME_BROWSER_GTK_OPTIONS_LANGUAGES_PAGE_GTK_H_ |
13 #define CHROME_BROWSER_GTK_OPTIONS_LANGUAGES_PAGE_GTK_H_ | 13 #define CHROME_BROWSER_GTK_OPTIONS_LANGUAGES_PAGE_GTK_H_ |
14 #pragma once | 14 #pragma once |
15 | 15 |
16 #include <gtk/gtk.h> | 16 #include <gtk/gtk.h> |
17 | 17 |
18 #include <string> | 18 #include <string> |
19 | 19 |
20 #include "app/gtk_signal.h" | 20 #include "app/gtk_signal.h" |
21 #include "base/gtest_prod_util.h" | 21 #include "base/gtest_prod_util.h" |
22 #include "base/scoped_ptr.h" | 22 #include "base/scoped_ptr.h" |
23 #include "chrome/browser/gtk/gtk_tree.h" | 23 #include "chrome/browser/gtk/gtk_tree.h" |
24 #include "chrome/browser/pref_member.h" | |
25 #include "chrome/browser/options_page_base.h" | 24 #include "chrome/browser/options_page_base.h" |
| 25 #include "chrome/browser/prefs/pref_member.h" |
26 | 26 |
27 class LanguageComboboxModel; | 27 class LanguageComboboxModel; |
28 class LanguageOrderTableModel; | 28 class LanguageOrderTableModel; |
29 | 29 |
30 class LanguagesPageGtk | 30 class LanguagesPageGtk |
31 : public OptionsPageBase, | 31 : public OptionsPageBase, |
32 public gtk_tree::TableAdapter::Delegate { | 32 public gtk_tree::TableAdapter::Delegate { |
33 public: | 33 public: |
34 explicit LanguagesPageGtk(Profile* profile); | 34 explicit LanguagesPageGtk(Profile* profile); |
35 virtual ~LanguagesPageGtk(); | 35 virtual ~LanguagesPageGtk(); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 FRIEND_TEST_ALL_PREFIXES(LanguagesPageGtkTest, RemoveMultipleAcceptLang); | 123 FRIEND_TEST_ALL_PREFIXES(LanguagesPageGtkTest, RemoveMultipleAcceptLang); |
124 FRIEND_TEST_ALL_PREFIXES(LanguagesPageGtkTest, MoveAcceptLang); | 124 FRIEND_TEST_ALL_PREFIXES(LanguagesPageGtkTest, MoveAcceptLang); |
125 FRIEND_TEST_ALL_PREFIXES(LanguagesPageGtkTest, AddAcceptLang); | 125 FRIEND_TEST_ALL_PREFIXES(LanguagesPageGtkTest, AddAcceptLang); |
126 FRIEND_TEST_ALL_PREFIXES(LanguagesPageGtkTest, EnableSpellChecking); | 126 FRIEND_TEST_ALL_PREFIXES(LanguagesPageGtkTest, EnableSpellChecking); |
127 FRIEND_TEST_ALL_PREFIXES(LanguagesPageGtkTest, DictionaryLanguage); | 127 FRIEND_TEST_ALL_PREFIXES(LanguagesPageGtkTest, DictionaryLanguage); |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(LanguagesPageGtk); | 129 DISALLOW_COPY_AND_ASSIGN(LanguagesPageGtk); |
130 }; | 130 }; |
131 | 131 |
132 #endif // CHROME_BROWSER_GTK_OPTIONS_LANGUAGES_PAGE_GTK_H_ | 132 #endif // CHROME_BROWSER_GTK_OPTIONS_LANGUAGES_PAGE_GTK_H_ |
OLD | NEW |