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