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

Side by Side Diff: third_party/WebKit/Source/core/page/CustomContextMenuProvider.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CustomContextMenuProvider_h 5 #ifndef CustomContextMenuProvider_h
6 #define CustomContextMenuProvider_h 6 #define CustomContextMenuProvider_h
7 7
8 #include "core/page/ContextMenuProvider.h" 8 #include "core/page/ContextMenuProvider.h"
9 #include "platform/ContextMenuItem.h" 9 #include "platform/ContextMenuItem.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ContextMenu; 14 class ContextMenu;
15 class HTMLElement; 15 class HTMLElement;
16 class HTMLMenuElement; 16 class HTMLMenuElement;
17 class HTMLMenuItemElement; 17 class HTMLMenuItemElement;
18 18
19 class CustomContextMenuProvider final : public ContextMenuProvider { 19 class CustomContextMenuProvider final : public ContextMenuProvider {
20 public: 20 public:
21 ~CustomContextMenuProvider() override; 21 ~CustomContextMenuProvider() override;
22 22
23 static PassRefPtrWillBeRawPtr<CustomContextMenuProvider> create(HTMLMenuElem ent& menu, HTMLElement& subject) 23 static RawPtr<CustomContextMenuProvider> create(HTMLMenuElement& menu, HTMLE lement& subject)
24 { 24 {
25 return adoptRefWillBeNoop(new CustomContextMenuProvider(menu, subject)); 25 return new CustomContextMenuProvider(menu, subject);
26 } 26 }
27 27
28 DECLARE_VIRTUAL_TRACE(); 28 DECLARE_VIRTUAL_TRACE();
29 29
30 private: 30 private:
31 CustomContextMenuProvider(HTMLMenuElement&, HTMLElement&); 31 CustomContextMenuProvider(HTMLMenuElement&, HTMLElement&);
32 32
33 void populateContextMenu(ContextMenu*) override; 33 void populateContextMenu(ContextMenu*) override;
34 void contextMenuItemSelected(const ContextMenuItem*) override; 34 void contextMenuItemSelected(const ContextMenuItem*) override;
35 void contextMenuCleared() override; 35 void contextMenuCleared() override;
36 void populateContextMenuItems(const HTMLMenuElement&, ContextMenu&); 36 void populateContextMenuItems(const HTMLMenuElement&, ContextMenu&);
37 void appendSeparator(ContextMenu&); 37 void appendSeparator(ContextMenu&);
38 void appendMenuItem(HTMLMenuItemElement*, ContextMenu&); 38 void appendMenuItem(HTMLMenuItemElement*, ContextMenu&);
39 HTMLElement* menuItemAt(unsigned menuId); 39 HTMLElement* menuItemAt(unsigned menuId);
40 40
41 RefPtrWillBeMember<HTMLMenuElement> m_menu; 41 Member<HTMLMenuElement> m_menu;
42 RefPtrWillBeMember<HTMLElement> m_subjectElement; 42 Member<HTMLElement> m_subjectElement;
43 WillBeHeapVector<RefPtrWillBeMember<HTMLElement>> m_menuItems; 43 HeapVector<Member<HTMLElement>> m_menuItems;
44 }; 44 };
45 45
46 } // namespace blink 46 } // namespace blink
47 47
48 #endif 48 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698