| 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 30 matching lines...) Expand all Loading... |
| 41 public: | 41 public: |
| 42 static PassRefPtrWillBeRawPtr<InspectorOverlayHost> create() | 42 static PassRefPtrWillBeRawPtr<InspectorOverlayHost> create() |
| 43 { | 43 { |
| 44 return adoptRefWillBeNoop(new InspectorOverlayHost()); | 44 return adoptRefWillBeNoop(new InspectorOverlayHost()); |
| 45 } | 45 } |
| 46 ~InspectorOverlayHost(); | 46 ~InspectorOverlayHost(); |
| 47 DECLARE_TRACE(); | 47 DECLARE_TRACE(); |
| 48 | 48 |
| 49 void resume(); | 49 void resume(); |
| 50 void stepOver(); | 50 void stepOver(); |
| 51 void startPropertyChange(const String&); |
| 52 void changeProperty(float delta); |
| 53 void endPropertyChange(); |
| 51 | 54 |
| 52 class Listener : public WillBeGarbageCollectedMixin { | 55 class DebuggerListener : public WillBeGarbageCollectedMixin { |
| 53 public: | 56 public: |
| 54 virtual ~Listener() { } | 57 virtual ~DebuggerListener() { } |
| 55 virtual void overlayResumed() = 0; | 58 virtual void overlayResumed() = 0; |
| 56 virtual void overlaySteppedOver() = 0; | 59 virtual void overlaySteppedOver() = 0; |
| 57 }; | 60 }; |
| 58 void setListener(Listener* listener) { m_listener = listener; } | 61 void setDebuggerListener(DebuggerListener* listener) { m_debuggerListener =
listener; } |
| 62 |
| 63 class LayoutEditorListener : public WillBeGarbageCollectedMixin { |
| 64 public: |
| 65 virtual ~LayoutEditorListener() { } |
| 66 virtual void overlayStartedPropertyChange(const String&) = 0; |
| 67 virtual void overlayPropertyChanged(float cssDelta) = 0; |
| 68 virtual void overlayEndedPropertyChange() = 0; |
| 69 }; |
| 70 void setLayoutEditorListener(LayoutEditorListener* listener) { m_layoutEdito
rListener = listener; } |
| 59 | 71 |
| 60 private: | 72 private: |
| 61 InspectorOverlayHost(); | 73 InspectorOverlayHost(); |
| 62 | 74 |
| 63 RawPtrWillBeMember<Listener> m_listener; | 75 RawPtrWillBeMember<DebuggerListener> m_debuggerListener; |
| 76 RawPtrWillBeMember<LayoutEditorListener> m_layoutEditorListener; |
| 77 |
| 64 }; | 78 }; |
| 65 | 79 |
| 66 } // namespace blink | 80 } // namespace blink |
| 67 | 81 |
| 68 #endif // InspectorOverlayHost_h | 82 #endif // InspectorOverlayHost_h |
| OLD | NEW |