| 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 16 matching lines...) Expand all Loading... |
| 27 #include "config.h" | 27 #include "config.h" |
| 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/dom/Node.h" | 31 #include "core/dom/Node.h" |
| 32 #include "core/events/Event.h" | 32 #include "core/events/Event.h" |
| 33 #include "core/events/MouseEvent.h" | 33 #include "core/events/MouseEvent.h" |
| 34 #include "core/events/RelatedEvent.h" | 34 #include "core/events/RelatedEvent.h" |
| 35 #include "core/frame/LocalFrame.h" | 35 #include "core/frame/LocalFrame.h" |
| 36 #include "core/html/HTMLMenuElement.h" | 36 #include "core/html/HTMLMenuElement.h" |
| 37 #include "core/input/EventHandler.h" |
| 37 #include "core/page/ContextMenuClient.h" | 38 #include "core/page/ContextMenuClient.h" |
| 38 #include "core/page/ContextMenuProvider.h" | 39 #include "core/page/ContextMenuProvider.h" |
| 39 #include "core/page/CustomContextMenuProvider.h" | 40 #include "core/page/CustomContextMenuProvider.h" |
| 40 #include "core/page/EventHandler.h" | |
| 41 #include "platform/ContextMenu.h" | 41 #include "platform/ContextMenu.h" |
| 42 #include "platform/ContextMenuItem.h" | 42 #include "platform/ContextMenuItem.h" |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 using namespace HTMLNames; | 46 using namespace HTMLNames; |
| 47 | 47 |
| 48 ContextMenuController::ContextMenuController(Page*, ContextMenuClient* client) | 48 ContextMenuController::ContextMenuController(Page*, ContextMenuClient* client) |
| 49 : m_client(client) | 49 : m_client(client) |
| 50 { | 50 { |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 ASSERT(item->type() == ActionType || item->type() == CheckableActionType); | 184 ASSERT(item->type() == ActionType || item->type() == CheckableActionType); |
| 185 | 185 |
| 186 if (item->action() < ContextMenuItemBaseCustomTag || item->action() > Contex
tMenuItemLastCustomTag) | 186 if (item->action() < ContextMenuItemBaseCustomTag || item->action() > Contex
tMenuItemLastCustomTag) |
| 187 return; | 187 return; |
| 188 | 188 |
| 189 ASSERT(m_menuProvider); | 189 ASSERT(m_menuProvider); |
| 190 m_menuProvider->contextMenuItemSelected(item); | 190 m_menuProvider->contextMenuItemSelected(item); |
| 191 } | 191 } |
| 192 | 192 |
| 193 } // namespace blink | 193 } // namespace blink |
| OLD | NEW |