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 17 matching lines...) Expand all Loading... |
28 | 28 |
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 DEFINE_WRAPPERTYPEINFO(); |
40 public: | 40 public: |
41 static PassRefPtrWillBeRawPtr<InspectorOverlayHost> create() | 41 static PassRefPtrWillBeRawPtr<InspectorOverlayHost> create() |
42 { | 42 { |
43 return adoptRefWillBeNoop(new InspectorOverlayHost()); | 43 return adoptRefWillBeNoop(new InspectorOverlayHost()); |
44 } | 44 } |
45 ~InspectorOverlayHost(); | 45 ~InspectorOverlayHost(); |
46 void trace(Visitor*); | 46 void trace(Visitor*); |
47 | 47 |
48 void resume(); | 48 void resume(); |
49 void stepOver(); | 49 void stepOver(); |
50 | 50 |
51 class Listener : public WillBeGarbageCollectedMixin { | 51 class Listener : public WillBeGarbageCollectedMixin { |
52 public: | 52 public: |
53 virtual ~Listener() { } | 53 virtual ~Listener() { } |
54 virtual void overlayResumed() = 0; | 54 virtual void overlayResumed() = 0; |
55 virtual void overlaySteppedOver() = 0; | 55 virtual void overlaySteppedOver() = 0; |
56 }; | 56 }; |
57 void setListener(Listener* listener) { m_listener = listener; } | 57 void setListener(Listener* listener) { m_listener = listener; } |
58 | 58 |
59 private: | 59 private: |
60 InspectorOverlayHost(); | 60 InspectorOverlayHost(); |
61 | 61 |
62 RawPtrWillBeMember<Listener> m_listener; | 62 RawPtrWillBeMember<Listener> m_listener; |
63 }; | 63 }; |
64 | 64 |
65 } // namespace blink | 65 } // namespace blink |
66 | 66 |
67 #endif // InspectorOverlayHost_h | 67 #endif // InspectorOverlayHost_h |
OLD | NEW |