OLD | NEW |
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 virtual void invalidateRect(const IntRect&) override | 81 virtual void invalidateRect(const IntRect&) override |
82 { | 82 { |
83 m_overlay->invalidate(); | 83 m_overlay->invalidate(); |
84 } | 84 } |
85 | 85 |
86 private: | 86 private: |
87 ChromeClient& m_client; | 87 ChromeClient& m_client; |
88 InspectorOverlayImpl* m_overlay; | 88 InspectorOverlayImpl* m_overlay; |
89 }; | 89 }; |
90 | 90 |
91 class InspectorOverlayStub : public NoBaseWillBeGarbageCollected<InspectorOverla
yStub>, public InspectorOverlay { | 91 class InspectorOverlayStub : public NoBaseWillBeGarbageCollectedFinalized<Inspec
torOverlayStub>, public InspectorOverlay { |
92 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorOverlayStub); | 92 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InspectorOverlayStub); |
93 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlayStub); | 93 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorOverlayStub); |
94 public: | 94 public: |
95 InspectorOverlayStub() { } | 95 InspectorOverlayStub() { } |
96 DECLARE_TRACE(); | 96 DECLARE_TRACE(); |
97 | 97 |
98 // InspectorOverlay implementation. | 98 // InspectorOverlay implementation. |
99 void update() override { } | 99 void update() override { } |
100 void setPausedInDebuggerMessage(const String*) override { } | 100 void setPausedInDebuggerMessage(const String*) override { } |
101 void setInspectModeEnabled(bool) override { } | 101 void setInspectModeEnabled(bool) override { } |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 if (!m_suspendCount++) | 470 if (!m_suspendCount++) |
471 clear(); | 471 clear(); |
472 } | 472 } |
473 | 473 |
474 void InspectorOverlayImpl::resumeUpdates() | 474 void InspectorOverlayImpl::resumeUpdates() |
475 { | 475 { |
476 --m_suspendCount; | 476 --m_suspendCount; |
477 } | 477 } |
478 | 478 |
479 } // namespace blink | 479 } // namespace blink |
OLD | NEW |