Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorOverlayHost.h

Issue 2819183002: [DevTools] Consolidate overlay-related functionality in Overlay domain (Closed)
Patch Set: rebased bad merge Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
49 class Listener : public GarbageCollectedMixin { 43 class Listener : public GarbageCollectedMixin {
50 public: 44 public:
51 virtual ~Listener() {} 45 virtual ~Listener() {}
52 virtual void OverlayResumed() = 0; 46 virtual void OverlayResumed() = 0;
53 virtual void OverlaySteppedOver() = 0; 47 virtual void OverlaySteppedOver() = 0;
54 }; 48 };
55 void SetListener(Listener* listener) { listener_ = listener; } 49
50 explicit InspectorOverlayHost(Listener*);
51 DECLARE_TRACE();
52
53 void resume();
54 void stepOver();
56 55
57 private: 56 private:
58 InspectorOverlayHost();
59
60 Member<Listener> listener_; 57 Member<Listener> listener_;
61 }; 58 };
62 59
63 } // namespace blink 60 } // namespace blink
64 61
65 #endif // InspectorOverlayHost_h 62 #endif // InspectorOverlayHost_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698