| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 class ContextMenu; | 37 class ContextMenu; |
| 38 class ContextMenuClient; | 38 class ContextMenuClient; |
| 39 class ContextMenuItem; | 39 class ContextMenuItem; |
| 40 class ContextMenuProvider; | 40 class ContextMenuProvider; |
| 41 class Document; | 41 class Document; |
| 42 class Event; | 42 class Event; |
| 43 class LocalFrame; | 43 class LocalFrame; |
| 44 class Page; | 44 class Page; |
| 45 | 45 |
| 46 class ContextMenuController { | 46 class ContextMenuController : public NoBaseWillBeGarbageCollectedFinalized<C
ontextMenuController> { |
| 47 WTF_MAKE_NONCOPYABLE(ContextMenuController); WTF_MAKE_FAST_ALLOCATED; | 47 WTF_MAKE_NONCOPYABLE(ContextMenuController); WTF_MAKE_FAST_ALLOCATED_WIL
L_BE_REMOVED; |
| 48 public: | 48 public: |
| 49 static PassOwnPtr<ContextMenuController> create(Page*, ContextMenuClient
*); | 49 static PassOwnPtrWillBeRawPtr<ContextMenuController> create(Page*, Conte
xtMenuClient*); |
| 50 ~ContextMenuController(); | 50 ~ContextMenuController(); |
| 51 void trace(Visitor*); |
| 51 | 52 |
| 52 ContextMenu* contextMenu() const { return m_contextMenu.get(); } | 53 ContextMenu* contextMenu() const { return m_contextMenu.get(); } |
| 53 void clearContextMenu(); | 54 void clearContextMenu(); |
| 54 | 55 |
| 55 void documentDetached(Document*); | 56 void documentDetached(Document*); |
| 56 | 57 |
| 57 void handleContextMenuEvent(Event*); | 58 void handleContextMenuEvent(Event*); |
| 58 void showContextMenu(Event*, PassRefPtr<ContextMenuProvider>); | 59 void showContextMenu(Event*, PassRefPtr<ContextMenuProvider>); |
| 59 void showContextMenuAtPoint(LocalFrame*, float x, float y, PassRefPtr<Co
ntextMenuProvider>); | 60 void showContextMenuAtPoint(LocalFrame*, float x, float y, PassRefPtr<Co
ntextMenuProvider>); |
| 60 | 61 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 71 | 72 |
| 72 ContextMenuClient* m_client; | 73 ContextMenuClient* m_client; |
| 73 OwnPtr<ContextMenu> m_contextMenu; | 74 OwnPtr<ContextMenu> m_contextMenu; |
| 74 RefPtr<ContextMenuProvider> m_menuProvider; | 75 RefPtr<ContextMenuProvider> m_menuProvider; |
| 75 HitTestResult m_hitTestResult; | 76 HitTestResult m_hitTestResult; |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } | 79 } |
| 79 | 80 |
| 80 #endif | 81 #endif |
| OLD | NEW |