| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e); | 202 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e); |
| 203 virtual void SetEnabled(bool enabled); | 203 virtual void SetEnabled(bool enabled); |
| 204 virtual void PaintFocusBorder(gfx::Canvas* canvas); | 204 virtual void PaintFocusBorder(gfx::Canvas* canvas); |
| 205 virtual bool OnKeyPressed(const views::KeyEvent& e); | 205 virtual bool OnKeyPressed(const views::KeyEvent& e); |
| 206 virtual bool OnKeyReleased(const views::KeyEvent& e); | 206 virtual bool OnKeyReleased(const views::KeyEvent& e); |
| 207 virtual void WillGainFocus(); | 207 virtual void WillGainFocus(); |
| 208 virtual void DidGainFocus(); | 208 virtual void DidGainFocus(); |
| 209 virtual void WillLoseFocus(); | 209 virtual void WillLoseFocus(); |
| 210 | 210 |
| 211 // Accessibility accessors, overridden from View: | 211 // Accessibility accessors, overridden from View: |
| 212 virtual AccessibilityTypes::Role GetAccessibleRole(); | 212 virtual AccessibilityTypes::Role GetAccessibleRole() OVERRIDE; |
| 213 virtual AccessibilityTypes::State GetAccessibleState(); | 213 virtual AccessibilityTypes::State GetAccessibleState() OVERRIDE; |
| 214 virtual std::wstring GetAccessibleValue(); | 214 virtual string16 GetAccessibleValue() OVERRIDE; |
| 215 | 215 |
| 216 protected: | 216 protected: |
| 217 virtual void Focus(); | 217 virtual void Focus(); |
| 218 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); | 218 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); |
| 219 virtual std::string GetClassName() const; | 219 virtual std::string GetClassName() const; |
| 220 | 220 |
| 221 // The object that actually implements the native text field. | 221 // The object that actually implements the native text field. |
| 222 NativeTextfieldWrapper* native_wrapper_; | 222 NativeTextfieldWrapper* native_wrapper_; |
| 223 | 223 |
| 224 private: | 224 private: |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 278 |
| 279 // Text to display when empty. | 279 // Text to display when empty. |
| 280 string16 text_to_display_when_empty_; | 280 string16 text_to_display_when_empty_; |
| 281 | 281 |
| 282 DISALLOW_COPY_AND_ASSIGN(Textfield); | 282 DISALLOW_COPY_AND_ASSIGN(Textfield); |
| 283 }; | 283 }; |
| 284 | 284 |
| 285 } // namespace views | 285 } // namespace views |
| 286 | 286 |
| 287 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 287 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
| OLD | NEW |