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

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

Issue 826713002: [ChromeOS] Show autofill popup after keyboard (if any) is shown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void OnInputMethodChanged() override; 74 void OnInputMethodChanged() override;
75 bool ChangeTextDirectionAndLayoutAlignment( 75 bool ChangeTextDirectionAndLayoutAlignment(
76 base::i18n::TextDirection direction) override; 76 base::i18n::TextDirection direction) override;
77 void ExtendSelectionAndDelete(size_t before, size_t after) override; 77 void ExtendSelectionAndDelete(size_t before, size_t after) override;
78 void EnsureCaretInRect(const gfx::Rect& rect) override; 78 void EnsureCaretInRect(const gfx::Rect& rect) override;
79 void OnCandidateWindowShown() override; 79 void OnCandidateWindowShown() override;
80 void OnCandidateWindowUpdated() override; 80 void OnCandidateWindowUpdated() override;
81 void OnCandidateWindowHidden() override; 81 void OnCandidateWindowHidden() override;
82 bool IsEditingCommandEnabled(int command_id) override; 82 bool IsEditingCommandEnabled(int command_id) override;
83 void ExecuteEditingCommand(int command_id) override; 83 void ExecuteEditingCommand(int command_id) override;
84 void OnKeyboardBoundsUnchanged() override;
84 85
85 // Overridden from FocusChangeListener. 86 // Overridden from FocusChangeListener.
86 void OnWillChangeFocus(View* focused_before, View* focused) override; 87 void OnWillChangeFocus(View* focused_before, View* focused) override;
87 void OnDidChangeFocus(View* focused_before, View* focused) override; 88 void OnDidChangeFocus(View* focused_before, View* focused) override;
88 89
89 ui::InputMethod* GetHostInputMethod() const; 90 ui::InputMethod* GetHostInputMethod() const;
90 91
91 private: 92 private:
92 class HostObserver; 93 class HostObserver;
93 94
94 void UpdateViewFocusState(); 95 void UpdateViewFocusState();
95 96
96 ui::InputMethod* host_; 97 ui::InputMethod* host_;
97 98
98 // An observer observing the host input method for cases that the host input 99 // An observer observing the host input method for cases that the host input
99 // method is destroyed before this bridge input method. 100 // method is destroyed before this bridge input method.
100 scoped_ptr<HostObserver> host_observer_; 101 scoped_ptr<HostObserver> host_observer_;
101 102
102 const bool shared_input_method_; 103 const bool shared_input_method_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(InputMethodBridge); 105 DISALLOW_COPY_AND_ASSIGN(InputMethodBridge);
105 }; 106 };
106 107
107 } // namespace views 108 } // namespace views
108 109
109 #endif // UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ 110 #endif // UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698