| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 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 * | 7 * |
| 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef InspectorFrontendHost_h | 29 #ifndef InspectorFrontendHost_h |
| 30 #define InspectorFrontendHost_h | 30 #define InspectorFrontendHost_h |
| 31 | 31 |
| 32 #include "bindings/v8/ScriptWrappable.h" |
| 32 #include "core/page/ConsoleTypes.h" | 33 #include "core/page/ConsoleTypes.h" |
| 33 #include "core/page/ContextMenuProvider.h" | 34 #include "core/page/ContextMenuProvider.h" |
| 34 #include "core/platform/ContextMenu.h" | 35 #include "core/platform/ContextMenu.h" |
| 35 #include <wtf/RefCounted.h> | 36 #include <wtf/RefCounted.h> |
| 36 #include <wtf/text/WTFString.h> | 37 #include <wtf/text/WTFString.h> |
| 37 #include <wtf/Vector.h> | 38 #include <wtf/Vector.h> |
| 38 | 39 |
| 39 namespace WebCore { | 40 namespace WebCore { |
| 40 | 41 |
| 41 class ContextMenuItem; | 42 class ContextMenuItem; |
| 42 class DOMFileSystem; | 43 class DOMFileSystem; |
| 43 class Event; | 44 class Event; |
| 44 class FrontendMenuProvider; | 45 class FrontendMenuProvider; |
| 45 class InspectorClient; | 46 class InspectorClient; |
| 46 class InspectorFrontendClient; | 47 class InspectorFrontendClient; |
| 47 class Node; | 48 class Node; |
| 48 class Page; | 49 class Page; |
| 49 | 50 |
| 50 class InspectorFrontendHost : public RefCounted<InspectorFrontendHost> { | 51 class InspectorFrontendHost : public RefCounted<InspectorFrontendHost>, public S
criptWrappable { |
| 51 public: | 52 public: |
| 52 static PassRefPtr<InspectorFrontendHost> create(InspectorFrontendClient* cli
ent, Page* frontendPage) | 53 static PassRefPtr<InspectorFrontendHost> create(InspectorFrontendClient* cli
ent, Page* frontendPage) |
| 53 { | 54 { |
| 54 return adoptRef(new InspectorFrontendHost(client, frontendPage)); | 55 return adoptRef(new InspectorFrontendHost(client, frontendPage)); |
| 55 } | 56 } |
| 56 | 57 |
| 57 ~InspectorFrontendHost(); | 58 ~InspectorFrontendHost(); |
| 58 void disconnectClient(); | 59 void disconnectClient(); |
| 59 | 60 |
| 60 void requestSetDockSide(const String&); | 61 void requestSetDockSide(const String&); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 InspectorFrontendHost(InspectorFrontendClient* client, Page* frontendPage); | 103 InspectorFrontendHost(InspectorFrontendClient* client, Page* frontendPage); |
| 103 | 104 |
| 104 InspectorFrontendClient* m_client; | 105 InspectorFrontendClient* m_client; |
| 105 Page* m_frontendPage; | 106 Page* m_frontendPage; |
| 106 FrontendMenuProvider* m_menuProvider; | 107 FrontendMenuProvider* m_menuProvider; |
| 107 }; | 108 }; |
| 108 | 109 |
| 109 } // namespace WebCore | 110 } // namespace WebCore |
| 110 | 111 |
| 111 #endif // !defined(InspectorFrontendHost_h) | 112 #endif // !defined(InspectorFrontendHost_h) |
| OLD | NEW |