OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
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 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 virtual void populateContextMenu(ContextMenu* menu) | 88 virtual void populateContextMenu(ContextMenu* menu) |
89 { | 89 { |
90 for (size_t i = 0; i < m_items.size(); ++i) | 90 for (size_t i = 0; i < m_items.size(); ++i) |
91 menu->appendItem(m_items[i]); | 91 menu->appendItem(m_items[i]); |
92 } | 92 } |
93 | 93 |
94 virtual void contextMenuItemSelected(ContextMenuItem* item) | 94 virtual void contextMenuItemSelected(ContextMenuItem* item) |
95 { | 95 { |
96 if (m_frontendHost) { | 96 if (m_frontendHost) { |
97 UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGestur
e); | 97 UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGes
ture); |
98 int itemNumber = item->action() - ContextMenuItemBaseCustomTag; | 98 int itemNumber = item->action() - ContextMenuItemBaseCustomTag; |
99 | 99 |
100 ScriptFunctionCall function(m_frontendApiObject, "contextMenuItemSel
ected"); | 100 ScriptFunctionCall function(m_frontendApiObject, "contextMenuItemSel
ected"); |
101 function.appendArgument(itemNumber); | 101 function.appendArgument(itemNumber); |
102 function.call(); | 102 function.call(); |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
106 virtual void contextMenuCleared() | 106 virtual void contextMenuCleared() |
107 { | 107 { |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 #endif | 332 #endif |
333 | 333 |
334 bool InspectorFrontendHost::isUnderTest() | 334 bool InspectorFrontendHost::isUnderTest() |
335 { | 335 { |
336 return m_client && m_client->isUnderTest(); | 336 return m_client && m_client->isUnderTest(); |
337 } | 337 } |
338 | 338 |
339 } // namespace WebCore | 339 } // namespace WebCore |
340 | 340 |
341 #endif // ENABLE(INSPECTOR) | 341 #endif // ENABLE(INSPECTOR) |
OLD | NEW |