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

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

Issue 80583002: [FYI] All-in-one OnCandidateWindow{Show,Update,Hide} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 #ifndef UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_
6 #define UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ 6 #define UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual bool GetSelectionRange(gfx::Range* range) const OVERRIDE; 69 virtual bool GetSelectionRange(gfx::Range* range) const OVERRIDE;
70 virtual bool SetSelectionRange(const gfx::Range& range) OVERRIDE; 70 virtual bool SetSelectionRange(const gfx::Range& range) OVERRIDE;
71 virtual bool DeleteRange(const gfx::Range& range) OVERRIDE; 71 virtual bool DeleteRange(const gfx::Range& range) OVERRIDE;
72 virtual bool GetTextFromRange(const gfx::Range& range, 72 virtual bool GetTextFromRange(const gfx::Range& range,
73 string16* text) const OVERRIDE; 73 string16* text) const OVERRIDE;
74 virtual void OnInputMethodChanged() OVERRIDE; 74 virtual void OnInputMethodChanged() OVERRIDE;
75 virtual bool ChangeTextDirectionAndLayoutAlignment( 75 virtual bool ChangeTextDirectionAndLayoutAlignment(
76 base::i18n::TextDirection direction) OVERRIDE; 76 base::i18n::TextDirection direction) OVERRIDE;
77 virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE; 77 virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE;
78 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE; 78 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE;
79 virtual void OnCandidateWindowShow() OVERRIDE;
80 virtual void OnCandidateWindowUpdate() OVERRIDE;
81 virtual void OnCandidateWindowHide() OVERRIDE;
79 82
80 // Overridden from FocusChangeListener. 83 // Overridden from FocusChangeListener.
81 virtual void OnWillChangeFocus(View* focused_before, View* focused) OVERRIDE; 84 virtual void OnWillChangeFocus(View* focused_before, View* focused) OVERRIDE;
82 virtual void OnDidChangeFocus(View* focused_before, View* focused) OVERRIDE; 85 virtual void OnDidChangeFocus(View* focused_before, View* focused) OVERRIDE;
83 86
84 ui::InputMethod* GetHostInputMethod() const; 87 ui::InputMethod* GetHostInputMethod() const;
85 88
86 private: 89 private:
87 class HostObserver; 90 class HostObserver;
88 91
89 void UpdateViewFocusState(); 92 void UpdateViewFocusState();
90 93
91 ui::InputMethod* host_; 94 ui::InputMethod* host_;
92 95
93 // An observer observing the host input method for cases that the host input 96 // An observer observing the host input method for cases that the host input
94 // method is destroyed before this bridge input method. 97 // method is destroyed before this bridge input method.
95 scoped_ptr<HostObserver> host_observer_; 98 scoped_ptr<HostObserver> host_observer_;
96 99
97 const bool shared_input_method_; 100 const bool shared_input_method_;
98 101
99 DISALLOW_COPY_AND_ASSIGN(InputMethodBridge); 102 DISALLOW_COPY_AND_ASSIGN(InputMethodBridge);
100 }; 103 };
101 104
102 } // namespace views 105 } // namespace views
103 106
104 #endif // UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ 107 #endif // UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698