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

Unified Diff: ui/views/ime/input_method_bridge.h

Issue 58903012: Observe in views::InputMethodBridge if host IME is destroyed (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/valgrind/gtest_exclude/ash_unittests.gtest-memcheck.txt ('k') | ui/views/ime/input_method_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/ime/input_method_bridge.h
diff --git a/ui/views/ime/input_method_bridge.h b/ui/views/ime/input_method_bridge.h
index 6e8994689f39080df590b213d2f95594b3ac16a8..0b26fd090e8460f0301b8297e8dbf58fdd9728f6 100644
--- a/ui/views/ime/input_method_bridge.h
+++ b/ui/views/ime/input_method_bridge.h
@@ -84,9 +84,15 @@ class InputMethodBridge : public InputMethodBase,
ui::InputMethod* GetHostInputMethod() const;
private:
+ class HostObserver;
+
void UpdateViewFocusState();
- ui::InputMethod* const host_;
+ ui::InputMethod* host_;
+
+ // An observer observing the host input method for cases that the host input
+ // method is destroyed before this bridge input method.
+ scoped_ptr<HostObserver> host_observer_;
const bool shared_input_method_;
« no previous file with comments | « tools/valgrind/gtest_exclude/ash_unittests.gtest-memcheck.txt ('k') | ui/views/ime/input_method_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698