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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 gfx::Insets GetInsets() const override; | 217 gfx::Insets GetInsets() const override; |
218 int GetBaseline() const override; | 218 int GetBaseline() const override; |
219 gfx::Size CalculatePreferredSize() const override; | 219 gfx::Size CalculatePreferredSize() const override; |
220 const char* GetClassName() const override; | 220 const char* GetClassName() const override; |
221 void SetBorder(std::unique_ptr<Border> b) override; | 221 void SetBorder(std::unique_ptr<Border> b) override; |
222 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; | 222 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; |
223 bool OnMousePressed(const ui::MouseEvent& event) override; | 223 bool OnMousePressed(const ui::MouseEvent& event) override; |
224 bool OnMouseDragged(const ui::MouseEvent& event) override; | 224 bool OnMouseDragged(const ui::MouseEvent& event) override; |
225 void OnMouseReleased(const ui::MouseEvent& event) override; | 225 void OnMouseReleased(const ui::MouseEvent& event) override; |
226 void OnMouseCaptureLost() override; | 226 void OnMouseCaptureLost() override; |
| 227 bool OnMouseWheel(const ui::MouseWheelEvent& event) override; |
227 WordLookupClient* GetWordLookupClient() override; | 228 WordLookupClient* GetWordLookupClient() override; |
228 void OnGestureEvent(ui::GestureEvent* event) override; | 229 void OnGestureEvent(ui::GestureEvent* event) override; |
229 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; | 230 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
230 bool CanHandleAccelerators() const override; | 231 bool CanHandleAccelerators() const override; |
231 void AboutToRequestFocusFromTabTraversal(bool reverse) override; | 232 void AboutToRequestFocusFromTabTraversal(bool reverse) override; |
232 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; | 233 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; |
233 bool GetDropFormats( | 234 bool GetDropFormats( |
234 int* formats, | 235 int* formats, |
235 std::set<ui::Clipboard::FormatType>* format_types) override; | 236 std::set<ui::Clipboard::FormatType>* format_types) override; |
236 bool CanDrop(const ui::OSExchangeData& data) override; | 237 bool CanDrop(const ui::OSExchangeData& data) override; |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 | 540 |
540 // Used to bind callback functions to this object. | 541 // Used to bind callback functions to this object. |
541 base::WeakPtrFactory<Textfield> weak_ptr_factory_; | 542 base::WeakPtrFactory<Textfield> weak_ptr_factory_; |
542 | 543 |
543 DISALLOW_COPY_AND_ASSIGN(Textfield); | 544 DISALLOW_COPY_AND_ASSIGN(Textfield); |
544 }; | 545 }; |
545 | 546 |
546 } // namespace views | 547 } // namespace views |
547 | 548 |
548 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 549 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |