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

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

Issue 23245012: Fix Views Combobox and Tree View text input. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nit. Created 7 years, 3 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/views/ime/input_method.h ('k') | ui/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 UI_VIEWS_IME_INPUT_METHOD_BASE_H_ 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_BASE_H_
6 #define UI_VIEWS_IME_INPUT_METHOD_BASE_H_ 6 #define UI_VIEWS_IME_INPUT_METHOD_BASE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/views/focus/focus_manager.h" 10 #include "ui/views/focus/focus_manager.h"
(...skipping 23 matching lines...) Expand all
34 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; 34 virtual void OnTextInputTypeChanged(View* view) OVERRIDE;
35 virtual ui::TextInputClient* GetTextInputClient() const OVERRIDE; 35 virtual ui::TextInputClient* GetTextInputClient() const OVERRIDE;
36 virtual ui::TextInputType GetTextInputType() const OVERRIDE; 36 virtual ui::TextInputType GetTextInputType() const OVERRIDE;
37 virtual bool IsMock() const OVERRIDE; 37 virtual bool IsMock() const OVERRIDE;
38 38
39 // Overridden from FocusChangeListener. 39 // Overridden from FocusChangeListener.
40 virtual void OnWillChangeFocus(View* focused_before, View* focused) OVERRIDE; 40 virtual void OnWillChangeFocus(View* focused_before, View* focused) OVERRIDE;
41 virtual void OnDidChangeFocus(View* focused_before, View* focused) OVERRIDE; 41 virtual void OnDidChangeFocus(View* focused_before, View* focused) OVERRIDE;
42 42
43 protected: 43 protected:
44 internal::InputMethodDelegate* delegate() const { return delegate_; } 44 // Return the widget's focused view.
45 Widget* widget() const { return widget_; }
46 View* GetFocusedView() const; 45 View* GetFocusedView() const;
47 46
48 // Returns true only if the View is focused and its Widget is active. 47 // Returns true only if the View is focused and its Widget is active.
49 bool IsViewFocused(View* view) const; 48 bool IsViewFocused(View* view) const;
50 49
51 // Returns true if there is no focused text input client or its type is none. 50 // Returns true if there is no focused text input client or its type is none.
52 bool IsTextInputTypeNone() const; 51 bool IsTextInputTypeNone() const;
53 52
54 // Calls the focused text input client's OnInputMethodChanged() method. 53 // Calls the focused text input client's OnInputMethodChanged() method.
55 // This has no effect if the text input type is ui::TEXT_INPUT_TYPE_NONE. 54 // This has no effect if the text input type is ui::TEXT_INPUT_TYPE_NONE.
(...skipping 14 matching lines...) Expand all
70 private: 69 private:
71 internal::InputMethodDelegate* delegate_; 70 internal::InputMethodDelegate* delegate_;
72 Widget* widget_; 71 Widget* widget_;
73 72
74 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); 73 DISALLOW_COPY_AND_ASSIGN(InputMethodBase);
75 }; 74 };
76 75
77 } // namespace views 76 } // namespace views
78 77
79 #endif // UI_VIEWS_IME_INPUT_METHOD_BASE_H_ 78 #endif // UI_VIEWS_IME_INPUT_METHOD_BASE_H_
OLDNEW
« no previous file with comments | « ui/views/ime/input_method.h ('k') | ui/views/ime/input_method_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698