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

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

Issue 955583002: InlinedVisitor: Migrate page to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/page/ContextMenuController.h ('k') | Source/core/page/ContextMenuProvider.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 /* 1 /*
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Igalia S.L 3 * Copyright (C) 2010 Igalia S.L
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 ContextMenuController::~ContextMenuController() 54 ContextMenuController::~ContextMenuController()
55 { 55 {
56 } 56 }
57 57
58 PassOwnPtrWillBeRawPtr<ContextMenuController> ContextMenuController::create(Page * page, ContextMenuClient* client) 58 PassOwnPtrWillBeRawPtr<ContextMenuController> ContextMenuController::create(Page * page, ContextMenuClient* client)
59 { 59 {
60 return adoptPtrWillBeNoop(new ContextMenuController(page, client)); 60 return adoptPtrWillBeNoop(new ContextMenuController(page, client));
61 } 61 }
62 62
63 void ContextMenuController::trace(Visitor* visitor) 63 DEFINE_TRACE(ContextMenuController)
64 { 64 {
65 visitor->trace(m_menuProvider); 65 visitor->trace(m_menuProvider);
66 visitor->trace(m_hitTestResult); 66 visitor->trace(m_hitTestResult);
67 } 67 }
68 68
69 void ContextMenuController::clearContextMenu() 69 void ContextMenuController::clearContextMenu()
70 { 70 {
71 m_contextMenu.clear(); 71 m_contextMenu.clear();
72 if (m_menuProvider) 72 if (m_menuProvider)
73 m_menuProvider->contextMenuCleared(); 73 m_menuProvider->contextMenuCleared();
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 ASSERT(item->type() == ActionType || item->type() == CheckableActionType); 183 ASSERT(item->type() == ActionType || item->type() == CheckableActionType);
184 184
185 if (item->action() < ContextMenuItemBaseCustomTag || item->action() > Contex tMenuItemLastCustomTag) 185 if (item->action() < ContextMenuItemBaseCustomTag || item->action() > Contex tMenuItemLastCustomTag)
186 return; 186 return;
187 187
188 ASSERT(m_menuProvider); 188 ASSERT(m_menuProvider);
189 m_menuProvider->contextMenuItemSelected(item); 189 m_menuProvider->contextMenuItemSelected(item);
190 } 190 }
191 191
192 } // namespace blink 192 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/page/ContextMenuController.h ('k') | Source/core/page/ContextMenuProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698