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

Side by Side Diff: ui/app_list/app_list_item_view.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_APP_LIST_APP_LIST_ITEM_VIEW_H_ 5 #ifndef UI_APP_LIST_APP_LIST_ITEM_VIEW_H_
6 #define UI_APP_LIST_APP_LIST_ITEM_VIEW_H_ 6 #define UI_APP_LIST_APP_LIST_ITEM_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual void StateChanged() OVERRIDE; 79 virtual void StateChanged() OVERRIDE;
80 virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE; 80 virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE;
81 81
82 // views::View overrides: 82 // views::View overrides:
83 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 83 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
84 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 84 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
85 virtual void OnMouseCaptureLost() OVERRIDE; 85 virtual void OnMouseCaptureLost() OVERRIDE;
86 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 86 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
87 87
88 // ui::EventHandler overrides: 88 // ui::EventHandler overrides:
89 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 89 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
90 90
91 AppListItemModel* model_; // Owned by AppListModel::Apps. 91 AppListItemModel* model_; // Owned by AppListModel::Apps.
92 92
93 AppsGridView* apps_grid_view_; // Owned by views hierarchy. 93 AppsGridView* apps_grid_view_; // Owned by views hierarchy.
94 views::ImageView* icon_; // Owned by views hierarchy. 94 views::ImageView* icon_; // Owned by views hierarchy.
95 views::Label* title_; // Owned by views hierarchy. 95 views::Label* title_; // Owned by views hierarchy.
96 96
97 scoped_ptr<views::MenuRunner> context_menu_runner_; 97 scoped_ptr<views::MenuRunner> context_menu_runner_;
98 98
99 gfx::Size icon_size_; 99 gfx::Size icon_size_;
100 gfx::ShadowValues icon_shadows_; 100 gfx::ShadowValues icon_shadows_;
101 101
102 UIState ui_state_; 102 UIState ui_state_;
103 103
104 // True if scroll gestures should contribute to dragging. 104 // True if scroll gestures should contribute to dragging.
105 bool touch_dragging_; 105 bool touch_dragging_;
106 106
107 // A timer to defer showing drag UI when mouse is pressed. 107 // A timer to defer showing drag UI when mouse is pressed.
108 base::OneShotTimer<AppListItemView> mouse_drag_timer_; 108 base::OneShotTimer<AppListItemView> mouse_drag_timer_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(AppListItemView); 110 DISALLOW_COPY_AND_ASSIGN(AppListItemView);
111 }; 111 };
112 112
113 } // namespace app_list 113 } // namespace app_list
114 114
115 #endif // UI_APP_LIST_APP_LIST_ITEM_VIEW_H_ 115 #endif // UI_APP_LIST_APP_LIST_ITEM_VIEW_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | ui/app_list/app_list_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698