OLD | NEW |
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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 237 |
238 // Overridden from View: | 238 // Overridden from View: |
239 virtual void Layout() OVERRIDE; | 239 virtual void Layout() OVERRIDE; |
240 virtual gfx::Size GetPreferredSize() OVERRIDE; | 240 virtual gfx::Size GetPreferredSize() OVERRIDE; |
241 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; | 241 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; |
242 virtual bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) OVERRIDE; | 242 virtual bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) OVERRIDE; |
243 virtual void OnEnabledChanged() OVERRIDE; | 243 virtual void OnEnabledChanged() OVERRIDE; |
244 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; | 244 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; |
245 virtual bool OnKeyPressed(const ui::KeyEvent& e) OVERRIDE; | 245 virtual bool OnKeyPressed(const ui::KeyEvent& e) OVERRIDE; |
246 virtual bool OnKeyReleased(const ui::KeyEvent& e) OVERRIDE; | 246 virtual bool OnKeyReleased(const ui::KeyEvent& e) OVERRIDE; |
| 247 virtual bool OnMouseDragged(const ui::MouseEvent& e) OVERRIDE; |
247 virtual void OnFocus() OVERRIDE; | 248 virtual void OnFocus() OVERRIDE; |
248 virtual void OnBlur() OVERRIDE; | 249 virtual void OnBlur() OVERRIDE; |
249 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 250 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
250 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; | 251 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; |
251 | 252 |
252 protected: | 253 protected: |
253 virtual void ViewHierarchyChanged(bool is_add, View* parent, | 254 virtual void ViewHierarchyChanged(bool is_add, View* parent, |
254 View* child) OVERRIDE; | 255 View* child) OVERRIDE; |
255 virtual std::string GetClassName() const OVERRIDE; | 256 virtual std::string GetClassName() const OVERRIDE; |
256 | 257 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 321 |
321 // The input type of this text field. | 322 // The input type of this text field. |
322 ui::TextInputType text_input_type_; | 323 ui::TextInputType text_input_type_; |
323 | 324 |
324 DISALLOW_COPY_AND_ASSIGN(Textfield); | 325 DISALLOW_COPY_AND_ASSIGN(Textfield); |
325 }; | 326 }; |
326 | 327 |
327 } // namespace views | 328 } // namespace views |
328 | 329 |
329 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 330 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |