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

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

Issue 6976048: views: Add OnEnabledChanged() method to View class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DisableOnHover test? Created 9 years, 7 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
« no previous file with comments | « views/controls/resize_area.cc ('k') | 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 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 return native_wrapper_; 200 return native_wrapper_;
201 } 201 }
202 #endif 202 #endif
203 203
204 // Overridden from View: 204 // Overridden from View:
205 virtual void Layout() OVERRIDE; 205 virtual void Layout() OVERRIDE;
206 virtual gfx::Size GetPreferredSize() OVERRIDE; 206 virtual gfx::Size GetPreferredSize() OVERRIDE;
207 virtual bool IsFocusable() const OVERRIDE; 207 virtual bool IsFocusable() const OVERRIDE;
208 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; 208 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE;
209 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; 209 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE;
210 virtual void SetEnabled(bool enabled) OVERRIDE; 210 virtual void OnEnabledChanged() OVERRIDE;
211 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; 211 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE;
212 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; 212 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
213 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE; 213 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE;
214 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE; 214 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE;
215 virtual void OnFocus() OVERRIDE; 215 virtual void OnFocus() OVERRIDE;
216 virtual void OnBlur() OVERRIDE; 216 virtual void OnBlur() OVERRIDE;
217 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 217 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
218 virtual TextInputClient* GetTextInputClient() OVERRIDE; 218 virtual TextInputClient* GetTextInputClient() OVERRIDE;
219 219
220 protected: 220 protected:
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 285
286 // The accessible name of the text field. 286 // The accessible name of the text field.
287 string16 accessible_name_; 287 string16 accessible_name_;
288 288
289 DISALLOW_COPY_AND_ASSIGN(Textfield); 289 DISALLOW_COPY_AND_ASSIGN(Textfield);
290 }; 290 };
291 291
292 } // namespace views 292 } // namespace views
293 293
294 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 294 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW
« no previous file with comments | « views/controls/resize_area.cc ('k') | views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698