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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 views::Widget* parent() { return parent_; } 87 views::Widget* parent() { return parent_; }
88 88
89 // Returns true if we're in the process of mutating the model. This happens 89 // Returns true if we're in the process of mutating the model. This happens
90 // when the user deletes menu items using the context menu. 90 // when the user deletes menu items using the context menu.
91 bool is_mutating_model() const { return is_mutating_model_; } 91 bool is_mutating_model() const { return is_mutating_model_; }
92 92
93 // MenuDelegate like methods (see class description for details). 93 // MenuDelegate like methods (see class description for details).
94 string16 GetTooltipText(int id, const gfx::Point& p) const; 94 string16 GetTooltipText(int id, const gfx::Point& p) const;
95 bool IsTriggerableEvent(views::MenuItemView* menu, 95 bool IsTriggerableEvent(views::MenuItemView* menu,
96 const views::Event& e); 96 const ui::Event& e);
97 void ExecuteCommand(int id, int mouse_event_flags); 97 void ExecuteCommand(int id, int mouse_event_flags);
98 bool GetDropFormats( 98 bool GetDropFormats(
99 views::MenuItemView* menu, 99 views::MenuItemView* menu,
100 int* formats, 100 int* formats,
101 std::set<ui::OSExchangeData::CustomFormat>* custom_formats); 101 std::set<ui::OSExchangeData::CustomFormat>* custom_formats);
102 bool AreDropTypesRequired(views::MenuItemView* menu); 102 bool AreDropTypesRequired(views::MenuItemView* menu);
103 bool CanDrop(views::MenuItemView* menu, const ui::OSExchangeData& data); 103 bool CanDrop(views::MenuItemView* menu, const ui::OSExchangeData& data);
104 int GetDropOperation(views::MenuItemView* item, 104 int GetDropOperation(views::MenuItemView* item,
105 const views::DropTargetEvent& event, 105 const views::DropTargetEvent& event,
106 views::MenuDelegate::DropPosition* position); 106 views::MenuDelegate::DropPosition* position);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // Is the model being changed? 202 // Is the model being changed?
203 bool is_mutating_model_; 203 bool is_mutating_model_;
204 204
205 // The location where this bookmark menu will be displayed (for UMA). 205 // The location where this bookmark menu will be displayed (for UMA).
206 bookmark_utils::BookmarkLaunchLocation location_; 206 bookmark_utils::BookmarkLaunchLocation location_;
207 207
208 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuDelegate); 208 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuDelegate);
209 }; 209 };
210 210
211 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ 211 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698