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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 #include "core/inspector/InspectorHighlight.h" | 32 #include "core/inspector/InspectorHighlight.h" |
33 #include "platform/geometry/FloatQuad.h" | 33 #include "platform/geometry/FloatQuad.h" |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 struct InspectorHighlightConfig; | 39 struct InspectorHighlightConfig; |
40 | 40 |
41 class InspectorOverlay : public NoBaseWillBeGarbageCollectedFinalized<InspectorO
verlay> { | 41 class InspectorOverlay : public WillBeGarbageCollectedMixin { |
42 public: | 42 public: |
43 virtual ~InspectorOverlay() { } | 43 virtual ~InspectorOverlay() { } |
44 | 44 |
45 virtual void update() = 0; | 45 virtual void update() = 0; |
46 virtual void setPausedInDebuggerMessage(const String*) = 0; | 46 virtual void setPausedInDebuggerMessage(const String*) = 0; |
47 virtual void setInspectModeEnabled(bool) = 0; | 47 virtual void setInspectModeEnabled(bool) = 0; |
48 virtual void hideHighlight() = 0; | 48 virtual void hideHighlight() = 0; |
49 virtual void highlightNode(Node*, Node* eventTarget, const InspectorHighligh
tConfig&, bool omitTooltip) = 0; | 49 virtual void highlightNode(Node*, Node* eventTarget, const InspectorHighligh
tConfig&, bool omitTooltip) = 0; |
50 virtual void highlightQuad(PassOwnPtr<FloatQuad>, const InspectorHighlightCo
nfig&) = 0; | 50 virtual void highlightQuad(PassOwnPtr<FloatQuad>, const InspectorHighlightCo
nfig&) = 0; |
51 virtual void showAndHideViewSize(bool showGrid) = 0; | 51 virtual void showAndHideViewSize(bool showGrid) = 0; |
52 virtual void suspendUpdates() = 0; | 52 virtual void suspendUpdates() = 0; |
53 virtual void resumeUpdates() = 0; | 53 virtual void resumeUpdates() = 0; |
54 | 54 |
| 55 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 56 |
55 class Listener : public WillBeGarbageCollectedMixin { | 57 class Listener : public WillBeGarbageCollectedMixin { |
56 public: | 58 public: |
57 virtual ~Listener() { } | 59 virtual ~Listener() { } |
58 virtual void overlayResumed() = 0; | 60 virtual void overlayResumed() = 0; |
59 virtual void overlaySteppedOver() = 0; | 61 virtual void overlaySteppedOver() = 0; |
60 }; | 62 }; |
61 virtual void setListener(Listener*) = 0; | 63 virtual void setListener(Listener*) = 0; |
62 }; | 64 }; |
63 | 65 |
64 } // namespace blink | 66 } // namespace blink |
65 | 67 |
66 | 68 |
67 #endif // InspectorOverlay_h | 69 #endif // InspectorOverlay_h |
OLD | NEW |