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 18 matching lines...) Expand all Loading... |
29 #ifndef InspectorOverlayHost_h | 29 #ifndef InspectorOverlayHost_h |
30 #define InspectorOverlayHost_h | 30 #define InspectorOverlayHost_h |
31 | 31 |
32 #include "bindings/core/v8/ScriptWrappable.h" | 32 #include "bindings/core/v8/ScriptWrappable.h" |
33 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
34 #include "wtf/RefCounted.h" | 34 #include "wtf/RefCounted.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class InspectorOverlayHost FINAL : public RefCountedWillBeGarbageCollectedFinali
zed<InspectorOverlayHost>, public ScriptWrappable { | 38 class InspectorOverlayHost FINAL : public RefCountedWillBeGarbageCollectedFinali
zed<InspectorOverlayHost>, public ScriptWrappable { |
| 39 DEFINE_WRAPPERTYPEINFO(); |
39 public: | 40 public: |
40 static PassRefPtrWillBeRawPtr<InspectorOverlayHost> create() | 41 static PassRefPtrWillBeRawPtr<InspectorOverlayHost> create() |
41 { | 42 { |
42 return adoptRefWillBeNoop(new InspectorOverlayHost()); | 43 return adoptRefWillBeNoop(new InspectorOverlayHost()); |
43 } | 44 } |
44 ~InspectorOverlayHost(); | 45 ~InspectorOverlayHost(); |
45 void trace(Visitor*); | 46 void trace(Visitor*); |
46 | 47 |
47 void resume(); | 48 void resume(); |
48 void stepOver(); | 49 void stepOver(); |
49 | 50 |
50 class Listener : public WillBeGarbageCollectedMixin { | 51 class Listener : public WillBeGarbageCollectedMixin { |
51 public: | 52 public: |
52 virtual ~Listener() { } | 53 virtual ~Listener() { } |
53 virtual void overlayResumed() = 0; | 54 virtual void overlayResumed() = 0; |
54 virtual void overlaySteppedOver() = 0; | 55 virtual void overlaySteppedOver() = 0; |
55 }; | 56 }; |
56 void setListener(Listener* listener) { m_listener = listener; } | 57 void setListener(Listener* listener) { m_listener = listener; } |
57 | 58 |
58 private: | 59 private: |
59 InspectorOverlayHost(); | 60 InspectorOverlayHost(); |
60 | 61 |
61 RawPtrWillBeMember<Listener> m_listener; | 62 RawPtrWillBeMember<Listener> m_listener; |
62 }; | 63 }; |
63 | 64 |
64 } // namespace blink | 65 } // namespace blink |
65 | 66 |
66 #endif // !defined(InspectorOverlayHost_h) | 67 #endif // InspectorOverlayHost_h |
OLD | NEW |