summaryrefslogtreecommitdiff
path: root/Source/WebCore/inspector/InspectorFrontendHost.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/inspector/InspectorFrontendHost.h')
-rw-r--r--Source/WebCore/inspector/InspectorFrontendHost.h46
1 files changed, 24 insertions, 22 deletions
diff --git a/Source/WebCore/inspector/InspectorFrontendHost.h b/Source/WebCore/inspector/InspectorFrontendHost.h
index 9dc67b0c7..b6af405e6 100644
--- a/Source/WebCore/inspector/InspectorFrontendHost.h
+++ b/Source/WebCore/inspector/InspectorFrontendHost.h
@@ -1,18 +1,18 @@
/*
- * Copyright (C) 2007 Apple Inc. All rights reserved.
+ * Copyright (C) 2007-2017 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
+ * documentation and/or other materials provided with the distribution.
+ * 3. Neither the name of Apple Inc. ("Apple") nor the names of
* its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+ * from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@@ -26,10 +26,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorFrontendHost_h
-#define InspectorFrontendHost_h
+#pragma once
-#include "ConsoleTypes.h"
#include "ContextMenu.h"
#include "ContextMenuProvider.h"
#include <wtf/RefCounted.h>
@@ -46,31 +44,41 @@ class Page;
class InspectorFrontendHost : public RefCounted<InspectorFrontendHost> {
public:
- static PassRefPtr<InspectorFrontendHost> create(InspectorFrontendClient* client, Page* frontendPage)
+ static Ref<InspectorFrontendHost> create(InspectorFrontendClient* client, Page* frontendPage)
{
- return adoptRef(new InspectorFrontendHost(client, frontendPage));
+ return adoptRef(*new InspectorFrontendHost(client, frontendPage));
}
- ~InspectorFrontendHost();
- void disconnectClient();
+ WEBCORE_EXPORT ~InspectorFrontendHost();
+ WEBCORE_EXPORT void disconnectClient();
void loaded();
void requestSetDockSide(const String&);
void closeWindow();
void bringToFront();
- void setZoomFactor(float);
void inspectedURLChanged(const String&);
+ void setZoomFactor(float);
+ float zoomFactor();
+
+ String userInterfaceLayoutDirection();
+
void setAttachedWindowHeight(unsigned);
void setAttachedWindowWidth(unsigned);
- void setToolbarHeight(unsigned);
+ void startWindowDrag();
void moveWindowBy(float x, float y) const;
String localizedStringsURL();
+ String backendCommandsURL();
String debuggableType();
+ unsigned inspectionLevel();
+
+ String platform();
+ String port();
void copyText(const String& text);
+ void killText(const String& text, bool shouldPrependToKillRing, bool shouldStartNewSequence);
void openInNewTab(const String& url);
bool canSave();
void save(const String& url, const String& content, bool base64Encoded, bool forceSaveAs);
@@ -84,20 +92,16 @@ public:
void sendMessageToBackend(const String& message);
void dispatchEventAsContextMenuEvent(Event*);
- String loadResourceSynchronously(const String& url);
-
bool isUnderTest();
+ void unbufferedLog(const String& message);
void beep();
- bool canInspectWorkers();
- bool canSaveAs();
-
private:
#if ENABLE(CONTEXT_MENUS)
friend class FrontendMenuProvider;
#endif
- InspectorFrontendHost(InspectorFrontendClient*, Page* frontendPage);
+ WEBCORE_EXPORT InspectorFrontendHost(InspectorFrontendClient*, Page* frontendPage);
InspectorFrontendClient* m_client;
Page* m_frontendPage;
@@ -107,5 +111,3 @@ private:
};
} // namespace WebCore
-
-#endif // !defined(InspectorFrontendHost_h)