| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef WebDevToolsAgentClient_h | 31 #ifndef WebDevToolsAgentClient_h |
| 32 #define WebDevToolsAgentClient_h | 32 #define WebDevToolsAgentClient_h |
| 33 | 33 |
| 34 #include "../platform/WebCString.h" | 34 #include "../platform/WebCString.h" |
| 35 #include "../platform/WebCommon.h" | 35 #include "../platform/WebCommon.h" |
| 36 | 36 |
| 37 namespace WebKit { | 37 namespace WebKit { |
| 38 class WebString; | 38 class WebString; |
| 39 struct WebDevToolsMessageData; | 39 struct WebDevToolsMessageData; |
| 40 struct WebRect; |
| 41 struct WebSize; |
| 40 | 42 |
| 41 class WebDevToolsAgentClient { | 43 class WebDevToolsAgentClient { |
| 42 public: | 44 public: |
| 43 virtual void sendMessageToInspectorFrontend(const WebString&) { } | 45 virtual void sendMessageToInspectorFrontend(const WebString&) { } |
| 44 virtual void sendDebuggerOutput(const WebString&) { } | 46 virtual void sendDebuggerOutput(const WebString&) { } |
| 45 | 47 |
| 46 // Returns the identifier of the entity hosting this agent. | 48 // Returns the identifier of the entity hosting this agent. |
| 47 virtual int hostIdentifier() { return -1; } | 49 virtual int hostIdentifier() { return -1; } |
| 48 | 50 |
| 49 // Save the agent state in order to pass it later into WebDevToolsAgent::rea
ttach | 51 // Save the agent state in order to pass it later into WebDevToolsAgent::rea
ttach |
| (...skipping 26 matching lines...) Expand all Loading... |
| 76 virtual ~InstrumentedObjectSizeProvider() { } | 78 virtual ~InstrumentedObjectSizeProvider() { } |
| 77 }; | 79 }; |
| 78 virtual void dumpUncountedAllocatedObjects(const InstrumentedObjectSizeProvi
der*) { } | 80 virtual void dumpUncountedAllocatedObjects(const InstrumentedObjectSizeProvi
der*) { } |
| 79 | 81 |
| 80 typedef void (*TraceEventCallback)(char phase, const unsigned char*, const c
har* name, unsigned long long id, | 82 typedef void (*TraceEventCallback)(char phase, const unsigned char*, const c
har* name, unsigned long long id, |
| 81 int numArgs, const char* const* argNames, const unsigned char* argTypes,
const unsigned long long* argValues, | 83 int numArgs, const char* const* argNames, const unsigned char* argTypes,
const unsigned long long* argValues, |
| 82 unsigned char flags); | 84 unsigned char flags); |
| 83 | 85 |
| 84 virtual void setTraceEventCallback(TraceEventCallback) { } | 86 virtual void setTraceEventCallback(TraceEventCallback) { } |
| 85 | 87 |
| 88 // Called to emulate device dimensions, scale factor and input. Window shoul
d |
| 89 // occupy the whole device screen, while the view should be located at |view
Rect|. |
| 90 // With |fitToView| set, contents should be scaled down to fit into embedder
window. |
| 91 // All sizes are measured in device independent pixels. |
| 92 virtual void enableDeviceEmulation( |
| 93 const WebSize& screenSize, const WebRect& viewRect, |
| 94 float deviceScaleFactor, bool fitToView) { } |
| 95 virtual void disableDeviceEmulation() { } |
| 96 |
| 86 protected: | 97 protected: |
| 87 ~WebDevToolsAgentClient() { } | 98 ~WebDevToolsAgentClient() { } |
| 88 }; | 99 }; |
| 89 | 100 |
| 90 } // namespace WebKit | 101 } // namespace WebKit |
| 91 | 102 |
| 92 #endif | 103 #endif |
| OLD | NEW |