| 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 UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 6 #define UI_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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 gfx::NativeView GetTestingHandle() const { | 218 gfx::NativeView GetTestingHandle() const { |
| 219 return native_wrapper_ ? native_wrapper_->GetTestingHandle() : NULL; | 219 return native_wrapper_ ? native_wrapper_->GetTestingHandle() : NULL; |
| 220 } | 220 } |
| 221 NativeTextfieldWrapper* GetNativeWrapperForTesting() const { | 221 NativeTextfieldWrapper* GetNativeWrapperForTesting() const { |
| 222 return native_wrapper_; | 222 return native_wrapper_; |
| 223 } | 223 } |
| 224 | 224 |
| 225 // Overridden from View: | 225 // Overridden from View: |
| 226 virtual void Layout() OVERRIDE; | 226 virtual void Layout() OVERRIDE; |
| 227 virtual gfx::Size GetPreferredSize() OVERRIDE; | 227 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 228 virtual bool IsFocusable() const OVERRIDE; | |
| 229 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; | 228 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; |
| 230 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; | 229 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; |
| 231 virtual void OnEnabledChanged() OVERRIDE; | 230 virtual void OnEnabledChanged() OVERRIDE; |
| 232 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; | 231 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; |
| 233 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; | 232 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; |
| 234 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE; | 233 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE; |
| 235 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE; | 234 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE; |
| 236 virtual void OnFocus() OVERRIDE; | 235 virtual void OnFocus() OVERRIDE; |
| 237 virtual void OnBlur() OVERRIDE; | 236 virtual void OnBlur() OVERRIDE; |
| 238 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 237 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 305 |
| 307 // The input type of this text field. | 306 // The input type of this text field. |
| 308 ui::TextInputType text_input_type_; | 307 ui::TextInputType text_input_type_; |
| 309 | 308 |
| 310 DISALLOW_COPY_AND_ASSIGN(Textfield); | 309 DISALLOW_COPY_AND_ASSIGN(Textfield); |
| 311 }; | 310 }; |
| 312 | 311 |
| 313 } // namespace views | 312 } // namespace views |
| 314 | 313 |
| 315 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 314 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| OLD | NEW |