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

Side by Side Diff: chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.h

Issue 10824295: Rid the world of the last of views::Event types: TouchEvent, GestureEvent, MouseWheelEvent, ScrollE… (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_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTROLL ER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTROLL ER_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTROLL ER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTROLL ER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // These drag functions offer support for dragging icons into the overflow 59 // These drag functions offer support for dragging icons into the overflow
60 // menu. 60 // menu.
61 virtual bool GetDropFormats( 61 virtual bool GetDropFormats(
62 views::MenuItemView* menu, 62 views::MenuItemView* menu,
63 int* formats, 63 int* formats,
64 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; 64 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE;
65 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE; 65 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE;
66 virtual bool CanDrop(views::MenuItemView* menu, 66 virtual bool CanDrop(views::MenuItemView* menu,
67 const ui::OSExchangeData& data) OVERRIDE; 67 const ui::OSExchangeData& data) OVERRIDE;
68 virtual int GetDropOperation(views::MenuItemView* item, 68 virtual int GetDropOperation(views::MenuItemView* item,
69 const views::DropTargetEvent& event, 69 const ui::DropTargetEvent& event,
70 DropPosition* position) OVERRIDE; 70 DropPosition* position) OVERRIDE;
71 virtual int OnPerformDrop(views::MenuItemView* menu, 71 virtual int OnPerformDrop(views::MenuItemView* menu,
72 DropPosition position, 72 DropPosition position,
73 const views::DropTargetEvent& event) OVERRIDE; 73 const ui::DropTargetEvent& event) OVERRIDE;
74 // These three drag functions offer support for dragging icons out of the 74 // These three drag functions offer support for dragging icons out of the
75 // overflow menu. 75 // overflow menu.
76 virtual bool CanDrag(views::MenuItemView* menu) OVERRIDE; 76 virtual bool CanDrag(views::MenuItemView* menu) OVERRIDE;
77 virtual void WriteDragData(views::MenuItemView* sender, 77 virtual void WriteDragData(views::MenuItemView* sender,
78 ui::OSExchangeData* data) OVERRIDE; 78 ui::OSExchangeData* data) OVERRIDE;
79 virtual int GetDragOperations(views::MenuItemView* sender) OVERRIDE; 79 virtual int GetDragOperations(views::MenuItemView* sender) OVERRIDE;
80 80
81 private: 81 private:
82 // This class manages its own lifetime. 82 // This class manages its own lifetime.
83 virtual ~BrowserActionOverflowMenuController(); 83 virtual ~BrowserActionOverflowMenuController();
(...skipping 30 matching lines...) Expand all
114 114
115 // Whether this controller is being used for drop. 115 // Whether this controller is being used for drop.
116 bool for_drop_; 116 bool for_drop_;
117 117
118 friend class base::DeleteHelper<BrowserActionOverflowMenuController>; 118 friend class base::DeleteHelper<BrowserActionOverflowMenuController>;
119 119
120 DISALLOW_COPY_AND_ASSIGN(BrowserActionOverflowMenuController); 120 DISALLOW_COPY_AND_ASSIGN(BrowserActionOverflowMenuController);
121 }; 121 };
122 122
123 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTR OLLER_H_ 123 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_OVERFLOW_MENU_CONTR OLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698