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

Side by Side Diff: chrome/browser/ui/views/wrench_menu.h

Issue 10546104: Make IsTriggerableEvent take Event objects and use it to verify whether tap events should trigger. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pass Event to ShouldEnterPushedState. Created 8 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/event_utils.cc ('k') | chrome/browser/ui/views/wrench_menu.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 CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_
6 #define CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_ 6 #define CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 24 matching lines...) Expand all
35 virtual ~WrenchMenu(); 35 virtual ~WrenchMenu();
36 36
37 void Init(ui::MenuModel* model); 37 void Init(ui::MenuModel* model);
38 38
39 // Shows the menu relative to the specified view. 39 // Shows the menu relative to the specified view.
40 void RunMenu(views::MenuButton* host); 40 void RunMenu(views::MenuButton* host);
41 41
42 // MenuDelegate overrides: 42 // MenuDelegate overrides:
43 virtual string16 GetTooltipText(int id, const gfx::Point& p) const OVERRIDE; 43 virtual string16 GetTooltipText(int id, const gfx::Point& p) const OVERRIDE;
44 virtual bool IsTriggerableEvent(views::MenuItemView* menu, 44 virtual bool IsTriggerableEvent(views::MenuItemView* menu,
45 const views::MouseEvent& e) OVERRIDE; 45 const views::Event& e) OVERRIDE;
46 virtual bool GetDropFormats( 46 virtual bool GetDropFormats(
47 views::MenuItemView* menu, 47 views::MenuItemView* menu,
48 int* formats, 48 int* formats,
49 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; 49 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE;
50 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE; 50 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE;
51 virtual bool CanDrop(views::MenuItemView* menu, 51 virtual bool CanDrop(views::MenuItemView* menu,
52 const ui::OSExchangeData& data) OVERRIDE; 52 const ui::OSExchangeData& data) OVERRIDE;
53 virtual int GetDropOperation(views::MenuItemView* item, 53 virtual int GetDropOperation(views::MenuItemView* item,
54 const views::DropTargetEvent& event, 54 const views::DropTargetEvent& event,
55 DropPosition* position) OVERRIDE; 55 DropPosition* position) OVERRIDE;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 // ID to use for the items representing bookmarks in the bookmark menu. 146 // ID to use for the items representing bookmarks in the bookmark menu.
147 int first_bookmark_command_id_; 147 int first_bookmark_command_id_;
148 148
149 content::NotificationRegistrar registrar_; 149 content::NotificationRegistrar registrar_;
150 150
151 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); 151 DISALLOW_COPY_AND_ASSIGN(WrenchMenu);
152 }; 152 };
153 153
154 #endif // CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_ 154 #endif // CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/event_utils.cc ('k') | chrome/browser/ui/views/wrench_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698