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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 virtual void hideHighlight() = 0; | 45 virtual void hideHighlight() = 0; |
46 | 46 |
47 virtual void clearBrowserCache() { } | 47 virtual void clearBrowserCache() { } |
48 virtual void clearBrowserCookies() { } | 48 virtual void clearBrowserCookies() { } |
49 | 49 |
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(TraceEventCallback) { } | 53 virtual void setTraceEventCallback(TraceEventCallback) { } |
54 | 54 |
55 virtual void overrideDeviceMetrics(int /*width*/, int /*height*/, float /*de
viceScaleFactor*/, bool /*fitWindow*/) { } | 55 virtual void overrideDeviceMetrics(int /*width*/, int /*height*/, float /*de
viceScaleFactor*/, bool /*emulateViewport*/, bool /*fitWindow*/) { } |
56 | 56 |
57 virtual bool overridesShowPaintRects() { return false; } | 57 virtual bool overridesShowPaintRects() { return false; } |
58 virtual void setShowPaintRects(bool) { } | 58 virtual void setShowPaintRects(bool) { } |
59 virtual void setShowDebugBorders(bool) { } | 59 virtual void setShowDebugBorders(bool) { } |
60 virtual void setShowFPSCounter(bool) { } | 60 virtual void setShowFPSCounter(bool) { } |
61 virtual void setContinuousPaintingEnabled(bool) { } | 61 virtual void setContinuousPaintingEnabled(bool) { } |
62 virtual void setShowScrollBottleneckRects(bool) { } | 62 virtual void setShowScrollBottleneckRects(bool) { } |
63 | 63 |
64 virtual void requestPageScaleFactor(float scale, const IntPoint& origin) { } | 64 virtual void requestPageScaleFactor(float scale, const IntPoint& origin) { } |
65 virtual void getAllocatedObjects(HashSet<const void*>&) { } | 65 virtual void getAllocatedObjects(HashSet<const void*>&) { } |
66 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t
>&) { } | 66 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t
>&) { } |
67 | 67 |
68 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { } | 68 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { } |
69 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { } | 69 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { } |
70 | 70 |
71 static bool doDispatchMessageOnFrontendPage(Page* frontendPage, const String
& message); | 71 static bool doDispatchMessageOnFrontendPage(Page* frontendPage, const String
& message); |
72 | 72 |
73 protected: | 73 protected: |
74 virtual ~InspectorClient() { } | 74 virtual ~InspectorClient() { } |
75 }; | 75 }; |
76 | 76 |
77 } // namespace WebCore | 77 } // namespace WebCore |
78 | 78 |
79 #endif // !defined(InspectorClient_h) | 79 #endif // !defined(InspectorClient_h) |
OLD | NEW |