OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "core/inspector/InspectorController.h" | 35 #include "core/inspector/InspectorController.h" |
36 #include "core/inspector/InspectorFrontendChannel.h" | 36 #include "core/inspector/InspectorFrontendChannel.h" |
37 #include "wtf/OwnPtr.h" | 37 #include "wtf/OwnPtr.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class WebDevToolsAgentClient; | 41 class WebDevToolsAgentClient; |
42 class WebDevToolsAgentImpl; | 42 class WebDevToolsAgentImpl; |
43 class WebViewImpl; | 43 class WebViewImpl; |
44 | 44 |
45 class InspectorClientImpl : public WebCore::InspectorClient, | 45 class InspectorClientImpl FINAL : public WebCore::InspectorClient, public WebCor
e::InspectorFrontendChannel { |
46 public WebCore::InspectorFrontendChannel { | |
47 public: | 46 public: |
48 explicit InspectorClientImpl(WebViewImpl*); | 47 explicit InspectorClientImpl(WebViewImpl*); |
49 ~InspectorClientImpl(); | 48 virtual ~InspectorClientImpl(); |
50 | 49 |
51 // InspectorClient methods: | 50 // InspectorClient methods: |
52 virtual void highlight(); | 51 virtual void highlight() OVERRIDE; |
53 virtual void hideHighlight(); | 52 virtual void hideHighlight() OVERRIDE; |
54 | 53 |
55 virtual bool sendMessageToFrontend(const WTF::String&); | 54 virtual bool sendMessageToFrontend(const WTF::String&) OVERRIDE; |
56 | 55 |
57 virtual void updateInspectorStateCookie(const WTF::String&); | 56 virtual void updateInspectorStateCookie(const WTF::String&) OVERRIDE; |
58 | 57 |
59 virtual void clearBrowserCache(); | 58 virtual void clearBrowserCache() OVERRIDE; |
60 virtual void clearBrowserCookies(); | 59 virtual void clearBrowserCookies() OVERRIDE; |
61 | 60 |
62 virtual void overrideDeviceMetrics(int, int, float, bool, bool); | 61 virtual void overrideDeviceMetrics(int, int, float, bool, bool) OVERRIDE; |
63 | 62 |
64 virtual bool overridesShowPaintRects(); | 63 virtual bool overridesShowPaintRects() OVERRIDE; |
65 virtual void setShowPaintRects(bool); | 64 virtual void setShowPaintRects(bool) OVERRIDE; |
66 virtual void setShowDebugBorders(bool); | 65 virtual void setShowDebugBorders(bool) OVERRIDE; |
67 virtual void setShowFPSCounter(bool); | 66 virtual void setShowFPSCounter(bool) OVERRIDE; |
68 virtual void setContinuousPaintingEnabled(bool); | 67 virtual void setContinuousPaintingEnabled(bool) OVERRIDE; |
69 virtual void setShowScrollBottleneckRects(bool); | 68 virtual void setShowScrollBottleneckRects(bool) OVERRIDE; |
70 virtual void requestPageScaleFactor(float scale, const WebCore::IntPoint& or
igin); | 69 virtual void requestPageScaleFactor(float scale, const WebCore::IntPoint& or
igin) OVERRIDE; |
71 | 70 |
72 virtual void getAllocatedObjects(HashSet<const void*>&); | 71 virtual void getAllocatedObjects(HashSet<const void*>&) OVERRIDE; |
73 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t
>&); | 72 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t
>&) OVERRIDE; |
74 | 73 |
75 virtual void dispatchKeyEvent(const WebCore::PlatformKeyboardEvent&); | 74 virtual void dispatchKeyEvent(const WebCore::PlatformKeyboardEvent&) OVERRID
E; |
76 virtual void dispatchMouseEvent(const WebCore::PlatformMouseEvent&); | 75 virtual void dispatchMouseEvent(const WebCore::PlatformMouseEvent&) OVERRIDE
; |
77 | 76 |
78 virtual void setTraceEventCallback(TraceEventCallback); | 77 virtual void setTraceEventCallback(TraceEventCallback) OVERRIDE; |
79 | 78 |
80 virtual void startGPUEventsRecording() OVERRIDE; | 79 virtual void startGPUEventsRecording() OVERRIDE; |
81 virtual void stopGPUEventsRecording() OVERRIDE; | 80 virtual void stopGPUEventsRecording() OVERRIDE; |
82 | 81 |
83 private: | 82 private: |
84 WebDevToolsAgentImpl* devToolsAgent(); | 83 WebDevToolsAgentImpl* devToolsAgent(); |
85 | 84 |
86 // The WebViewImpl of the page being inspected; gets passed to the construct
or | 85 // The WebViewImpl of the page being inspected; gets passed to the construct
or |
87 WebViewImpl* m_inspectedWebView; | 86 WebViewImpl* m_inspectedWebView; |
88 }; | 87 }; |
89 | 88 |
90 } // namespace blink | 89 } // namespace blink |
91 | 90 |
92 #endif | 91 #endif |
OLD | NEW |