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 #include "config.h" | 29 #include "config.h" |
30 | 30 |
31 #include "core/inspector/InspectorOverlayHost.h" | 31 #include "core/inspector/InspectorOverlayHost.h" |
32 | 32 |
33 namespace blink { | 33 namespace blink { |
34 | 34 |
35 InspectorOverlayHost::InspectorOverlayHost() | 35 InspectorOverlayHost::InspectorOverlayHost() |
36 : m_listener(nullptr) | 36 : m_listener(nullptr) |
37 { | 37 { |
38 ScriptWrappable::init(this); | |
39 } | 38 } |
40 | 39 |
41 InspectorOverlayHost::~InspectorOverlayHost() | 40 InspectorOverlayHost::~InspectorOverlayHost() |
42 { | 41 { |
43 } | 42 } |
44 | 43 |
45 void InspectorOverlayHost::resume() | 44 void InspectorOverlayHost::resume() |
46 { | 45 { |
47 if (m_listener) | 46 if (m_listener) |
48 m_listener->overlayResumed(); | 47 m_listener->overlayResumed(); |
49 } | 48 } |
50 | 49 |
51 void InspectorOverlayHost::stepOver() | 50 void InspectorOverlayHost::stepOver() |
52 { | 51 { |
53 if (m_listener) | 52 if (m_listener) |
54 m_listener->overlaySteppedOver(); | 53 m_listener->overlaySteppedOver(); |
55 } | 54 } |
56 | 55 |
57 void InspectorOverlayHost::trace(Visitor* visitor) | 56 void InspectorOverlayHost::trace(Visitor* visitor) |
58 { | 57 { |
59 visitor->trace(m_listener); | 58 visitor->trace(m_listener); |
60 } | 59 } |
61 | 60 |
62 } // namespace blink | 61 } // namespace blink |
OLD | NEW |