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

Side by Side Diff: third_party/WebKit/Source/web/InspectorOverlay.h

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 namespace blink { 47 namespace blink {
48 48
49 class Color; 49 class Color;
50 class EmptyChromeClient; 50 class EmptyChromeClient;
51 class LocalFrame; 51 class LocalFrame;
52 class GraphicsContext; 52 class GraphicsContext;
53 class GraphicsLayer; 53 class GraphicsLayer;
54 class InspectorCSSAgent; 54 class InspectorCSSAgent;
55 class InspectorDebuggerAgent; 55 class InspectorDebuggerAgent;
56 class JSONValue;
57 class LayoutEditor; 56 class LayoutEditor;
58 class Node; 57 class Node;
59 class Page; 58 class Page;
60 class PageOverlay; 59 class PageOverlay;
61 class WebViewImpl; 60 class WebViewImpl;
62 61
62 namespace protocol {
63 class Value;
64 }
65
63 class InspectorOverlay final 66 class InspectorOverlay final
64 : public NoBaseWillBeGarbageCollectedFinalized<InspectorOverlay> 67 : public NoBaseWillBeGarbageCollectedFinalized<InspectorOverlay>
65 , public InspectorDOMAgent::Client 68 , public InspectorDOMAgent::Client
66 , public InspectorProfilerAgent::Client 69 , public InspectorProfilerAgent::Client
67 , public InspectorOverlayHost::Listener { 70 , public InspectorOverlayHost::Listener {
68 USING_FAST_MALLOC_WILL_BE_REMOVED(InspectorOverlay); 71 USING_FAST_MALLOC_WILL_BE_REMOVED(InspectorOverlay);
69 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlay); 72 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlay);
70 public: 73 public:
71 static PassOwnPtrWillBeRawPtr<InspectorOverlay> create(WebViewImpl* webViewI mpl) 74 static PassOwnPtrWillBeRawPtr<InspectorOverlay> create(WebViewImpl* webViewI mpl)
72 { 75 {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 bool isEmpty(); 123 bool isEmpty();
121 void drawNodeHighlight(); 124 void drawNodeHighlight();
122 void drawQuadHighlight(); 125 void drawQuadHighlight();
123 void drawPausedInDebuggerMessage(); 126 void drawPausedInDebuggerMessage();
124 void drawViewSize(); 127 void drawViewSize();
125 128
126 Page* overlayPage(); 129 Page* overlayPage();
127 LocalFrame* overlayMainFrame(); 130 LocalFrame* overlayMainFrame();
128 void reset(const IntSize& viewportSize, const IntPoint& documentScrollOffset ); 131 void reset(const IntSize& viewportSize, const IntPoint& documentScrollOffset );
129 void evaluateInOverlay(const String& method, const String& argument); 132 void evaluateInOverlay(const String& method, const String& argument);
130 void evaluateInOverlay(const String& method, PassRefPtr<JSONValue> argument) ; 133 void evaluateInOverlay(const String& method, PassRefPtr<protocol::Value> arg ument);
131 void onTimer(Timer<InspectorOverlay>*); 134 void onTimer(Timer<InspectorOverlay>*);
132 void rebuildOverlayPage(); 135 void rebuildOverlayPage();
133 void invalidate(); 136 void invalidate();
134 void scheduleUpdate(); 137 void scheduleUpdate();
135 138
136 bool handleMousePress(); 139 bool handleMousePress();
137 bool handleGestureEvent(const PlatformGestureEvent&); 140 bool handleGestureEvent(const PlatformGestureEvent&);
138 bool handleTouchEvent(const PlatformTouchEvent&); 141 bool handleTouchEvent(const PlatformTouchEvent&);
139 bool handleMouseMove(const PlatformMouseEvent&); 142 bool handleMouseMove(const PlatformMouseEvent&);
140 bool shouldSearchForNode(); 143 bool shouldSearchForNode();
(...skipping 24 matching lines...) Expand all
165 OwnPtr<PageOverlay> m_pageOverlay; 168 OwnPtr<PageOverlay> m_pageOverlay;
166 RefPtrWillBeMember<Node> m_hoveredNodeForInspectMode; 169 RefPtrWillBeMember<Node> m_hoveredNodeForInspectMode;
167 InspectorDOMAgent::SearchMode m_inspectMode; 170 InspectorDOMAgent::SearchMode m_inspectMode;
168 OwnPtr<InspectorHighlightConfig> m_inspectModeHighlightConfig; 171 OwnPtr<InspectorHighlightConfig> m_inspectModeHighlightConfig;
169 }; 172 };
170 173
171 } // namespace blink 174 } // namespace blink
172 175
173 176
174 #endif // InspectorOverlay_h 177 #endif // InspectorOverlay_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698