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

Side by Side Diff: ui/base/ime/input_method_tsf.h

Issue 23615013: Completes crrev.com/23478020 and makes sure of detachment from IME. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | ui/base/ime/input_method_tsf.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_INPUT_METHOD_TSF_H_ 5 #ifndef UI_BASE_IME_INPUT_METHOD_TSF_H_
6 #define UI_BASE_IME_INPUT_METHOD_TSF_H_ 6 #define UI_BASE_IME_INPUT_METHOD_TSF_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 14 matching lines...) Expand all
25 25
26 // Overridden from InputMethod: 26 // Overridden from InputMethod:
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 OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; 31 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE;
32 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; 32 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE;
33 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; 33 virtual void CancelComposition(const TextInputClient* client) OVERRIDE;
34 virtual void SetFocusedTextInputClient(TextInputClient* client) OVERRIDE; 34 virtual void SetFocusedTextInputClient(TextInputClient* client) OVERRIDE;
35 virtual void DetachTextInputClient(TextInputClient* client) OVERRIDE;
35 virtual bool IsCandidatePopupOpen() const OVERRIDE; 36 virtual bool IsCandidatePopupOpen() const OVERRIDE;
36 37
37 // Overridden from InputMethodBase: 38 // Overridden from InputMethodBase:
38 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, 39 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before,
39 TextInputClient* focused) OVERRIDE; 40 TextInputClient* focused) OVERRIDE;
40 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, 41 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before,
41 TextInputClient* focused) OVERRIDE; 42 TextInputClient* focused) OVERRIDE;
42 43
43 private: 44 private:
44 class TSFEventObserver; 45 class TSFEventObserver;
45 46
46 // Asks the client to confirm current composition text. 47 // Asks the client to confirm current composition text.
47 void ConfirmCompositionText(); 48 void ConfirmCompositionText();
48 49
49 // Returns true if the Win32 native window bound to |client| has Win32 input 50 // Returns true if the Win32 native window bound to |client| has Win32 input
50 // focus. 51 // focus.
51 bool IsWindowFocused(const TextInputClient* client) const; 52 bool IsWindowFocused(const TextInputClient* client) const;
52 53
53 // TSF event router and observer. 54 // TSF event router and observer.
54 scoped_ptr<TSFEventObserver> tsf_event_observer_; 55 scoped_ptr<TSFEventObserver> tsf_event_observer_;
55 scoped_ptr<TSFEventRouter> tsf_event_router_; 56 scoped_ptr<TSFEventRouter> tsf_event_router_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(InputMethodTSF); 58 DISALLOW_COPY_AND_ASSIGN(InputMethodTSF);
58 }; 59 };
59 60
60 } // namespace ui 61 } // namespace ui
61 62
62 #endif // UI_BASE_IME_INPUT_METHOD_TSF_H_ 63 #endif // UI_BASE_IME_INPUT_METHOD_TSF_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/ime/input_method_tsf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698