OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 typedef void (*TraceEventCallback)(char phase, const unsigned char*, const c
har* name, unsigned long long id, | 50 typedef void (*TraceEventCallback)(char phase, const unsigned char*, const c
har* name, unsigned long long id, |
51 int numArgs, const char* const* argNames, const unsigned char* argTypes,
const unsigned long long* argValues, | 51 int numArgs, const char* const* argNames, const unsigned char* argTypes,
const unsigned long long* argValues, |
52 unsigned char flags, double timestamp); | 52 unsigned char flags, double timestamp); |
53 virtual void setTraceEventCallback(const String& categoryFilter, TraceEventC
allback) { } | 53 virtual void setTraceEventCallback(const String& categoryFilter, TraceEventC
allback) { } |
54 virtual void resetTraceEventCallback() { } | 54 virtual void resetTraceEventCallback() { } |
55 | 55 |
56 virtual void startGPUEventsRecording() { } | 56 virtual void startGPUEventsRecording() { } |
57 virtual void stopGPUEventsRecording() { } | 57 virtual void stopGPUEventsRecording() { } |
58 | 58 |
59 virtual void overrideDeviceMetrics(int /*width*/, int /*height*/, float /*de
viceScaleFactor*/, bool /*emulateViewport*/, bool /*fitWindow*/) { } | 59 virtual void overrideDeviceMetrics(int /*width*/, int /*height*/, float /*de
viceScaleFactor*/, bool /*emulateViewport*/, bool /*fitWindow*/) { } |
| 60 virtual void setTouchEventEmulationEnabled(bool) { } |
60 | 61 |
61 virtual bool overridesShowPaintRects() { return false; } | 62 virtual bool overridesShowPaintRects() { return false; } |
62 virtual void setShowPaintRects(bool) { } | 63 virtual void setShowPaintRects(bool) { } |
63 virtual void setShowDebugBorders(bool) { } | 64 virtual void setShowDebugBorders(bool) { } |
64 virtual void setShowFPSCounter(bool) { } | 65 virtual void setShowFPSCounter(bool) { } |
65 virtual void setContinuousPaintingEnabled(bool) { } | 66 virtual void setContinuousPaintingEnabled(bool) { } |
66 virtual void setShowScrollBottleneckRects(bool) { } | 67 virtual void setShowScrollBottleneckRects(bool) { } |
67 | 68 |
68 virtual void requestPageScaleFactor(float scale, const IntPoint& origin) { } | 69 virtual void requestPageScaleFactor(float scale, const IntPoint& origin) { } |
69 virtual void getAllocatedObjects(HashSet<const void*>&) { } | 70 virtual void getAllocatedObjects(HashSet<const void*>&) { } |
70 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t
>&) { } | 71 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t
>&) { } |
71 | 72 |
72 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { } | 73 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { } |
73 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { } | 74 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { } |
74 | 75 |
75 static bool doDispatchMessageOnFrontendPage(Page* frontendPage, const String
& message); | 76 static bool doDispatchMessageOnFrontendPage(Page* frontendPage, const String
& message); |
76 | 77 |
77 protected: | 78 protected: |
78 virtual ~InspectorClient() { } | 79 virtual ~InspectorClient() { } |
79 }; | 80 }; |
80 | 81 |
81 } // namespace WebCore | 82 } // namespace WebCore |
82 | 83 |
83 #endif // !defined(InspectorClient_h) | 84 #endif // !defined(InspectorClient_h) |
OLD | NEW |