Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: ui/views/controls/textfield/native_textfield_wrapper.h

Issue 8748001: Make text input type and password visibility bit independent in Textfield (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Textfield(STYLE_OBSCURED) sets TEXT_INPUT_TYPE_PASSWORD Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_NATIVE_TEXTFIELD_WRAPPER_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Updates the background color used when painting the native text field. 65 // Updates the background color used when painting the native text field.
66 virtual void UpdateBackgroundColor() = 0; 66 virtual void UpdateBackgroundColor() = 0;
67 67
68 // Updates the read-only state of the native text field. 68 // Updates the read-only state of the native text field.
69 virtual void UpdateReadOnly() = 0; 69 virtual void UpdateReadOnly() = 0;
70 70
71 // Updates the font used to render text in the native text field. 71 // Updates the font used to render text in the native text field.
72 virtual void UpdateFont() = 0; 72 virtual void UpdateFont() = 0;
73 73
74 // Updates the visibility of the text in the native text field. 74 // Updates the visibility of the text in the native text field.
75 virtual void UpdateIsPassword() = 0; 75 virtual void UpdateIsObscured() = 0;
76 76
77 // Updates the enabled state of the native text field. 77 // Updates the enabled state of the native text field.
78 virtual void UpdateEnabled() = 0; 78 virtual void UpdateEnabled() = 0;
79 79
80 // Returns the insets for the text field. 80 // Returns the insets for the text field.
81 virtual gfx::Insets CalculateInsets() = 0; 81 virtual gfx::Insets CalculateInsets() = 0;
82 82
83 // Updates the horizontal margins for the native text field. 83 // Updates the horizontal margins for the native text field.
84 virtual void UpdateHorizontalMargins() = 0; 84 virtual void UpdateHorizontalMargins() = 0;
85 85
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Clears Edit history. 144 // Clears Edit history.
145 virtual void ClearEditHistory() = 0; 145 virtual void ClearEditHistory() = 0;
146 146
147 // Creates an appropriate NativeTextfieldWrapper for the platform. 147 // Creates an appropriate NativeTextfieldWrapper for the platform.
148 static NativeTextfieldWrapper* CreateWrapper(Textfield* field); 148 static NativeTextfieldWrapper* CreateWrapper(Textfield* field);
149 }; 149 };
150 150
151 } // namespace views 151 } // namespace views
152 152
153 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_ 153 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698