OLD | NEW |
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 17 matching lines...) Expand all Loading... |
28 #include "core/page/ContextMenuController.h" | 28 #include "core/page/ContextMenuController.h" |
29 | 29 |
30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
31 #include "core/events/Event.h" | 31 #include "core/events/Event.h" |
32 #include "core/events/MouseEvent.h" | 32 #include "core/events/MouseEvent.h" |
33 #include "core/dom/Node.h" | 33 #include "core/dom/Node.h" |
34 #include "core/page/ContextMenuClient.h" | 34 #include "core/page/ContextMenuClient.h" |
35 #include "core/page/ContextMenuProvider.h" | 35 #include "core/page/ContextMenuProvider.h" |
36 #include "core/page/EventHandler.h" | 36 #include "core/page/EventHandler.h" |
37 #include "core/frame/Frame.h" | 37 #include "core/frame/Frame.h" |
38 #include "core/rendering/HitTestResult.h" | |
39 #include "platform/ContextMenu.h" | 38 #include "platform/ContextMenu.h" |
40 #include "platform/ContextMenuItem.h" | 39 #include "platform/ContextMenuItem.h" |
41 | 40 |
42 namespace WebCore { | 41 namespace WebCore { |
43 | 42 |
44 ContextMenuController::ContextMenuController(Page*, ContextMenuClient* client) | 43 ContextMenuController::ContextMenuController(Page*, ContextMenuClient* client) |
45 : m_client(client) | 44 : m_client(client) |
46 { | 45 { |
47 ASSERT_ARG(client, client); | 46 ASSERT_ARG(client, client); |
48 } | 47 } |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 ASSERT(item->type() == ActionType || item->type() == CheckableActionType); | 129 ASSERT(item->type() == ActionType || item->type() == CheckableActionType); |
131 | 130 |
132 if (item->action() < ContextMenuItemBaseCustomTag || item->action() > Contex
tMenuItemLastCustomTag) | 131 if (item->action() < ContextMenuItemBaseCustomTag || item->action() > Contex
tMenuItemLastCustomTag) |
133 return; | 132 return; |
134 | 133 |
135 ASSERT(m_menuProvider); | 134 ASSERT(m_menuProvider); |
136 m_menuProvider->contextMenuItemSelected(item); | 135 m_menuProvider->contextMenuItemSelected(item); |
137 } | 136 } |
138 | 137 |
139 } // namespace WebCore | 138 } // namespace WebCore |
OLD | NEW |