| 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 25 matching lines...) Expand all Loading... |
| 36 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class ContextMenuItem; | 40 class ContextMenuItem; |
| 41 class Event; | 41 class Event; |
| 42 class FrontendMenuProvider; | 42 class FrontendMenuProvider; |
| 43 class InspectorFrontendClient; | 43 class InspectorFrontendClient; |
| 44 class LocalFrame; | 44 class LocalFrame; |
| 45 | 45 |
| 46 class CORE_EXPORT DevToolsHost final : public RefCountedWillBeGarbageCollectedFi
nalized<DevToolsHost>, public ScriptWrappable { | 46 class CORE_EXPORT DevToolsHost final : public GarbageCollectedFinalized<DevTools
Host>, public ScriptWrappable { |
| 47 DEFINE_WRAPPERTYPEINFO(); | 47 DEFINE_WRAPPERTYPEINFO(); |
| 48 public: | 48 public: |
| 49 static PassRefPtrWillBeRawPtr<DevToolsHost> create(InspectorFrontendClient*
client, LocalFrame* frontendFrame) | 49 static RawPtr<DevToolsHost> create(InspectorFrontendClient* client, LocalFra
me* frontendFrame) |
| 50 { | 50 { |
| 51 return adoptRefWillBeNoop(new DevToolsHost(client, frontendFrame)); | 51 return new DevToolsHost(client, frontendFrame); |
| 52 } | 52 } |
| 53 | 53 |
| 54 ~DevToolsHost(); | 54 ~DevToolsHost(); |
| 55 DECLARE_TRACE(); | 55 DECLARE_TRACE(); |
| 56 void disconnectClient(); | 56 void disconnectClient(); |
| 57 | 57 |
| 58 float zoomFactor(); | 58 float zoomFactor(); |
| 59 | 59 |
| 60 float convertLengthForEmbedder(float length); | 60 float convertLengthForEmbedder(float length); |
| 61 | 61 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 76 | 76 |
| 77 void clearMenuProvider() { m_menuProvider = nullptr; } | 77 void clearMenuProvider() { m_menuProvider = nullptr; } |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 friend class FrontendMenuProvider; | 80 friend class FrontendMenuProvider; |
| 81 | 81 |
| 82 DevToolsHost(InspectorFrontendClient*, LocalFrame* frontendFrame); | 82 DevToolsHost(InspectorFrontendClient*, LocalFrame* frontendFrame); |
| 83 void evaluateScript(const String&); | 83 void evaluateScript(const String&); |
| 84 | 84 |
| 85 InspectorFrontendClient* m_client; | 85 InspectorFrontendClient* m_client; |
| 86 RawPtrWillBeMember<LocalFrame> m_frontendFrame; | 86 Member<LocalFrame> m_frontendFrame; |
| 87 RawPtrWillBeMember<FrontendMenuProvider> m_menuProvider; | 87 Member<FrontendMenuProvider> m_menuProvider; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace blink | 90 } // namespace blink |
| 91 | 91 |
| 92 #endif // DevToolsHost_h | 92 #endif // DevToolsHost_h |
| OLD | NEW |