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

Side by Side Diff: ui/views/ime/input_method_bridge.cc

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/input_method_bridge.h ('k') | ui/views/ime/mock_input_method.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/views/ime/input_method_bridge.h" 5 #include "ui/views/ime/input_method_bridge.h"
6 6
7 #include "ui/base/ime/input_method.h" 7 #include "ui/base/ime/input_method.h"
8 #include "ui/base/ime/input_method_observer.h" 8 #include "ui/base/ime/input_method_observer.h"
9 #include "ui/events/event.h" 9 #include "ui/events/event.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 #include "ui/views/view.h" 11 #include "ui/views/view.h"
12 #include "ui/views/widget/widget.h" 12 #include "ui/views/widget/widget.h"
13 13
14 namespace views { 14 namespace views {
15 15
16 // InputMethodBridge::HostObserver class --------------------------------------- 16 // InputMethodBridge::HostObserver class ---------------------------------------
17 17
18 // An observer class for observing the host input method. When the host input 18 // An observer class for observing the host input method. When the host input
19 // method is destroyed, it will null out the |host_| field on the 19 // method is destroyed, it will null out the |host_| field on the
20 // InputMethodBridge object. 20 // InputMethodBridge object.
21 class InputMethodBridge::HostObserver : public ui::InputMethodObserver { 21 class InputMethodBridge::HostObserver : public ui::InputMethodObserver {
22 public: 22 public:
23 explicit HostObserver(InputMethodBridge* bridge); 23 explicit HostObserver(InputMethodBridge* bridge);
24 virtual ~HostObserver(); 24 virtual ~HostObserver();
25 25
26 virtual void OnTextInputTypeChanged( 26 virtual void OnTextInputTypeChanged(
27 const ui::TextInputClient* client) OVERRIDE {} 27 const ui::TextInputClient* client) override {}
28 virtual void OnFocus() OVERRIDE {} 28 virtual void OnFocus() override {}
29 virtual void OnBlur() OVERRIDE {} 29 virtual void OnBlur() override {}
30 virtual void OnCaretBoundsChanged( 30 virtual void OnCaretBoundsChanged(
31 const ui::TextInputClient* client) OVERRIDE {} 31 const ui::TextInputClient* client) override {}
32 virtual void OnTextInputStateChanged( 32 virtual void OnTextInputStateChanged(
33 const ui::TextInputClient* client) OVERRIDE {} 33 const ui::TextInputClient* client) override {}
34 virtual void OnInputMethodDestroyed( 34 virtual void OnInputMethodDestroyed(
35 const ui::InputMethod* input_method) OVERRIDE; 35 const ui::InputMethod* input_method) override;
36 virtual void OnShowImeIfNeeded() OVERRIDE {} 36 virtual void OnShowImeIfNeeded() override {}
37 37
38 private: 38 private:
39 InputMethodBridge* bridge_; 39 InputMethodBridge* bridge_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(HostObserver); 41 DISALLOW_COPY_AND_ASSIGN(HostObserver);
42 }; 42 };
43 43
44 InputMethodBridge::HostObserver::HostObserver(InputMethodBridge* bridge) 44 InputMethodBridge::HostObserver::HostObserver(InputMethodBridge* bridge)
45 : bridge_(bridge) { 45 : bridge_(bridge) {
46 bridge_->host_->AddObserver(this); 46 bridge_->host_->AddObserver(this);
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 OnTextInputTypeChanged(focused); 339 OnTextInputTypeChanged(focused);
340 OnCaretBoundsChanged(focused); 340 OnCaretBoundsChanged(focused);
341 } 341 }
342 342
343 ui::InputMethod* InputMethodBridge::GetHostInputMethod() const { 343 ui::InputMethod* InputMethodBridge::GetHostInputMethod() const {
344 return host_; 344 return host_;
345 } 345 }
346 346
347 347
348 } // namespace views 348 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/ime/input_method_bridge.h ('k') | ui/views/ime/mock_input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698