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

Side by Side Diff: views/ime/input_method_base.h

Issue 8491035: Revert 109583 - Move views/ime/text_input_client.h to ui/base/ime/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/ime/input_method.h ('k') | views/ime/input_method_base.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_IME_INPUT_METHOD_BASE_H_ 5 #ifndef VIEWS_IME_INPUT_METHOD_BASE_H_
6 #define VIEWS_IME_INPUT_METHOD_BASE_H_ 6 #define VIEWS_IME_INPUT_METHOD_BASE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "views/focus/focus_manager.h" 11 #include "views/focus/focus_manager.h"
12 #include "views/ime/input_method.h" 12 #include "views/ime/input_method.h"
13 #include "views/ime/input_method_delegate.h" 13 #include "views/ime/input_method_delegate.h"
14 14 #include "views/ime/text_input_client.h"
15 namespace gfx {
16 class Rect;
17 } // namespace gfx
18
19 namespace ui {
20 class TextInputClient;
21 } // namespace ui
22 15
23 namespace views { 16 namespace views {
24 17
25 class View; 18 class View;
26 19
27 // A helper class providing functionalities shared among InputMethod 20 // A helper class providing functionalities shared among InputMethod
28 // implementations. 21 // implementations.
29 class VIEWS_EXPORT InputMethodBase : public InputMethod, 22 class VIEWS_EXPORT InputMethodBase : public InputMethod,
30 public FocusChangeListener { 23 public FocusChangeListener {
31 public: 24 public:
(...skipping 14 matching lines...) Expand all
46 39
47 // If a derived class overrides this method, it should call parent's 40 // If a derived class overrides this method, it should call parent's
48 // implementation first, to make sure |widget_focused_| flag can be updated 41 // implementation first, to make sure |widget_focused_| flag can be updated
49 // correctly. 42 // correctly.
50 virtual void OnBlur() OVERRIDE; 43 virtual void OnBlur() OVERRIDE;
51 44
52 // If a derived class overrides this method, it should call parent's 45 // If a derived class overrides this method, it should call parent's
53 // implementation. 46 // implementation.
54 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; 47 virtual void OnTextInputTypeChanged(View* view) OVERRIDE;
55 48
56 virtual ui::TextInputClient* GetTextInputClient() const OVERRIDE; 49 virtual TextInputClient* GetTextInputClient() const OVERRIDE;
57 virtual ui::TextInputType GetTextInputType() const OVERRIDE; 50 virtual ui::TextInputType GetTextInputType() const OVERRIDE;
58 virtual bool IsMock() const OVERRIDE; 51 virtual bool IsMock() const OVERRIDE;
59 52
60 // Overridden from FocusChangeListener. 53 // Overridden from FocusChangeListener.
61 virtual void OnWillChangeFocus(View* focused_before, View* focused) OVERRIDE; 54 virtual void OnWillChangeFocus(View* focused_before, View* focused) OVERRIDE;
62 virtual void OnDidChangeFocus(View* focused_before, View* focused) OVERRIDE; 55 virtual void OnDidChangeFocus(View* focused_before, View* focused) OVERRIDE;
63 56
64 protected: 57 protected:
65 // Getters and setters of properties. 58 // Getters and setters of properties.
66 internal::InputMethodDelegate* delegate() const { return delegate_; } 59 internal::InputMethodDelegate* delegate() const { return delegate_; }
(...skipping 28 matching lines...) Expand all
95 88
96 // Indicates if the top-level widget is focused or not. 89 // Indicates if the top-level widget is focused or not.
97 bool widget_focused_; 90 bool widget_focused_;
98 91
99 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); 92 DISALLOW_COPY_AND_ASSIGN(InputMethodBase);
100 }; 93 };
101 94
102 } // namespace views 95 } // namespace views
103 96
104 #endif // VIEWS_IME_INPUT_METHOD_BASE_H_ 97 #endif // VIEWS_IME_INPUT_METHOD_BASE_H_
OLDNEW
« no previous file with comments | « views/ime/input_method.h ('k') | views/ime/input_method_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698