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

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

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months 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_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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 16 matching lines...) Expand all
27 struct StyleRange; 27 struct StyleRange;
28 } // namespace gfx 28 } // namespace gfx
29 29
30 namespace ui { 30 namespace ui {
31 class Range; 31 class Range;
32 class TextInputClient; 32 class TextInputClient;
33 } // namespace ui 33 } // namespace ui
34 34
35 namespace views { 35 namespace views {
36 36
37 class KeyEvent;
38 class TextfieldController; 37 class TextfieldController;
39 38
40 // This class implements a View that wraps a native text (edit) field. 39 // This class implements a View that wraps a native text (edit) field.
41 class VIEWS_EXPORT Textfield : public View { 40 class VIEWS_EXPORT Textfield : public View {
42 public: 41 public:
43 // The button's class name. 42 // The button's class name.
44 static const char kViewClassName[]; 43 static const char kViewClassName[];
45 44
46 enum StyleFlags { 45 enum StyleFlags {
47 STYLE_DEFAULT = 0, 46 STYLE_DEFAULT = 0,
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 return native_wrapper_ ? native_wrapper_->GetTestingHandle() : NULL; 232 return native_wrapper_ ? native_wrapper_->GetTestingHandle() : NULL;
234 } 233 }
235 NativeTextfieldWrapper* GetNativeWrapperForTesting() const { 234 NativeTextfieldWrapper* GetNativeWrapperForTesting() const {
236 return native_wrapper_; 235 return native_wrapper_;
237 } 236 }
238 237
239 // Overridden from View: 238 // Overridden from View:
240 virtual void Layout() OVERRIDE; 239 virtual void Layout() OVERRIDE;
241 virtual gfx::Size GetPreferredSize() OVERRIDE; 240 virtual gfx::Size GetPreferredSize() OVERRIDE;
242 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; 241 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE;
243 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; 242 virtual bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) OVERRIDE;
244 virtual void OnEnabledChanged() OVERRIDE; 243 virtual void OnEnabledChanged() OVERRIDE;
245 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; 244 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
246 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE; 245 virtual bool OnKeyPressed(const ui::KeyEvent& e) OVERRIDE;
247 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE; 246 virtual bool OnKeyReleased(const ui::KeyEvent& e) OVERRIDE;
248 virtual void OnFocus() OVERRIDE; 247 virtual void OnFocus() OVERRIDE;
249 virtual void OnBlur() OVERRIDE; 248 virtual void OnBlur() OVERRIDE;
250 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 249 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
251 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; 250 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE;
252 251
253 protected: 252 protected:
254 virtual void ViewHierarchyChanged(bool is_add, View* parent, 253 virtual void ViewHierarchyChanged(bool is_add, View* parent,
255 View* child) OVERRIDE; 254 View* child) OVERRIDE;
256 virtual std::string GetClassName() const OVERRIDE; 255 virtual std::string GetClassName() const OVERRIDE;
257 256
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 320
322 // The input type of this text field. 321 // The input type of this text field.
323 ui::TextInputType text_input_type_; 322 ui::TextInputType text_input_type_;
324 323
325 DISALLOW_COPY_AND_ASSIGN(Textfield); 324 DISALLOW_COPY_AND_ASSIGN(Textfield);
326 }; 325 };
327 326
328 } // namespace views 327 } // namespace views
329 328
330 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 329 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/native_textfield_wrapper.h ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698