OLD | NEW |
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_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
6 #define VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 6 #define VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; | 208 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; |
209 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; | 209 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; |
210 virtual void SetEnabled(bool enabled) OVERRIDE; | 210 virtual void SetEnabled(bool enabled) OVERRIDE; |
211 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; | 211 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; |
212 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; | 212 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; |
213 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE; | 213 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE; |
214 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE; | 214 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE; |
215 virtual void OnFocus() OVERRIDE; | 215 virtual void OnFocus() OVERRIDE; |
216 virtual void OnBlur() OVERRIDE; | 216 virtual void OnBlur() OVERRIDE; |
217 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 217 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 218 virtual TextInputClient* GetTextInputClient() OVERRIDE; |
218 | 219 |
219 protected: | 220 protected: |
220 virtual void ViewHierarchyChanged(bool is_add, View* parent, | 221 virtual void ViewHierarchyChanged(bool is_add, View* parent, |
221 View* child) OVERRIDE; | 222 View* child) OVERRIDE; |
222 virtual std::string GetClassName() const OVERRIDE; | 223 virtual std::string GetClassName() const OVERRIDE; |
223 | 224 |
224 // The object that actually implements the native text field. | 225 // The object that actually implements the native text field. |
225 NativeTextfieldWrapper* native_wrapper_; | 226 NativeTextfieldWrapper* native_wrapper_; |
226 | 227 |
227 private: | 228 private: |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 285 |
285 // The accessible name of the text field. | 286 // The accessible name of the text field. |
286 string16 accessible_name_; | 287 string16 accessible_name_; |
287 | 288 |
288 DISALLOW_COPY_AND_ASSIGN(Textfield); | 289 DISALLOW_COPY_AND_ASSIGN(Textfield); |
289 }; | 290 }; |
290 | 291 |
291 } // namespace views | 292 } // namespace views |
292 | 293 |
293 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 294 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |