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

Side by Side Diff: ui/app_list/views/app_list_item_view.h

Issue 2680643002: Add old_state parameter to CustomButton::StateChanged (Closed)
Patch Set: Created 3 years, 10 months 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
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_VIEWS_APP_LIST_ITEM_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 const char* GetClassName() const override; 118 const char* GetClassName() const override;
119 void Layout() override; 119 void Layout() override;
120 void OnPaint(gfx::Canvas* canvas) override; 120 void OnPaint(gfx::Canvas* canvas) override;
121 121
122 // views::ContextMenuController overrides: 122 // views::ContextMenuController overrides:
123 void ShowContextMenuForView(views::View* source, 123 void ShowContextMenuForView(views::View* source,
124 const gfx::Point& point, 124 const gfx::Point& point,
125 ui::MenuSourceType source_type) override; 125 ui::MenuSourceType source_type) override;
126 126
127 // views::CustomButton overrides: 127 // views::CustomButton overrides:
128 void StateChanged() override; 128 void StateChanged(ButtonState old_state) override;
129 bool ShouldEnterPushedState(const ui::Event& event) override; 129 bool ShouldEnterPushedState(const ui::Event& event) override;
130 130
131 // views::View overrides: 131 // views::View overrides:
132 bool OnKeyPressed(const ui::KeyEvent& event) override; 132 bool OnKeyPressed(const ui::KeyEvent& event) override;
133 bool OnMousePressed(const ui::MouseEvent& event) override; 133 bool OnMousePressed(const ui::MouseEvent& event) override;
134 void OnMouseReleased(const ui::MouseEvent& event) override; 134 void OnMouseReleased(const ui::MouseEvent& event) override;
135 bool OnMouseDragged(const ui::MouseEvent& event) override; 135 bool OnMouseDragged(const ui::MouseEvent& event) override;
136 136
137 // AppListItemObserver overrides: 137 // AppListItemObserver overrides:
138 void ItemIconChanged() override; 138 void ItemIconChanged() override;
(...skipping 28 matching lines...) Expand all
167 167
168 // A timer to defer showing drag UI when mouse is pressed. 168 // A timer to defer showing drag UI when mouse is pressed.
169 base::OneShotTimer mouse_drag_timer_; 169 base::OneShotTimer mouse_drag_timer_;
170 170
171 DISALLOW_COPY_AND_ASSIGN(AppListItemView); 171 DISALLOW_COPY_AND_ASSIGN(AppListItemView);
172 }; 172 };
173 173
174 } // namespace app_list 174 } // namespace app_list
175 175
176 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ 176 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | ui/app_list/views/app_list_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698