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

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

Issue 8509034: Move views/ime/text_input_client.h to ui/base/ime/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more win_shared fix 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 #include "views/ime/text_input_client.h" 14
15 namespace gfx {
16 class Rect;
17 } // namespace gfx
18
19 namespace ui {
20 class TextInputClient;
21 } // namespace ui
15 22
16 namespace views { 23 namespace views {
17 24
18 class View; 25 class View;
19 26
20 // A helper class providing functionalities shared among InputMethod 27 // A helper class providing functionalities shared among InputMethod
21 // implementations. 28 // implementations.
22 class VIEWS_EXPORT InputMethodBase : public InputMethod, 29 class VIEWS_EXPORT InputMethodBase : public InputMethod,
23 public FocusChangeListener { 30 public FocusChangeListener {
24 public: 31 public:
(...skipping 14 matching lines...) Expand all
39 46
40 // If a derived class overrides this method, it should call parent's 47 // If a derived class overrides this method, it should call parent's
41 // implementation first, to make sure |widget_focused_| flag can be updated 48 // implementation first, to make sure |widget_focused_| flag can be updated
42 // correctly. 49 // correctly.
43 virtual void OnBlur() OVERRIDE; 50 virtual void OnBlur() OVERRIDE;
44 51
45 // If a derived class overrides this method, it should call parent's 52 // If a derived class overrides this method, it should call parent's
46 // implementation. 53 // implementation.
47 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; 54 virtual void OnTextInputTypeChanged(View* view) OVERRIDE;
48 55
49 virtual TextInputClient* GetTextInputClient() const OVERRIDE; 56 virtual ui::TextInputClient* GetTextInputClient() const OVERRIDE;
50 virtual ui::TextInputType GetTextInputType() const OVERRIDE; 57 virtual ui::TextInputType GetTextInputType() const OVERRIDE;
51 virtual bool IsMock() const OVERRIDE; 58 virtual bool IsMock() const OVERRIDE;
52 59
53 // Overridden from FocusChangeListener. 60 // Overridden from FocusChangeListener.
54 virtual void OnWillChangeFocus(View* focused_before, View* focused) OVERRIDE; 61 virtual void OnWillChangeFocus(View* focused_before, View* focused) OVERRIDE;
55 virtual void OnDidChangeFocus(View* focused_before, View* focused) OVERRIDE; 62 virtual void OnDidChangeFocus(View* focused_before, View* focused) OVERRIDE;
56 63
57 protected: 64 protected:
58 // Getters and setters of properties. 65 // Getters and setters of properties.
59 internal::InputMethodDelegate* delegate() const { return delegate_; } 66 internal::InputMethodDelegate* delegate() const { return delegate_; }
(...skipping 28 matching lines...) Expand all
88 95
89 // Indicates if the top-level widget is focused or not. 96 // Indicates if the top-level widget is focused or not.
90 bool widget_focused_; 97 bool widget_focused_;
91 98
92 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); 99 DISALLOW_COPY_AND_ASSIGN(InputMethodBase);
93 }; 100 };
94 101
95 } // namespace views 102 } // namespace views
96 103
97 #endif // VIEWS_IME_INPUT_METHOD_BASE_H_ 104 #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