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

Unified Diff: views/ime/text_input_type_tracker.cc

Issue 7217008: Use input method to control visibility of virtual keyboard (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebase Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/ime/text_input_type_tracker.h ('k') | views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/ime/text_input_type_tracker.cc
diff --git a/views/ime/text_input_type_tracker.cc b/views/ime/text_input_type_tracker.cc
new file mode 100644
index 0000000000000000000000000000000000000000..83412be305b2ade07674565d6e96b63669c1571b
--- /dev/null
+++ b/views/ime/text_input_type_tracker.cc
@@ -0,0 +1,37 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "views/ime/text_input_type_tracker.h"
+
+namespace views {
+
+void TextInputTypeTracker::AddTextInputTypeObserver(
+ TextInputTypeObserver* observer) {
+ text_input_type_observers_.AddObserver(observer);
+}
+
+void TextInputTypeTracker::RemoveTextInputTypeObserver(
+ TextInputTypeObserver* observer) {
+ text_input_type_observers_.RemoveObserver(observer);
+}
+
+void TextInputTypeTracker::OnTextInputTypeChanged(
+ ui::TextInputType type, Widget* widget) {
+ FOR_EACH_OBSERVER(TextInputTypeObserver,
+ text_input_type_observers_,
+ TextInputTypeChanged(type, widget));
+}
+
+TextInputTypeTracker::TextInputTypeTracker() {
+}
+
+TextInputTypeTracker::~TextInputTypeTracker() {
+}
+
+// static
+TextInputTypeTracker* TextInputTypeTracker::GetInstance() {
+ return Singleton<TextInputTypeTracker>::get();
+}
+
+} // namespace views
« no previous file with comments | « views/ime/text_input_type_tracker.h ('k') | views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698