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

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

Issue 6675005: Integrate the new input method API for Views into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 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) 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SetEnabled(bool enabled) 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 219
219 protected: 220 protected:
220 virtual void ViewHierarchyChanged(bool is_add, View* parent, 221 virtual void ViewHierarchyChanged(bool is_add, View* parent,
221 View* child) OVERRIDE; 222 View* child) OVERRIDE;
222 virtual std::string GetClassName() const OVERRIDE; 223 virtual std::string GetClassName() const OVERRIDE;
223 224
224 // The object that actually implements the native text field. 225 // The object that actually implements the native text field.
225 NativeTextfieldWrapper* native_wrapper_; 226 NativeTextfieldWrapper* native_wrapper_;
226 227
227 private: 228 private:
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 285
285 // The accessible name of the text field. 286 // The accessible name of the text field.
286 string16 accessible_name_; 287 string16 accessible_name_;
287 288
288 DISALLOW_COPY_AND_ASSIGN(Textfield); 289 DISALLOW_COPY_AND_ASSIGN(Textfield);
289 }; 290 };
290 291
291 } // namespace views 292 } // namespace views
292 293
293 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 294 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698