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

Side by Side Diff: ui/base/ime/input_method_observer.h

Issue 13932030: Delayed loading of the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix failing test Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/ime/input_method_base.cc ('k') | ui/base/ime/mock_input_method.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BASE_IME_INPUT_METHOD_OBSERVER_H_ 5 #ifndef UI_BASE_IME_INPUT_METHOD_OBSERVER_H_
6 #define UI_BASE_IME_INPUT_METHOD_OBSERVER_H_ 6 #define UI_BASE_IME_INPUT_METHOD_OBSERVER_H_
7 7
8 #include "ui/base/ui_export.h" 8 #include "ui/base/ui_export.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 class InputMethod;
12 class TextInputClient; 13 class TextInputClient;
13 14
14 class UI_EXPORT InputMethodObserver { 15 class UI_EXPORT InputMethodObserver {
15 public: 16 public:
16 virtual ~InputMethodObserver() {} 17 virtual ~InputMethodObserver() {}
17 18
18 // Called when either: 19 // Called when either:
19 // - the TextInputClient is changed (e.g. by a change of focus) 20 // - the TextInputClient is changed (e.g. by a change of focus)
20 // - the TextInputType of the TextInputClient changes 21 // - the TextInputType of the TextInputClient changes
21 virtual void OnTextInputStateChanged(const TextInputClient* client) = 0; 22 virtual void OnTextInputStateChanged(const TextInputClient* client) = 0;
23
24 // Called when the observed InputMethod is being destroyed.
25 virtual void OnInputMethodDestroyed(const InputMethod* input_method) = 0;
22 }; 26 };
23 27
24 } // namespace ui 28 } // namespace ui
25 29
26 #endif // UI_BASE_IME_INPUT_METHOD_OBSERVER_H_ 30 #endif // UI_BASE_IME_INPUT_METHOD_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_base.cc ('k') | ui/base/ime/mock_input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698