| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 void setInjectedScriptForOrigin(const String& origin, const String& script); | 60 void setInjectedScriptForOrigin(const String& origin, const String& script); |
| 61 | 61 |
| 62 void copyText(const String& text); | 62 void copyText(const String& text); |
| 63 | 63 |
| 64 // Called from [Custom] implementations. | |
| 65 void showContextMenu(Event*, const Vector<ContextMenuItem>& items); | |
| 66 void showContextMenu(LocalFrame* targetFrame, float x, float y, const Vector
<ContextMenuItem>& items); | 64 void showContextMenu(LocalFrame* targetFrame, float x, float y, const Vector
<ContextMenuItem>& items); |
| 67 void sendMessageToEmbedder(const String& message); | 65 void sendMessageToEmbedder(const String& message); |
| 68 | 66 |
| 69 String getSelectionBackgroundColor(); | 67 String getSelectionBackgroundColor(); |
| 70 String getSelectionForegroundColor(); | 68 String getSelectionForegroundColor(); |
| 71 | 69 |
| 72 bool isUnderTest(); | 70 bool isUnderTest(); |
| 73 bool isHostedMode(); | 71 bool isHostedMode(); |
| 74 | 72 |
| 75 LocalFrame* frontendFrame() { return m_frontendFrame; } | 73 LocalFrame* frontendFrame() { return m_frontendFrame; } |
| 76 | 74 |
| 77 void clearMenuProvider() { m_menuProvider = nullptr; } | 75 void clearMenuProvider() { m_menuProvider = nullptr; } |
| 78 | 76 |
| 79 private: | 77 private: |
| 80 DevToolsHost(InspectorFrontendClient*, LocalFrame* frontendFrame); | 78 DevToolsHost(InspectorFrontendClient*, LocalFrame* frontendFrame); |
| 81 | 79 |
| 82 InspectorFrontendClient* m_client; | 80 InspectorFrontendClient* m_client; |
| 83 RawPtrWillBeMember<LocalFrame> m_frontendFrame; | 81 RawPtrWillBeMember<LocalFrame> m_frontendFrame; |
| 84 RawPtrWillBeMember<FrontendMenuProvider> m_menuProvider; | 82 RawPtrWillBeMember<FrontendMenuProvider> m_menuProvider; |
| 85 }; | 83 }; |
| 86 | 84 |
| 87 } // namespace blink | 85 } // namespace blink |
| 88 | 86 |
| 89 #endif // DevToolsHost_h | 87 #endif // DevToolsHost_h |
| OLD | NEW |