| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 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 10 matching lines...) Expand all Loading... |
| 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef InspectorClient_h | 27 #ifndef InspectorClient_h |
| 28 #define InspectorClient_h | 28 #define InspectorClient_h |
| 29 | 29 |
| 30 #include "core/inspector/InspectorStateClient.h" | 30 #include "core/inspector/InspectorStateClient.h" |
| 31 #include "core/page/ContextMenuProvider.h" | |
| 32 #include "wtf/Forward.h" | 31 #include "wtf/Forward.h" |
| 33 #include "wtf/PassRefPtr.h" | 32 #include "wtf/PassRefPtr.h" |
| 34 | 33 |
| 35 namespace blink { | 34 namespace blink { |
| 36 | 35 |
| 37 class PlatformKeyboardEvent; | 36 class PlatformKeyboardEvent; |
| 38 class PlatformMouseEvent; | 37 class PlatformMouseEvent; |
| 39 | 38 |
| 40 class InspectorClient : public InspectorStateClient { | 39 class InspectorClient : public InspectorStateClient { |
| 41 public: | 40 public: |
| (...skipping 22 matching lines...) Expand all Loading... |
| 64 virtual void setShowPaintRects(bool) { } | 63 virtual void setShowPaintRects(bool) { } |
| 65 virtual void setShowDebugBorders(bool) { } | 64 virtual void setShowDebugBorders(bool) { } |
| 66 virtual void setShowFPSCounter(bool) { } | 65 virtual void setShowFPSCounter(bool) { } |
| 67 virtual void setContinuousPaintingEnabled(bool) { } | 66 virtual void setContinuousPaintingEnabled(bool) { } |
| 68 virtual void setShowScrollBottleneckRects(bool) { } | 67 virtual void setShowScrollBottleneckRects(bool) { } |
| 69 | 68 |
| 70 virtual void resetScrollAndPageScaleFactor() { } | 69 virtual void resetScrollAndPageScaleFactor() { } |
| 71 virtual float minimumPageScaleFactor() { return 1; } | 70 virtual float minimumPageScaleFactor() { return 1; } |
| 72 virtual float maximumPageScaleFactor() { return 1; } | 71 virtual float maximumPageScaleFactor() { return 1; } |
| 73 virtual void setPageScaleFactor(float) { } | 72 virtual void setPageScaleFactor(float) { } |
| 74 virtual void showContextMenu(float x, float y, PassRefPtrWillBeRawPtr<Contex
tMenuProvider>) { } | |
| 75 | 73 |
| 76 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { } | 74 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) { } |
| 77 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { } | 75 virtual void dispatchMouseEvent(const PlatformMouseEvent&) { } |
| 78 | 76 |
| 79 virtual void resumeStartup() { } | 77 virtual void resumeStartup() { } |
| 80 | 78 |
| 81 protected: | 79 protected: |
| 82 virtual ~InspectorClient() { } | 80 virtual ~InspectorClient() { } |
| 83 }; | 81 }; |
| 84 | 82 |
| 85 } // namespace blink | 83 } // namespace blink |
| 86 | 84 |
| 87 #endif // !defined(InspectorClient_h) | 85 #endif // !defined(InspectorClient_h) |
| OLD | NEW |