| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 return native_wrapper_; | 200 return native_wrapper_; |
| 201 } | 201 } |
| 202 #endif | 202 #endif |
| 203 | 203 |
| 204 // Overridden from View: | 204 // Overridden from View: |
| 205 virtual void Layout() OVERRIDE; | 205 virtual void Layout() OVERRIDE; |
| 206 virtual gfx::Size GetPreferredSize() OVERRIDE; | 206 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 207 virtual bool IsFocusable() const OVERRIDE; | 207 virtual bool IsFocusable() const OVERRIDE; |
| 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 OnEnabledChanged() 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 virtual TextInputClient* GetTextInputClient() OVERRIDE; |
| 219 | 219 |
| 220 protected: | 220 protected: |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 285 |
| 286 // The accessible name of the text field. | 286 // The accessible name of the text field. |
| 287 string16 accessible_name_; | 287 string16 accessible_name_; |
| 288 | 288 |
| 289 DISALLOW_COPY_AND_ASSIGN(Textfield); | 289 DISALLOW_COPY_AND_ASSIGN(Textfield); |
| 290 }; | 290 }; |
| 291 | 291 |
| 292 } // namespace views | 292 } // namespace views |
| 293 | 293 |
| 294 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 294 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| OLD | NEW |