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

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

Issue 5988010: focus reverse traversal was not working for TextfieldViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 11 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) 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 #endif 195 #endif
196 196
197 // Overridden from View: 197 // Overridden from View:
198 virtual void Layout(); 198 virtual void Layout();
199 virtual gfx::Size GetPreferredSize(); 199 virtual gfx::Size GetPreferredSize();
200 virtual bool IsFocusable() const; 200 virtual bool IsFocusable() const;
201 virtual void AboutToRequestFocusFromTabTraversal(bool reverse); 201 virtual void AboutToRequestFocusFromTabTraversal(bool reverse);
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);
206 virtual bool OnKeyReleased(const views::KeyEvent& e);
207 virtual void WillGainFocus();
208 virtual void DidGainFocus();
209 virtual void WillLoseFocus();
205 210
206 // Accessibility accessors, overridden from View: 211 // Accessibility accessors, overridden from View:
207 virtual AccessibilityTypes::Role GetAccessibleRole(); 212 virtual AccessibilityTypes::Role GetAccessibleRole();
208 virtual AccessibilityTypes::State GetAccessibleState(); 213 virtual AccessibilityTypes::State GetAccessibleState();
209 virtual std::wstring GetAccessibleValue(); 214 virtual std::wstring GetAccessibleValue();
210 215
211 protected: 216 protected:
212 virtual void Focus(); 217 virtual void Focus();
213 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); 218 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child);
214 virtual std::string GetClassName() const; 219 virtual std::string GetClassName() const;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 278
274 // Text to display when empty. 279 // Text to display when empty.
275 string16 text_to_display_when_empty_; 280 string16 text_to_display_when_empty_;
276 281
277 DISALLOW_COPY_AND_ASSIGN(Textfield); 282 DISALLOW_COPY_AND_ASSIGN(Textfield);
278 }; 283 };
279 284
280 } // namespace views 285 } // namespace views
281 286
282 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 287 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW
« no previous file with comments | « views/controls/textfield/native_textfield_wrapper.h ('k') | views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698