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

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

Issue 634883002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/page (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/page/Chrome.h ('k') | Source/core/page/DOMWindowPagePopup.h » ('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 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 static PassRefPtr<CustomContextMenuProvider> create(HTMLMenuElement& menu, H TMLElement& subject) 21 static PassRefPtr<CustomContextMenuProvider> create(HTMLMenuElement& menu, H TMLElement& subject)
22 { 22 {
23 return adoptRef(new CustomContextMenuProvider(menu, subject)); 23 return adoptRef(new CustomContextMenuProvider(menu, subject));
24 } 24 }
25 25
26 private: 26 private:
27 CustomContextMenuProvider(HTMLMenuElement&, HTMLElement&); 27 CustomContextMenuProvider(HTMLMenuElement&, HTMLElement&);
28 virtual ~CustomContextMenuProvider(); 28 virtual ~CustomContextMenuProvider();
29 29
30 virtual void populateContextMenu(ContextMenu*) OVERRIDE; 30 virtual void populateContextMenu(ContextMenu*) override;
31 virtual void contextMenuItemSelected(const ContextMenuItem*) OVERRIDE; 31 virtual void contextMenuItemSelected(const ContextMenuItem*) override;
32 virtual void contextMenuCleared() OVERRIDE; 32 virtual void contextMenuCleared() override;
33 void populateContextMenuItems(const HTMLMenuElement&, ContextMenu&); 33 void populateContextMenuItems(const HTMLMenuElement&, ContextMenu&);
34 void appendSeparator(ContextMenu&); 34 void appendSeparator(ContextMenu&);
35 void appendMenuItem(HTMLMenuItemElement*, ContextMenu&); 35 void appendMenuItem(HTMLMenuItemElement*, ContextMenu&);
36 HTMLElement* menuItemAt(unsigned menuId); 36 HTMLElement* menuItemAt(unsigned menuId);
37 37
38 RefPtrWillBePersistent<HTMLMenuElement> m_menu; 38 RefPtrWillBePersistent<HTMLMenuElement> m_menu;
39 RefPtrWillBePersistent<HTMLElement> m_subjectElement; 39 RefPtrWillBePersistent<HTMLElement> m_subjectElement;
40 WillBePersistentHeapVector<RefPtrWillBeMember<HTMLElement> > m_menuItems; 40 WillBePersistentHeapVector<RefPtrWillBeMember<HTMLElement> > m_menuItems;
41 }; 41 };
42 42
43 } // namespace blink 43 } // namespace blink
44 44
45 #endif 45 #endif
OLDNEW
« no previous file with comments | « Source/core/page/Chrome.h ('k') | Source/core/page/DOMWindowPagePopup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698