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

Side by Side Diff: chrome/browser/chromeos/options/language_hangul_config_view.h

Issue 6336005: Remove unused language options code, which has been superseded by DOMUI. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 11 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
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_HANGUL_CONFIG_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_HANGUL_CONFIG_VIEW_H_
7 #pragma once
8
9 #include <string>
10
11 #include "base/scoped_ptr.h"
12 #include "chrome/browser/chromeos/cros/input_method_library.h"
13 #include "chrome/browser/prefs/pref_member.h"
14 #include "chrome/browser/ui/views/options/options_page_view.h"
15 #include "views/controls/combobox/combobox.h"
16 #include "views/controls/label.h"
17 #include "views/window/dialog_delegate.h"
18
19 namespace chromeos {
20
21 class HangulKeyboardComboboxModel;
22
23 // A dialog box for showing Korean input method preferences.
24 class LanguageHangulConfigView : public views::Combobox::Listener,
25 public views::DialogDelegate,
26 public OptionsPageView {
27 public:
28 explicit LanguageHangulConfigView(Profile* profile);
29 virtual ~LanguageHangulConfigView();
30
31 // views::Combobox::Listener overrides.
32 virtual void ItemChanged(views::Combobox* sender,
33 int prev_index,
34 int new_index);
35
36 // views::DialogDelegate overrides.
37 virtual bool IsModal() const { return true; }
38 virtual views::View* GetContentsView() { return this; }
39 virtual int GetDialogButtons() const;
40 virtual std::wstring GetDialogButtonLabel(
41 MessageBoxFlags::DialogButton button) const;
42 virtual std::wstring GetWindowTitle() const;
43
44 // views::View overrides.
45 virtual void Layout();
46 virtual gfx::Size GetPreferredSize();
47
48 // OptionsPageView overrides.
49 virtual void InitControlLayout();
50
51 // NotificationObserver overrides.
52 virtual void Observe(NotificationType type,
53 const NotificationSource& source,
54 const NotificationDetails& details);
55
56 private:
57 // Updates the hangul keyboard combobox.
58 void NotifyPrefChanged();
59
60 StringPrefMember keyboard_pref_;
61 views::View* contents_;
62
63 // A combobox for Hangul keyboard layouts and its model.
64 views::Combobox* hangul_keyboard_combobox_;
65 scoped_ptr<HangulKeyboardComboboxModel> hangul_keyboard_combobox_model_;
66
67 DISALLOW_COPY_AND_ASSIGN(LanguageHangulConfigView);
68 };
69
70 } // namespace chromeos
71
72 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_HANGUL_CONFIG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698