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

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

Issue 11280290: events: Change gesture-event handler in EventHandler to not return any values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « ui/views/controls/slider.cc ('k') | ui/views/controls/textfield/native_textfield_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_NATIVE_TEXTFIELD_VIEWS_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "ui/base/events/event_constants.h" 10 #include "ui/base/events/event_constants.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 static const int kCursorBlinkCycleMs; 54 static const int kCursorBlinkCycleMs;
55 55
56 explicit NativeTextfieldViews(Textfield* parent); 56 explicit NativeTextfieldViews(Textfield* parent);
57 virtual ~NativeTextfieldViews(); 57 virtual ~NativeTextfieldViews();
58 58
59 // View overrides: 59 // View overrides:
60 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; 60 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE;
61 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 61 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
62 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 62 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
63 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 63 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
64 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 64 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
65 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 65 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
66 virtual bool GetDropFormats( 66 virtual bool GetDropFormats(
67 int* formats, 67 int* formats,
68 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; 68 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE;
69 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; 69 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE;
70 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; 70 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE;
71 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; 71 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
72 virtual void OnDragDone() OVERRIDE; 72 virtual void OnDragDone() OVERRIDE;
73 virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE; 73 virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE;
74 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 74 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 scoped_ptr<views::MenuRunner> context_menu_runner_; 292 scoped_ptr<views::MenuRunner> context_menu_runner_;
293 293
294 scoped_ptr<TouchSelectionController> touch_selection_controller_; 294 scoped_ptr<TouchSelectionController> touch_selection_controller_;
295 295
296 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); 296 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews);
297 }; 297 };
298 298
299 } // namespace views 299 } // namespace views
300 300
301 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 301 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
OLDNEW
« no previous file with comments | « ui/views/controls/slider.cc ('k') | ui/views/controls/textfield/native_textfield_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698