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

Side by Side Diff: public/web/WebDevToolsAgentClient.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 | « Source/web/WebDevToolsAgentImpl.cpp ('k') | no next file » | 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) 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual size_t objectSize(const void* ptr) const = 0; 76 virtual size_t objectSize(const void* ptr) const = 0;
77 protected: 77 protected:
78 virtual ~InstrumentedObjectSizeProvider() { } 78 virtual ~InstrumentedObjectSizeProvider() { }
79 }; 79 };
80 virtual void dumpUncountedAllocatedObjects(const InstrumentedObjectSizeProvi der*) { } 80 virtual void dumpUncountedAllocatedObjects(const InstrumentedObjectSizeProvi der*) { }
81 81
82 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,
83 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,
84 unsigned char flags, double timestamp); 84 unsigned char flags, double timestamp);
85 85
86 virtual void setTraceEventCallback(TraceEventCallback) { } 86 virtual void setTraceEventCallback(const WebString& categoryFilter, TraceEve ntCallback) { }
87 virtual void resetTraceEventCallback() { }
87 88
88 virtual void startGPUEventsRecording() { } 89 virtual void startGPUEventsRecording() { }
89 virtual void stopGPUEventsRecording() { } 90 virtual void stopGPUEventsRecording() { }
90 91
91 // Called to emulate device dimensions, scale factor and input. Window shoul d 92 // Called to emulate device dimensions, scale factor and input. Window shoul d
92 // occupy the whole device screen, while the view should be located at |view Rect|. 93 // occupy the whole device screen, while the view should be located at |view Rect|.
93 // x-coordinate of |screenRect| defines the left and right gutters' width, 94 // x-coordinate of |screenRect| defines the left and right gutters' width,
94 // y-coordinate defines the top and bottom gutters' height. 95 // y-coordinate defines the top and bottom gutters' height.
95 // With |fitToView| set, contents should be scaled down to fit into embedder window. 96 // With |fitToView| set, contents should be scaled down to fit into embedder window.
96 // All sizes are measured in device independent pixels. 97 // All sizes are measured in device independent pixels.
97 virtual void enableDeviceEmulation( 98 virtual void enableDeviceEmulation(
98 const WebRect& screenRect, const WebRect& viewRect, 99 const WebRect& screenRect, const WebRect& viewRect,
99 float deviceScaleFactor, bool fitToView) { } 100 float deviceScaleFactor, bool fitToView) { }
100 101
101 // Cancel emulation started via |enableDeviceEmulation| call. 102 // Cancel emulation started via |enableDeviceEmulation| call.
102 virtual void disableDeviceEmulation() { } 103 virtual void disableDeviceEmulation() { }
103 104
104 protected: 105 protected:
105 ~WebDevToolsAgentClient() { } 106 ~WebDevToolsAgentClient() { }
106 }; 107 };
107 108
108 } // namespace blink 109 } // namespace blink
109 110
110 #endif 111 #endif
OLDNEW
« no previous file with comments | « Source/web/WebDevToolsAgentImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698