| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 22 matching lines...) Expand all Loading... |
| 33 #include "core/CoreExport.h" | 33 #include "core/CoreExport.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class CORE_EXPORT InspectorOverlayHost final | 37 class CORE_EXPORT InspectorOverlayHost final |
| 38 : public GarbageCollected<InspectorOverlayHost>, | 38 : public GarbageCollected<InspectorOverlayHost>, |
| 39 public ScriptWrappable { | 39 public ScriptWrappable { |
| 40 DEFINE_WRAPPERTYPEINFO(); | 40 DEFINE_WRAPPERTYPEINFO(); |
| 41 | 41 |
| 42 public: | 42 public: |
| 43 static InspectorOverlayHost* Create() { return new InspectorOverlayHost(); } |
| 44 DECLARE_TRACE(); |
| 45 |
| 46 void resume(); |
| 47 void stepOver(); |
| 48 |
| 43 class Listener : public GarbageCollectedMixin { | 49 class Listener : public GarbageCollectedMixin { |
| 44 public: | 50 public: |
| 45 virtual ~Listener() {} | 51 virtual ~Listener() {} |
| 46 virtual void OverlayResumed() = 0; | 52 virtual void OverlayResumed() = 0; |
| 47 virtual void OverlaySteppedOver() = 0; | 53 virtual void OverlaySteppedOver() = 0; |
| 48 }; | 54 }; |
| 49 | 55 void SetListener(Listener* listener) { listener_ = listener; } |
| 50 explicit InspectorOverlayHost(Listener*); | |
| 51 DECLARE_TRACE(); | |
| 52 | |
| 53 void resume(); | |
| 54 void stepOver(); | |
| 55 | 56 |
| 56 private: | 57 private: |
| 58 InspectorOverlayHost(); |
| 59 |
| 57 Member<Listener> listener_; | 60 Member<Listener> listener_; |
| 58 }; | 61 }; |
| 59 | 62 |
| 60 } // namespace blink | 63 } // namespace blink |
| 61 | 64 |
| 62 #endif // InspectorOverlayHost_h | 65 #endif // InspectorOverlayHost_h |
| OLD | NEW |