Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1138)

Side by Side Diff: Source/core/inspector/InspectorClient.h

Issue 184043004: DevTools: specify trace event filter when installing trace callback (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: unsetTraceEventHandler -> resetTraceEventHandler Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/inspector/TraceEventDispatcher.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public: 43 public:
44 virtual void highlight() = 0; 44 virtual void highlight() = 0;
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(const String& categoryFilter, TraceEventC allback) { }
54 virtual void resetTraceEventCallback() { }
54 55
55 virtual void startGPUEventsRecording() { } 56 virtual void startGPUEventsRecording() { }
56 virtual void stopGPUEventsRecording() { } 57 virtual void stopGPUEventsRecording() { }
57 58
58 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*/) { }
59 60
60 virtual bool overridesShowPaintRects() { return false; } 61 virtual bool overridesShowPaintRects() { return false; }
61 virtual void setShowPaintRects(bool) { } 62 virtual void setShowPaintRects(bool) { }
62 virtual void setShowDebugBorders(bool) { } 63 virtual void setShowDebugBorders(bool) { }
63 virtual void setShowFPSCounter(bool) { } 64 virtual void setShowFPSCounter(bool) { }
64 virtual void setContinuousPaintingEnabled(bool) { } 65 virtual void setContinuousPaintingEnabled(bool) { }
65 virtual void setShowScrollBottleneckRects(bool) { } 66 virtual void setShowScrollBottleneckRects(bool) { }
66 67
67 virtual void requestPageScaleFactor(float scale, const IntPoint& origin) { } 68 virtual void requestPageScaleFactor(float scale, const IntPoint& origin) { }
68 virtual void getAllocatedObjects(HashSet<const void*>&) { } 69 virtual void getAllocatedObjects(HashSet<const void*>&) { }
69 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t >&) { } 70 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t >&) { }
70 71
71 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { } 72 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { }
72 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { } 73 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { }
73 74
74 static bool doDispatchMessageOnFrontendPage(Page* frontendPage, const String & message); 75 static bool doDispatchMessageOnFrontendPage(Page* frontendPage, const String & message);
75 76
76 protected: 77 protected:
77 virtual ~InspectorClient() { } 78 virtual ~InspectorClient() { }
78 }; 79 };
79 80
80 } // namespace WebCore 81 } // namespace WebCore
81 82
82 #endif // !defined(InspectorClient_h) 83 #endif // !defined(InspectorClient_h)
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/TraceEventDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698