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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 int GetBaseline() const override; | 213 int GetBaseline() const override; |
214 gfx::Size GetPreferredSize() const override; | 214 gfx::Size GetPreferredSize() const override; |
215 const char* GetClassName() const override; | 215 const char* GetClassName() const override; |
216 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; | 216 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; |
217 bool OnMousePressed(const ui::MouseEvent& event) override; | 217 bool OnMousePressed(const ui::MouseEvent& event) override; |
218 bool OnMouseDragged(const ui::MouseEvent& event) override; | 218 bool OnMouseDragged(const ui::MouseEvent& event) override; |
219 void OnMouseReleased(const ui::MouseEvent& event) override; | 219 void OnMouseReleased(const ui::MouseEvent& event) override; |
220 bool OnKeyPressed(const ui::KeyEvent& event) override; | 220 bool OnKeyPressed(const ui::KeyEvent& event) override; |
221 ui::TextInputClient* GetTextInputClient() override; | 221 ui::TextInputClient* GetTextInputClient() override; |
222 void OnGestureEvent(ui::GestureEvent* event) override; | 222 void OnGestureEvent(ui::GestureEvent* event) override; |
| 223 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
223 void AboutToRequestFocusFromTabTraversal(bool reverse) override; | 224 void AboutToRequestFocusFromTabTraversal(bool reverse) override; |
224 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; | 225 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; |
225 bool GetDropFormats( | 226 bool GetDropFormats( |
226 int* formats, | 227 int* formats, |
227 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) override; | 228 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) override; |
228 bool CanDrop(const ui::OSExchangeData& data) override; | 229 bool CanDrop(const ui::OSExchangeData& data) override; |
229 int OnDragUpdated(const ui::DropTargetEvent& event) override; | 230 int OnDragUpdated(const ui::DropTargetEvent& event) override; |
230 void OnDragExited() override; | 231 void OnDragExited() override; |
231 int OnPerformDrop(const ui::DropTargetEvent& event) override; | 232 int OnPerformDrop(const ui::DropTargetEvent& event) override; |
232 void OnDragDone() override; | 233 void OnDragDone() override; |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 | 488 |
488 // Used to bind callback functions to this object. | 489 // Used to bind callback functions to this object. |
489 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 490 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
490 | 491 |
491 DISALLOW_COPY_AND_ASSIGN(Textfield); | 492 DISALLOW_COPY_AND_ASSIGN(Textfield); |
492 }; | 493 }; |
493 | 494 |
494 } // namespace views | 495 } // namespace views |
495 | 496 |
496 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 497 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |