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

Side by Side Diff: Source/web/InspectorOverlayImpl.h

Issue 1206833003: Devtools[LayoutEditor]: Pass data about property change from InspectorOverlayPage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address pfeldman's comment Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/LayoutEditor.cpp ('k') | Source/web/InspectorOverlayImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class Color; 49 class Color;
50 class EmptyChromeClient; 50 class EmptyChromeClient;
51 class LocalFrame; 51 class LocalFrame;
52 class GraphicsContext; 52 class GraphicsContext;
53 class JSONValue; 53 class JSONValue;
54 class Node; 54 class Node;
55 class Page; 55 class Page;
56 class WebViewImpl; 56 class WebViewImpl;
57 class LayoutEditor; 57 class LayoutEditor;
58 58
59 class InspectorOverlayImpl final : public NoBaseWillBeGarbageCollectedFinalized< InspectorOverlayImpl>, public InspectorOverlay, public WebPageOverlay, public In spectorOverlayHost::Listener { 59 class InspectorOverlayImpl final : public NoBaseWillBeGarbageCollectedFinalized< InspectorOverlayImpl>, public InspectorOverlay, public WebPageOverlay, public In spectorOverlayHost::DebuggerListener {
60 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorOverlayImpl); 60 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorOverlayImpl);
61 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlayImpl); 61 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlayImpl);
62 public: 62 public:
63 // FIXME: remove this once overlay works for non-main frame. 63 // FIXME: remove this once overlay works for non-main frame.
64 static PassOwnPtrWillBeRawPtr<InspectorOverlay> createEmpty(); 64 static PassOwnPtrWillBeRawPtr<InspectorOverlay> createEmpty();
65 65
66 static PassOwnPtrWillBeRawPtr<InspectorOverlayImpl> create(WebViewImpl* webV iewImpl) 66 static PassOwnPtrWillBeRawPtr<InspectorOverlayImpl> create(WebViewImpl* webV iewImpl)
67 { 67 {
68 return adoptPtrWillBeNoop(new InspectorOverlayImpl(webViewImpl)); 68 return adoptPtrWillBeNoop(new InspectorOverlayImpl(webViewImpl));
69 } 69 }
70 70
71 ~InspectorOverlayImpl() override; 71 ~InspectorOverlayImpl() override;
72 DECLARE_TRACE(); 72 DECLARE_TRACE();
73 73
74 // InspectorOverlay implementation. 74 // InspectorOverlay implementation.
75 void update() override; 75 void update() override;
76 void setPausedInDebuggerMessage(const String*) override; 76 void setPausedInDebuggerMessage(const String*) override;
77 void setInspectModeEnabled(bool) override; 77 void setInspectModeEnabled(bool) override;
78 void hideHighlight() override; 78 void hideHighlight() override;
79 void highlightNode(Node*, Node* eventTarget, const InspectorHighlightConfig& , bool omitTooltip) override; 79 void highlightNode(Node*, Node* eventTarget, const InspectorHighlightConfig& , bool omitTooltip) override;
80 void highlightQuad(PassOwnPtr<FloatQuad>, const InspectorHighlightConfig&) o verride; 80 void highlightQuad(PassOwnPtr<FloatQuad>, const InspectorHighlightConfig&) o verride;
81 void showAndHideViewSize(bool showGrid) override; 81 void showAndHideViewSize(bool showGrid) override;
82 void setListener(InspectorOverlay::Listener* listener) override { m_listener = listener; } 82 void setListener(InspectorOverlay::Listener* listener) override { m_listener = listener; }
83 void suspendUpdates() override; 83 void suspendUpdates() override;
84 void resumeUpdates() override; 84 void resumeUpdates() override;
85 void clear() override; 85 void clear() override;
86 void setLayoutEditor(PassOwnPtrWillBeRawPtr<LayoutEditor>) override;
86 87
87 bool handleInputEvent(const WebInputEvent&); 88 bool handleInputEvent(const WebInputEvent&);
88 void invalidate(); 89 void invalidate();
89 private: 90 private:
90 explicit InspectorOverlayImpl(WebViewImpl*); 91 explicit InspectorOverlayImpl(WebViewImpl*);
91 92
92 // InspectorOverlayHost::Listener implementation. 93 // InspectorOverlayHost::DebuggerListener implementation.
93 void overlayResumed() override; 94 void overlayResumed() override;
94 void overlaySteppedOver() override; 95 void overlaySteppedOver() override;
95 96
96 // WebPageOverlay implementation. 97 // WebPageOverlay implementation.
97 void paintPageOverlay(WebGraphicsContext*, const WebSize& webViewSize) overr ide; 98 void paintPageOverlay(WebGraphicsContext*, const WebSize& webViewSize) overr ide;
98 99
99 bool isEmpty(); 100 bool isEmpty();
100 void drawNodeHighlight(); 101 void drawNodeHighlight();
101 void drawQuadHighlight(); 102 void drawQuadHighlight();
102 void drawPausedInDebuggerMessage(); 103 void drawPausedInDebuggerMessage();
(...skipping 24 matching lines...) Expand all
127 int m_suspendCount; 128 int m_suspendCount;
128 bool m_updating; 129 bool m_updating;
129 RawPtrWillBeMember<InspectorOverlay::Listener> m_listener; 130 RawPtrWillBeMember<InspectorOverlay::Listener> m_listener;
130 OwnPtrWillBeMember<LayoutEditor> m_layoutEditor; 131 OwnPtrWillBeMember<LayoutEditor> m_layoutEditor;
131 }; 132 };
132 133
133 } // namespace blink 134 } // namespace blink
134 135
135 136
136 #endif // InspectorOverlayImpl_h 137 #endif // InspectorOverlayImpl_h
OLDNEW
« no previous file with comments | « Source/core/inspector/LayoutEditor.cpp ('k') | Source/web/InspectorOverlayImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698