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

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: patch 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
« no previous file with comments | « chrome/browser/ui/views/wrench_menu.cc ('k') | ui/app_list/views/app_list_item_view.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_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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(views::View* source,
83 const gfx::Point& point) OVERRIDE; 83 const gfx::Point& point,
84 ui::MenuSourceType source_type) OVERRIDE;
84 85
85 // views::CustomButton overrides: 86 // views::CustomButton overrides:
86 virtual void StateChanged() OVERRIDE; 87 virtual void StateChanged() OVERRIDE;
87 virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE; 88 virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE;
88 89
89 // views::View overrides: 90 // views::View overrides:
90 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 91 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
91 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 92 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
92 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 93 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
93 virtual void OnMouseCaptureLost() OVERRIDE; 94 virtual void OnMouseCaptureLost() OVERRIDE;
(...skipping 20 matching lines...) Expand all
114 115
115 // A timer to defer showing drag UI when mouse is pressed. 116 // A timer to defer showing drag UI when mouse is pressed.
116 base::OneShotTimer<AppListItemView> mouse_drag_timer_; 117 base::OneShotTimer<AppListItemView> mouse_drag_timer_;
117 118
118 DISALLOW_COPY_AND_ASSIGN(AppListItemView); 119 DISALLOW_COPY_AND_ASSIGN(AppListItemView);
119 }; 120 };
120 121
121 } // namespace app_list 122 } // namespace app_list
122 123
123 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ 124 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/wrench_menu.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