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

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

Issue 8964001: views: Convert IsFocusable() to just focusable() since it's just a simple accessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't need to override IsFocusableInRootView in omnibox_view_views 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
« no previous file with comments | « ui/views/controls/label.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 gfx::NativeView GetTestingHandle() const { 218 gfx::NativeView GetTestingHandle() const {
219 return native_wrapper_ ? native_wrapper_->GetTestingHandle() : NULL; 219 return native_wrapper_ ? native_wrapper_->GetTestingHandle() : NULL;
220 } 220 }
221 NativeTextfieldWrapper* GetNativeWrapperForTesting() const { 221 NativeTextfieldWrapper* GetNativeWrapperForTesting() const {
222 return native_wrapper_; 222 return native_wrapper_;
223 } 223 }
224 224
225 // Overridden from View: 225 // Overridden from View:
226 virtual void Layout() OVERRIDE; 226 virtual void Layout() OVERRIDE;
227 virtual gfx::Size GetPreferredSize() OVERRIDE; 227 virtual gfx::Size GetPreferredSize() OVERRIDE;
228 virtual bool IsFocusable() const OVERRIDE;
229 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; 228 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE;
230 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; 229 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE;
231 virtual void OnEnabledChanged() OVERRIDE; 230 virtual void OnEnabledChanged() OVERRIDE;
232 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; 231 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE;
233 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; 232 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
234 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE; 233 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE;
235 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE; 234 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE;
236 virtual void OnFocus() OVERRIDE; 235 virtual void OnFocus() OVERRIDE;
237 virtual void OnBlur() OVERRIDE; 236 virtual void OnBlur() OVERRIDE;
238 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 237 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 305
307 // The input type of this text field. 306 // The input type of this text field.
308 ui::TextInputType text_input_type_; 307 ui::TextInputType text_input_type_;
309 308
310 DISALLOW_COPY_AND_ASSIGN(Textfield); 309 DISALLOW_COPY_AND_ASSIGN(Textfield);
311 }; 310 };
312 311
313 } // namespace views 312 } // namespace views
314 313
315 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 314 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW
« no previous file with comments | « ui/views/controls/label.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698