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

Side by Side Diff: ui/views/ime/null_input_method.h

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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/views/ime/mock_input_method.h ('k') | ui/views/layout/box_layout.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_VIEWS_IME_NULL_INPUT_METHOD_H_ 5 #ifndef UI_VIEWS_IME_NULL_INPUT_METHOD_H_
6 #define UI_VIEWS_IME_NULL_INPUT_METHOD_H_ 6 #define UI_VIEWS_IME_NULL_INPUT_METHOD_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/views/ime/input_method.h" 10 #include "ui/views/ime/input_method.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 // An implementation of views::InputMethod which does nothing. 14 // An implementation of views::InputMethod which does nothing.
15 // 15 //
16 // We're working on removing views::InputMethod{,Base,Bridge} and going to use 16 // We're working on removing views::InputMethod{,Base,Bridge} and going to use
17 // only ui::InputMethod. Use this class instead of views::InputMethodBridge 17 // only ui::InputMethod. Use this class instead of views::InputMethodBridge
18 // with ui::TextInputFocusManager to effectively eliminate the 18 // with ui::TextInputFocusManager to effectively eliminate the
19 // views::InputMethod layer. 19 // views::InputMethod layer.
20 class NullInputMethod : public InputMethod { 20 class NullInputMethod : public InputMethod {
21 public: 21 public:
22 NullInputMethod(); 22 NullInputMethod();
23 23
24 // Overridden from InputMethod: 24 // Overridden from InputMethod:
25 virtual void SetDelegate(internal::InputMethodDelegate* delegate) OVERRIDE; 25 virtual void SetDelegate(internal::InputMethodDelegate* delegate) override;
26 virtual void Init(Widget* widget) OVERRIDE; 26 virtual void Init(Widget* widget) override;
27 virtual void OnFocus() OVERRIDE; 27 virtual void OnFocus() override;
28 virtual void OnBlur() OVERRIDE; 28 virtual void OnBlur() override;
29 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, 29 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
30 NativeEventResult* result) OVERRIDE; 30 NativeEventResult* result) override;
31 virtual void DispatchKeyEvent(const ui::KeyEvent& key) OVERRIDE; 31 virtual void DispatchKeyEvent(const ui::KeyEvent& key) override;
32 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; 32 virtual void OnTextInputTypeChanged(View* view) override;
33 virtual void OnCaretBoundsChanged(View* view) OVERRIDE; 33 virtual void OnCaretBoundsChanged(View* view) override;
34 virtual void CancelComposition(View* view) OVERRIDE; 34 virtual void CancelComposition(View* view) override;
35 virtual void OnInputLocaleChanged() OVERRIDE; 35 virtual void OnInputLocaleChanged() override;
36 virtual std::string GetInputLocale() OVERRIDE; 36 virtual std::string GetInputLocale() override;
37 virtual bool IsActive() OVERRIDE; 37 virtual bool IsActive() override;
38 virtual ui::TextInputClient* GetTextInputClient() const OVERRIDE; 38 virtual ui::TextInputClient* GetTextInputClient() const override;
39 virtual ui::TextInputType GetTextInputType() const OVERRIDE; 39 virtual ui::TextInputType GetTextInputType() const override;
40 virtual bool IsCandidatePopupOpen() const OVERRIDE; 40 virtual bool IsCandidatePopupOpen() const override;
41 virtual void ShowImeIfNeeded() OVERRIDE; 41 virtual void ShowImeIfNeeded() override;
42 virtual bool IsMock() const OVERRIDE; 42 virtual bool IsMock() const override;
43 43
44 private: 44 private:
45 DISALLOW_COPY_AND_ASSIGN(NullInputMethod); 45 DISALLOW_COPY_AND_ASSIGN(NullInputMethod);
46 }; 46 };
47 47
48 } // namespace views 48 } // namespace views
49 49
50 #endif // UI_VIEWS_IME_NULL_INPUT_METHOD_H_ 50 #endif // UI_VIEWS_IME_NULL_INPUT_METHOD_H_
OLDNEW
« no previous file with comments | « ui/views/ime/mock_input_method.h ('k') | ui/views/layout/box_layout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698