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

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

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 9 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 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 NativeTextfieldWrapper* GetNativeWrapperForTesting() const { 230 NativeTextfieldWrapper* GetNativeWrapperForTesting() const {
231 return native_wrapper_; 231 return native_wrapper_;
232 } 232 }
233 233
234 // Overridden from View: 234 // Overridden from View:
235 virtual void Layout() OVERRIDE; 235 virtual void Layout() OVERRIDE;
236 virtual gfx::Size GetPreferredSize() OVERRIDE; 236 virtual gfx::Size GetPreferredSize() OVERRIDE;
237 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; 237 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE;
238 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; 238 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE;
239 virtual void OnEnabledChanged() OVERRIDE; 239 virtual void OnEnabledChanged() OVERRIDE;
240 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; 240 virtual void OnPaintBackground(gfx::CanvasSkia* canvas) OVERRIDE;
241 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; 241 virtual void OnPaintFocusBorder(gfx::CanvasSkia* canvas) OVERRIDE;
242 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE; 242 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE;
243 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE; 243 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE;
244 virtual void OnFocus() OVERRIDE; 244 virtual void OnFocus() OVERRIDE;
245 virtual void OnBlur() OVERRIDE; 245 virtual void OnBlur() OVERRIDE;
246 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 246 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
247 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; 247 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE;
248 248
249 protected: 249 protected:
250 virtual void ViewHierarchyChanged(bool is_add, View* parent, 250 virtual void ViewHierarchyChanged(bool is_add, View* parent,
251 View* child) OVERRIDE; 251 View* child) OVERRIDE;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 // The input type of this text field. 315 // The input type of this text field.
316 ui::TextInputType text_input_type_; 316 ui::TextInputType text_input_type_;
317 317
318 DISALLOW_COPY_AND_ASSIGN(Textfield); 318 DISALLOW_COPY_AND_ASSIGN(Textfield);
319 }; 319 };
320 320
321 } // namespace views 321 } // namespace views
322 322
323 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 323 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698