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

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

Issue 25039002: Always aligns text at vertically center (Textfield, Label). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 7 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "base/i18n/rtl.h" 8 #include "base/i18n/rtl.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // Returns the insets for the text field. 87 // Returns the insets for the text field.
88 virtual gfx::Insets CalculateInsets() = 0; 88 virtual gfx::Insets CalculateInsets() = 0;
89 89
90 // Updates the horizontal margins for the native text field. 90 // Updates the horizontal margins for the native text field.
91 virtual void UpdateHorizontalMargins() = 0; 91 virtual void UpdateHorizontalMargins() = 0;
92 92
93 // Updates the vertical margins for the native text field. 93 // Updates the vertical margins for the native text field.
94 virtual void UpdateVerticalMargins() = 0; 94 virtual void UpdateVerticalMargins() = 0;
95 95
96 // Updates the vertical alignment for the native text field.
97 virtual void UpdateVerticalAlignment() = 0;
98
99 // Sets the focus to the text field. Returns false if the wrapper 96 // Sets the focus to the text field. Returns false if the wrapper
100 // didn't take focus. 97 // didn't take focus.
101 virtual bool SetFocus() = 0; 98 virtual bool SetFocus() = 0;
102 99
103 // Retrieves the views::View that hosts the native control. 100 // Retrieves the views::View that hosts the native control.
104 virtual View* GetView() = 0; 101 virtual View* GetView() = 0;
105 102
106 // Returns a handle to the underlying native view for testing. 103 // Returns a handle to the underlying native view for testing.
107 virtual gfx::NativeView GetTestingHandle() const = 0; 104 virtual gfx::NativeView GetTestingHandle() const = 0;
108 105
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // Returns the location for keyboard-triggered context menus. 179 // Returns the location for keyboard-triggered context menus.
183 virtual gfx::Point GetContextMenuLocation() = 0; 180 virtual gfx::Point GetContextMenuLocation() = 0;
184 181
185 // Creates an appropriate NativeTextfieldWrapper for the platform. 182 // Creates an appropriate NativeTextfieldWrapper for the platform.
186 static NativeTextfieldWrapper* CreateWrapper(Textfield* field); 183 static NativeTextfieldWrapper* CreateWrapper(Textfield* field);
187 }; 184 };
188 185
189 } // namespace views 186 } // namespace views
190 187
191 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_ 188 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/native_textfield_win.cc ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698