Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 11 matching lines...) Expand all Loading... | |
| 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef InspectorOverlay_h | 29 #ifndef InspectorOverlay_h |
| 30 #define InspectorOverlay_h | 30 #define InspectorOverlay_h |
| 31 | 31 |
| 32 #include "core/rendering/RenderBoxModelObject.h" | |
|
rwlbuis
2014/04/24 15:17:27
Needed?
Habib Virji
2014/04/24 17:12:22
Done.
| |
| 32 #include "platform/Timer.h" | 33 #include "platform/Timer.h" |
| 33 #include "platform/geometry/FloatQuad.h" | 34 #include "platform/geometry/FloatQuad.h" |
| 34 #include "platform/geometry/LayoutRect.h" | 35 #include "platform/geometry/LayoutRect.h" |
| 35 #include "platform/graphics/Color.h" | 36 #include "platform/graphics/Color.h" |
| 36 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 37 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" |
| 38 #include "wtf/PassOwnPtr.h" | 39 #include "wtf/PassOwnPtr.h" |
| 39 #include "wtf/RefPtr.h" | 40 #include "wtf/RefPtr.h" |
| 40 #include "wtf/Vector.h" | 41 #include "wtf/Vector.h" |
| 41 #include "wtf/text/WTFString.h" | 42 #include "wtf/text/WTFString.h" |
| 42 | 43 |
| 43 namespace WebCore { | 44 namespace WebCore { |
| 44 | 45 |
| 45 class Color; | 46 class Color; |
| 46 class EmptyChromeClient; | 47 class EmptyChromeClient; |
| 47 class GraphicsContext; | 48 class GraphicsContext; |
| 48 class InspectorClient; | 49 class InspectorClient; |
| 49 class InspectorOverlayHost; | 50 class InspectorOverlayHost; |
| 51 class JSONObject; | |
| 50 class JSONValue; | 52 class JSONValue; |
| 51 class Node; | 53 class Node; |
| 52 class Page; | 54 class Page; |
| 53 class PlatformGestureEvent; | 55 class PlatformGestureEvent; |
| 54 class PlatformKeyboardEvent; | 56 class PlatformKeyboardEvent; |
| 55 class PlatformMouseEvent; | 57 class PlatformMouseEvent; |
| 56 class PlatformTouchEvent; | 58 class PlatformTouchEvent; |
| 57 | 59 |
| 58 struct HighlightConfig { | 60 struct HighlightConfig { |
| 59 WTF_MAKE_FAST_ALLOCATED; | 61 WTF_MAKE_FAST_ALLOCATED; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 void resize(const IntSize&); | 125 void resize(const IntSize&); |
| 124 bool handleGestureEvent(const PlatformGestureEvent&); | 126 bool handleGestureEvent(const PlatformGestureEvent&); |
| 125 bool handleMouseEvent(const PlatformMouseEvent&); | 127 bool handleMouseEvent(const PlatformMouseEvent&); |
| 126 bool handleTouchEvent(const PlatformTouchEvent&); | 128 bool handleTouchEvent(const PlatformTouchEvent&); |
| 127 bool handleKeyboardEvent(const PlatformKeyboardEvent&); | 129 bool handleKeyboardEvent(const PlatformKeyboardEvent&); |
| 128 | 130 |
| 129 void setPausedInDebuggerMessage(const String*); | 131 void setPausedInDebuggerMessage(const String*); |
| 130 void setInspectModeEnabled(bool); | 132 void setInspectModeEnabled(bool); |
| 131 | 133 |
| 132 void hideHighlight(); | 134 void hideHighlight(); |
| 135 PassRefPtr<JSONObject> buildObjectForShapeOutside(); | |
| 133 void highlightNode(Node*, Node* eventTarget, const HighlightConfig&, bool om itTooltip); | 136 void highlightNode(Node*, Node* eventTarget, const HighlightConfig&, bool om itTooltip); |
| 134 void highlightQuad(PassOwnPtr<FloatQuad>, const HighlightConfig&); | 137 void highlightQuad(PassOwnPtr<FloatQuad>, const HighlightConfig&); |
| 135 void showAndHideViewSize(bool showGrid); | 138 void showAndHideViewSize(bool showGrid); |
| 136 | 139 |
| 137 Node* highlightedNode() const; | 140 Node* highlightedNode() const; |
| 138 bool getBoxModel(Node*, Vector<FloatQuad>*); | 141 bool getBoxModel(Node*, Vector<FloatQuad>*); |
| 139 | 142 |
| 140 void freePage(); | 143 void freePage(); |
| 141 | 144 |
| 142 InspectorOverlayHost* overlayHost() const { return m_overlayHost.get(); } | 145 InspectorOverlayHost* overlayHost() const { return m_overlayHost.get(); } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 179 bool m_drawViewSizeWithGrid; | 182 bool m_drawViewSizeWithGrid; |
| 180 bool m_omitTooltip; | 183 bool m_omitTooltip; |
| 181 Timer<InspectorOverlay> m_timer; | 184 Timer<InspectorOverlay> m_timer; |
| 182 int m_activeProfilerCount; | 185 int m_activeProfilerCount; |
| 183 }; | 186 }; |
| 184 | 187 |
| 185 } // namespace WebCore | 188 } // namespace WebCore |
| 186 | 189 |
| 187 | 190 |
| 188 #endif // InspectorOverlay_h | 191 #endif // InspectorOverlay_h |
| OLD | NEW |