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

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

Issue 7217008: Use input method to control visibility of virtual keyboard (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebase Created 9 years, 5 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 | « no previous file | 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"
(...skipping 24 matching lines...) Expand all
35 // If a derived class overrides this method, it should call parent's 35 // If a derived class overrides this method, it should call parent's
36 // implementation first, to make sure |widget_focused_| flag can be updated 36 // implementation first, to make sure |widget_focused_| flag can be updated
37 // correctly. 37 // correctly.
38 virtual void OnFocus() OVERRIDE; 38 virtual void OnFocus() OVERRIDE;
39 39
40 // 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
41 // implementation first, to make sure |widget_focused_| flag can be updated 41 // implementation first, to make sure |widget_focused_| flag can be updated
42 // correctly. 42 // correctly.
43 virtual void OnBlur() OVERRIDE; 43 virtual void OnBlur() OVERRIDE;
44 44
45 // If a derived class overrides this method, it should call parent's
46 // implementation.
47 virtual void OnTextInputTypeChanged(View* view) OVERRIDE;
48
45 virtual TextInputClient* GetTextInputClient() const OVERRIDE; 49 virtual TextInputClient* GetTextInputClient() const OVERRIDE;
46 virtual ui::TextInputType GetTextInputType() const OVERRIDE; 50 virtual ui::TextInputType GetTextInputType() const OVERRIDE;
47 51
48 // Overridden from FocusChangeListener. Derived classes shouldn't override 52 // Overridden from FocusChangeListener. Derived classes shouldn't override
49 // this method. Override FocusedViewWillChange() and FocusedViewDidChange() 53 // this method. Override FocusedViewWillChange() and FocusedViewDidChange()
50 // instead. 54 // instead.
51 virtual void FocusWillChange(View* focused_before, View* focused) OVERRIDE; 55 virtual void FocusWillChange(View* focused_before, View* focused) OVERRIDE;
52 56
53 protected: 57 protected:
54 // Getters and setters of properties. 58 // Getters and setters of properties.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 101
98 // Indicates if the top-level widget is focused or not. 102 // Indicates if the top-level widget is focused or not.
99 bool widget_focused_; 103 bool widget_focused_;
100 104
101 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); 105 DISALLOW_COPY_AND_ASSIGN(InputMethodBase);
102 }; 106 };
103 107
104 } // namespace views 108 } // namespace views
105 109
106 #endif // VIEWS_IME_INPUT_METHOD_BASE_H_ 110 #endif // VIEWS_IME_INPUT_METHOD_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | views/ime/input_method_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698