| 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 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 ContextMenuClient* client() const { return m_client; } | 53 ContextMenuClient* client() const { return m_client; } |
| 54 | 54 |
| 55 ContextMenu* contextMenu() const { return m_contextMenu.get(); } | 55 ContextMenu* contextMenu() const { return m_contextMenu.get(); } |
| 56 void clearContextMenu(); | 56 void clearContextMenu(); |
| 57 | 57 |
| 58 void handleContextMenuEvent(Event*); | 58 void handleContextMenuEvent(Event*); |
| 59 void showContextMenu(Event*, PassRefPtr<ContextMenuProvider>); | 59 void showContextMenu(Event*, PassRefPtr<ContextMenuProvider>); |
| 60 | 60 |
| 61 void populate(); | 61 void populate(); |
| 62 void contextMenuItemSelected(ContextMenuItem*); | 62 void contextMenuItemSelected(const ContextMenuItem*); |
| 63 void addInspectElementItem(); | 63 void addInspectElementItem(); |
| 64 | 64 |
| 65 void checkOrEnableIfNeeded(ContextMenuItem&) const; | 65 void checkOrEnableIfNeeded(ContextMenuItem&) const; |
| 66 | 66 |
| 67 void setHitTestResult(const HitTestResult& result) { m_hitTestResult = r
esult; } | 67 void setHitTestResult(const HitTestResult& result) { m_hitTestResult = r
esult; } |
| 68 const HitTestResult& hitTestResult() { return m_hitTestResult; } | 68 const HitTestResult& hitTestResult() { return m_hitTestResult; } |
| 69 | 69 |
| 70 #if USE(ACCESSIBILITY_CONTEXT_MENUS) | 70 #if USE(ACCESSIBILITY_CONTEXT_MENUS) |
| 71 void showContextMenuAt(Frame*, const IntPoint& clickPoint); | 71 void showContextMenuAt(Frame*, const IntPoint& clickPoint); |
| 72 #endif | 72 #endif |
| (...skipping 19 matching lines...) Expand all Loading... |
| 92 ContextMenuClient* m_client; | 92 ContextMenuClient* m_client; |
| 93 OwnPtr<ContextMenu> m_contextMenu; | 93 OwnPtr<ContextMenu> m_contextMenu; |
| 94 RefPtr<ContextMenuProvider> m_menuProvider; | 94 RefPtr<ContextMenuProvider> m_menuProvider; |
| 95 HitTestResult m_hitTestResult; | 95 HitTestResult m_hitTestResult; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } | 98 } |
| 99 | 99 |
| 100 #endif // ENABLE(CONTEXT_MENUS) | 100 #endif // ENABLE(CONTEXT_MENUS) |
| 101 #endif | 101 #endif |
| OLD | NEW |