| 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/platform/ContextMenu.h" | |
| 39 #include "core/platform/ContextMenuItem.h" | |
| 40 #include "core/rendering/HitTestResult.h" | 38 #include "core/rendering/HitTestResult.h" |
| 39 #include "platform/ContextMenu.h" |
| 40 #include "platform/ContextMenuItem.h" |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 ContextMenuController::ContextMenuController(Page*, ContextMenuClient* client) | 44 ContextMenuController::ContextMenuController(Page*, ContextMenuClient* client) |
| 45 : m_client(client) | 45 : m_client(client) |
| 46 { | 46 { |
| 47 ASSERT_ARG(client, client); | 47 ASSERT_ARG(client, client); |
| 48 } | 48 } |
| 49 | 49 |
| 50 ContextMenuController::~ContextMenuController() | 50 ContextMenuController::~ContextMenuController() |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 ASSERT(item->type() == ActionType || item->type() == CheckableActionType); | 130 ASSERT(item->type() == ActionType || item->type() == CheckableActionType); |
| 131 | 131 |
| 132 if (item->action() < ContextMenuItemBaseCustomTag || item->action() > Contex
tMenuItemLastCustomTag) | 132 if (item->action() < ContextMenuItemBaseCustomTag || item->action() > Contex
tMenuItemLastCustomTag) |
| 133 return; | 133 return; |
| 134 | 134 |
| 135 ASSERT(m_menuProvider); | 135 ASSERT(m_menuProvider); |
| 136 m_menuProvider->contextMenuItemSelected(item); | 136 m_menuProvider->contextMenuItemSelected(item); |
| 137 } | 137 } |
| 138 | 138 |
| 139 } // namespace WebCore | 139 } // namespace WebCore |
| OLD | NEW |