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

Side by Side Diff: ui/views/controls/combobox/native_combobox_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
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_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ 5 #ifndef UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_
6 #define UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ 6 #define UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_
7 7
8 #include "ui/views/controls/combobox/native_combobox_wrapper.h" 8 #include "ui/views/controls/combobox/native_combobox_wrapper.h"
9 #include "ui/views/controls/menu/menu_delegate.h" 9 #include "ui/views/controls/menu/menu_delegate.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 22 matching lines...) Expand all
33 // views::View overrides: 33 // views::View overrides:
34 virtual bool OnMousePressed(const ui::MouseEvent& mouse_event) OVERRIDE; 34 virtual bool OnMousePressed(const ui::MouseEvent& mouse_event) OVERRIDE;
35 virtual bool OnMouseDragged(const ui::MouseEvent& mouse_event) OVERRIDE; 35 virtual bool OnMouseDragged(const ui::MouseEvent& mouse_event) OVERRIDE;
36 virtual bool OnKeyPressed(const ui::KeyEvent& key_event) OVERRIDE; 36 virtual bool OnKeyPressed(const ui::KeyEvent& key_event) OVERRIDE;
37 virtual bool OnKeyReleased(const ui::KeyEvent& key_event) OVERRIDE; 37 virtual bool OnKeyReleased(const ui::KeyEvent& key_event) OVERRIDE;
38 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 38 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
39 virtual void OnFocus() OVERRIDE; 39 virtual void OnFocus() OVERRIDE;
40 virtual void OnBlur() OVERRIDE; 40 virtual void OnBlur() OVERRIDE;
41 41
42 // ui::EventHandler overrides: 42 // ui::EventHandler overrides:
43 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* gesture) OVERRIDE; 43 virtual void OnGestureEvent(ui::GestureEvent* gesture) OVERRIDE;
44 44
45 // NativeComboboxWrapper overrides: 45 // NativeComboboxWrapper overrides:
46 virtual void UpdateFromModel() OVERRIDE; 46 virtual void UpdateFromModel() OVERRIDE;
47 virtual void UpdateSelectedIndex() OVERRIDE; 47 virtual void UpdateSelectedIndex() OVERRIDE;
48 virtual void UpdateEnabled() OVERRIDE; 48 virtual void UpdateEnabled() OVERRIDE;
49 virtual int GetSelectedIndex() const OVERRIDE; 49 virtual int GetSelectedIndex() const OVERRIDE;
50 virtual bool IsDropdownOpen() const OVERRIDE; 50 virtual bool IsDropdownOpen() const OVERRIDE;
51 virtual gfx::Size GetPreferredSize() OVERRIDE; 51 virtual gfx::Size GetPreferredSize() OVERRIDE;
52 virtual View* GetView() OVERRIDE; 52 virtual View* GetView() OVERRIDE;
53 virtual void SetFocus() OVERRIDE; 53 virtual void SetFocus() OVERRIDE;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // The maximum dimensions of the content in the dropdown 96 // The maximum dimensions of the content in the dropdown
97 int content_width_; 97 int content_width_;
98 int content_height_; 98 int content_height_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(NativeComboboxViews); 100 DISALLOW_COPY_AND_ASSIGN(NativeComboboxViews);
101 }; 101 };
102 102
103 } // namespace views 103 } // namespace views
104 104
105 #endif // UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_ 105 #endif // UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_VIEWS_H_
OLDNEW
« no previous file with comments | « ui/views/controls/button/menu_button.cc ('k') | ui/views/controls/combobox/native_combobox_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698