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

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

Issue 10416027: Remove virtual keyboard support from ui/views/ime/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « ui/views/ime/input_method_base.cc ('k') | ui/views/ime/text_input_type_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/ime/text_input_type_tracker.h
diff --git a/ui/views/ime/text_input_type_tracker.h b/ui/views/ime/text_input_type_tracker.h
deleted file mode 100644
index aff74c875fb1aa7dcafda940683402983e97a003..0000000000000000000000000000000000000000
--- a/ui/views/ime/text_input_type_tracker.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// 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.
-
-#ifndef UI_VIEWS_IME_TEXT_INPUT_TYPE_TRACKER_H_
-#define UI_VIEWS_IME_TEXT_INPUT_TYPE_TRACKER_H_
-#pragma once
-
-#include "base/memory/singleton.h"
-#include "base/observer_list.h"
-#include "ui/base/ime/text_input_type.h"
-#include "ui/views/views_export.h"
-
-namespace views {
-
-class Widget;
-
-// This interface should be implemented by classes that want to be notified when
-// the text input type of the focused widget is changed or the focused widget is
-// changed.
-class TextInputTypeObserver {
- public:
- // This function will be called, when the text input type of focused |widget|
- // is changed or the the widget is getting/losing focus.
- virtual void TextInputTypeChanged(ui::TextInputType type, Widget* widget) = 0;
-
- protected:
- virtual ~TextInputTypeObserver() {}
-};
-
-// This class is for tracking the text input type of focused widget.
-class VIEWS_EXPORT TextInputTypeTracker {
- public:
- // Returns the singleton instance.
- static TextInputTypeTracker* GetInstance();
-
- // Adds/removes a TextInputTypeObserver |observer| to the set of
- // active observers.
- void AddTextInputTypeObserver(TextInputTypeObserver* observer);
- void RemoveTextInputTypeObserver(TextInputTypeObserver* observer);
-
- // views::InputMethod should call this function with new text input |type| and
- // the |widget| associated with the input method, when the text input type
- // is changed.
- // Note: The widget should have focus or is losing focus.
- void OnTextInputTypeChanged(ui::TextInputType type, Widget* widget);
-
- private:
- TextInputTypeTracker();
- ~TextInputTypeTracker();
-
- ObserverList<TextInputTypeObserver> text_input_type_observers_;
-
- friend struct DefaultSingletonTraits<TextInputTypeTracker>;
- DISALLOW_COPY_AND_ASSIGN(TextInputTypeTracker);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_IME_TEXT_INPUT_TYPE_TRACKER_H_
« no previous file with comments | « ui/views/ime/input_method_base.cc ('k') | ui/views/ime/text_input_type_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698