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

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

Issue 326393003: Oilpan: Change Persistent<> data members to Member<> in HitTestResult. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 24 matching lines...) Expand all
35 namespace WebCore { 35 namespace WebCore {
36 36
37 class ContextMenu; 37 class ContextMenu;
38 class ContextMenuClient; 38 class ContextMenuClient;
39 class ContextMenuItem; 39 class ContextMenuItem;
40 class ContextMenuProvider; 40 class ContextMenuProvider;
41 class Document; 41 class Document;
42 class Event; 42 class Event;
43 class Page; 43 class Page;
44 44
45 class ContextMenuController { 45 class ContextMenuController : public NoBaseWillBeGarbageCollectedFinalized<C ontextMenuController> {
46 WTF_MAKE_NONCOPYABLE(ContextMenuController); WTF_MAKE_FAST_ALLOCATED; 46 WTF_MAKE_NONCOPYABLE(ContextMenuController); WTF_MAKE_FAST_ALLOCATED_WIL L_BE_REMOVED;
47 public: 47 public:
48 static PassOwnPtrWillBeRawPtr<ContextMenuController> create(Page*, Conte xtMenuClient*);
48 ~ContextMenuController(); 49 ~ContextMenuController();
49 50 void trace(Visitor* visitor) { visitor->trace(m_hitTestResult); }
haraken 2014/06/18 01:27:24 We normally write a non-empty trace method in a cp
tkent 2014/06/18 03:10:40 Done.
50 static PassOwnPtr<ContextMenuController> create(Page*, ContextMenuClient *);
51 51
52 ContextMenu* contextMenu() const { return m_contextMenu.get(); } 52 ContextMenu* contextMenu() const { return m_contextMenu.get(); }
53 void clearContextMenu(); 53 void clearContextMenu();
54 54
55 void documentDetached(Document*); 55 void documentDetached(Document*);
56 56
57 void handleContextMenuEvent(Event*); 57 void handleContextMenuEvent(Event*);
58 void showContextMenu(Event*, PassRefPtr<ContextMenuProvider>); 58 void showContextMenu(Event*, PassRefPtr<ContextMenuProvider>);
59 59
60 void contextMenuItemSelected(const ContextMenuItem*); 60 void contextMenuItemSelected(const ContextMenuItem*);
61 61
62 const HitTestResult& hitTestResult() { return m_hitTestResult; } 62 const HitTestResult& hitTestResult() { return m_hitTestResult; }
63 63
64 private: 64 private:
65 ContextMenuController(Page*, ContextMenuClient*); 65 ContextMenuController(Page*, ContextMenuClient*);
66 66
67 PassOwnPtr<ContextMenu> createContextMenu(Event*); 67 PassOwnPtr<ContextMenu> createContextMenu(Event*);
68 void showContextMenu(Event*); 68 void showContextMenu(Event*);
69 69
70 ContextMenuClient* m_client; 70 ContextMenuClient* m_client;
71 OwnPtr<ContextMenu> m_contextMenu; 71 OwnPtr<ContextMenu> m_contextMenu;
72 RefPtr<ContextMenuProvider> m_menuProvider; 72 RefPtr<ContextMenuProvider> m_menuProvider;
73 HitTestResult m_hitTestResult; 73 HitTestResult m_hitTestResult;
74 }; 74 };
75 75
76 } 76 }
77 77
78 #endif 78 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/page/ContextMenuController.cpp » ('j') | Source/web/WebHitTestResult.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698