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

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

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | 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_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 <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual void ItemIsInstallingChanged() OVERRIDE; 72 virtual void ItemIsInstallingChanged() OVERRIDE;
73 virtual void ItemPercentDownloadedChanged() OVERRIDE; 73 virtual void ItemPercentDownloadedChanged() OVERRIDE;
74 74
75 // views::View overrides: 75 // views::View overrides:
76 virtual const char* GetClassName() const OVERRIDE; 76 virtual const char* GetClassName() const OVERRIDE;
77 virtual void Layout() OVERRIDE; 77 virtual void Layout() OVERRIDE;
78 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 78 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
79 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 79 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
80 80
81 // views::ContextMenuController overrides: 81 // views::ContextMenuController overrides:
82 virtual void ShowContextMenuForView(views::View* source, 82 virtual void ShowContextMenuForView(
83 const gfx::Point& point) OVERRIDE; 83 views::View* source,
84 const gfx::Point& point,
85 ui::ContextMenuSourceType source_type) OVERRIDE;
84 86
85 // views::CustomButton overrides: 87 // views::CustomButton overrides:
86 virtual void StateChanged() OVERRIDE; 88 virtual void StateChanged() OVERRIDE;
87 virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE; 89 virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE;
88 90
89 // views::View overrides: 91 // views::View overrides:
90 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 92 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
91 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 93 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
92 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 94 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
93 virtual void OnMouseCaptureLost() OVERRIDE; 95 virtual void OnMouseCaptureLost() OVERRIDE;
(...skipping 20 matching lines...) Expand all
114 116
115 // A timer to defer showing drag UI when mouse is pressed. 117 // A timer to defer showing drag UI when mouse is pressed.
116 base::OneShotTimer<AppListItemView> mouse_drag_timer_; 118 base::OneShotTimer<AppListItemView> mouse_drag_timer_;
117 119
118 DISALLOW_COPY_AND_ASSIGN(AppListItemView); 120 DISALLOW_COPY_AND_ASSIGN(AppListItemView);
119 }; 121 };
120 122
121 } // namespace app_list 123 } // namespace app_list
122 124
123 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ 125 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698