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

Side by Side Diff: ui/base/ime/chromeos/fake_input_method_delegate.h

Issue 853073002: Update {virtual,override,final} to follow C++11 style in ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « ui/base/ime/chromeos/fake_ime_keyboard.h ('k') | ui/base/ime/chromeos/ime_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef UI_BASE_IME_CHROMEOS_FAKE_INPUT_METHOD_DELEGATE_H_ 5 #ifndef UI_BASE_IME_CHROMEOS_FAKE_INPUT_METHOD_DELEGATE_H_
6 #define UI_BASE_IME_CHROMEOS_FAKE_INPUT_METHOD_DELEGATE_H_ 6 #define UI_BASE_IME_CHROMEOS_FAKE_INPUT_METHOD_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "ui/base/ime/chromeos/input_method_delegate.h" 13 #include "ui/base/ime/chromeos/input_method_delegate.h"
14 #include "ui/base/ui_base_export.h" 14 #include "ui/base/ui_base_export.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 namespace input_method { 17 namespace input_method {
18 18
19 class UI_BASE_EXPORT FakeInputMethodDelegate : public InputMethodDelegate { 19 class UI_BASE_EXPORT FakeInputMethodDelegate : public InputMethodDelegate {
20 public: 20 public:
21 typedef base::Callback<base::string16 (const std::string& language_code)> 21 typedef base::Callback<base::string16 (const std::string& language_code)>
22 LanguageNameLocalizationCallback; 22 LanguageNameLocalizationCallback;
23 typedef base::Callback<base::string16 (int resource_id)> 23 typedef base::Callback<base::string16 (int resource_id)>
24 GetLocalizedStringCallback; 24 GetLocalizedStringCallback;
25 25
26 FakeInputMethodDelegate(); 26 FakeInputMethodDelegate();
27 virtual ~FakeInputMethodDelegate(); 27 ~FakeInputMethodDelegate() override;
28 28
29 // InputMethodDelegate implementation: 29 // InputMethodDelegate implementation:
30 virtual std::string GetHardwareKeyboardLayouts() const override; 30 std::string GetHardwareKeyboardLayouts() const override;
31 virtual base::string16 GetLocalizedString(int resource_id) const override; 31 base::string16 GetLocalizedString(int resource_id) const override;
32 virtual void SetHardwareKeyboardLayoutForTesting( 32 void SetHardwareKeyboardLayoutForTesting(const std::string& layout) override;
33 const std::string& layout) override; 33 base::string16 GetDisplayLanguageName(
34 virtual base::string16 GetDisplayLanguageName(
35 const std::string& language_code) const override; 34 const std::string& language_code) const override;
36 35
37 void set_hardware_keyboard_layout(const std::string& value) { 36 void set_hardware_keyboard_layout(const std::string& value) {
38 hardware_keyboard_layout_ = value; 37 hardware_keyboard_layout_ = value;
39 } 38 }
40 39
41 void set_active_locale(const std::string& value) { 40 void set_active_locale(const std::string& value) {
42 active_locale_ = value; 41 active_locale_ = value;
43 } 42 }
44 43
(...skipping 12 matching lines...) Expand all
57 std::string active_locale_; 56 std::string active_locale_;
58 LanguageNameLocalizationCallback get_display_language_name_callback_; 57 LanguageNameLocalizationCallback get_display_language_name_callback_;
59 GetLocalizedStringCallback get_localized_string_callback_; 58 GetLocalizedStringCallback get_localized_string_callback_;
60 DISALLOW_COPY_AND_ASSIGN(FakeInputMethodDelegate); 59 DISALLOW_COPY_AND_ASSIGN(FakeInputMethodDelegate);
61 }; 60 };
62 61
63 } // namespace input_method 62 } // namespace input_method
64 } // namespace chromeos 63 } // namespace chromeos
65 64
66 #endif // UI_BASE_IME_CHROMEOS_FAKE_INPUT_METHOD_DELEGATE_H_ 65 #endif // UI_BASE_IME_CHROMEOS_FAKE_INPUT_METHOD_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/fake_ime_keyboard.h ('k') | ui/base/ime/chromeos/ime_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698