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

Side by Side Diff: ui/base/ime/dummy_input_method.cc

Issue 23478020: Makes sure that an input method doesn't reference to a destroyed object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Worked on nits. Created 7 years, 3 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/dummy_input_method.h ('k') | ui/base/ime/fake_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 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 #include "ui/base/ime/dummy_input_method.h" 5 #include "ui/base/ime/dummy_input_method.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 DummyInputMethod::DummyInputMethod() { 9 DummyInputMethod::DummyInputMethod() {
10 } 10 }
(...skipping 14 matching lines...) Expand all
25 } 25 }
26 26
27 bool DummyInputMethod::OnUntranslatedIMEMessage(const base::NativeEvent& event, 27 bool DummyInputMethod::OnUntranslatedIMEMessage(const base::NativeEvent& event,
28 NativeEventResult* result) { 28 NativeEventResult* result) {
29 return false; 29 return false;
30 } 30 }
31 31
32 void DummyInputMethod::SetFocusedTextInputClient(TextInputClient* client) { 32 void DummyInputMethod::SetFocusedTextInputClient(TextInputClient* client) {
33 } 33 }
34 34
35 void DummyInputMethod::DetachTextInputClient(TextInputClient* client) {
36 }
37
35 TextInputClient* DummyInputMethod::GetTextInputClient() const { 38 TextInputClient* DummyInputMethod::GetTextInputClient() const {
36 return NULL; 39 return NULL;
37 } 40 }
38 41
39 bool DummyInputMethod::DispatchKeyEvent(const base::NativeEvent& event) { 42 bool DummyInputMethod::DispatchKeyEvent(const base::NativeEvent& event) {
40 return false; 43 return false;
41 } 44 }
42 45
43 bool DummyInputMethod::DispatchFabricatedKeyEvent(const ui::KeyEvent& event) { 46 bool DummyInputMethod::DispatchFabricatedKeyEvent(const ui::KeyEvent& event) {
44 return false; 47 return false;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 88 }
86 89
87 void DummyInputMethod::AddObserver(InputMethodObserver* observer) { 90 void DummyInputMethod::AddObserver(InputMethodObserver* observer) {
88 } 91 }
89 92
90 void DummyInputMethod::RemoveObserver(InputMethodObserver* observer) { 93 void DummyInputMethod::RemoveObserver(InputMethodObserver* observer) {
91 } 94 }
92 95
93 } // namespace ui 96 } // namespace ui
94 97
OLDNEW
« no previous file with comments | « ui/base/ime/dummy_input_method.h ('k') | ui/base/ime/fake_input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698