| 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_NATIVE_TEXTFIELD_VIEWS_H_ | 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 virtual string16 GetSelectedText() const; | 59 virtual string16 GetSelectedText() const; |
| 60 virtual void SelectAll(); | 60 virtual void SelectAll(); |
| 61 virtual void ClearSelection(); | 61 virtual void ClearSelection(); |
| 62 virtual void UpdateBorder(); | 62 virtual void UpdateBorder(); |
| 63 virtual void UpdateTextColor(); | 63 virtual void UpdateTextColor(); |
| 64 virtual void UpdateBackgroundColor(); | 64 virtual void UpdateBackgroundColor(); |
| 65 virtual void UpdateReadOnly(); | 65 virtual void UpdateReadOnly(); |
| 66 virtual void UpdateFont(); | 66 virtual void UpdateFont(); |
| 67 virtual void UpdateIsPassword(); | 67 virtual void UpdateIsPassword(); |
| 68 virtual void UpdateEnabled(); | 68 virtual void UpdateEnabled(); |
| 69 virtual bool IsPassword(); | |
| 70 virtual gfx::Insets CalculateInsets(); | 69 virtual gfx::Insets CalculateInsets(); |
| 71 virtual void UpdateHorizontalMargins(); | 70 virtual void UpdateHorizontalMargins(); |
| 72 virtual void UpdateVerticalMargins(); | 71 virtual void UpdateVerticalMargins(); |
| 73 virtual void SetFocus(); | 72 virtual bool SetFocus(); |
| 74 virtual View* GetView(); | 73 virtual View* GetView(); |
| 75 virtual gfx::NativeView GetTestingHandle() const; | 74 virtual gfx::NativeView GetTestingHandle() const; |
| 76 virtual bool IsIMEComposing() const; | 75 virtual bool IsIMEComposing() const; |
| 77 | 76 |
| 78 // class name of internal | 77 // class name of internal |
| 79 static const char kViewClassName[]; | 78 static const char kViewClassName[]; |
| 80 | 79 |
| 81 // Returns true when | 80 // Returns true when |
| 82 // 1) built with GYP_DEFIENS="touchui=1" | 81 // 1) built with GYP_DEFIENS="touchui=1" |
| 83 // 2) enabled by SetEnableTextfieldViews(true) | 82 // 2) enabled by SetEnableTextfieldViews(true) |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 162 |
| 164 // A runnable method factory for callback to update the cursor. | 163 // A runnable method factory for callback to update the cursor. |
| 165 ScopedRunnableMethodFactory<NativeTextfieldViews> cursor_timer_; | 164 ScopedRunnableMethodFactory<NativeTextfieldViews> cursor_timer_; |
| 166 | 165 |
| 167 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 166 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
| 168 }; | 167 }; |
| 169 | 168 |
| 170 } // namespace views | 169 } // namespace views |
| 171 | 170 |
| 172 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 171 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| OLD | NEW |