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 FINAL : public blink::InspectorClient, public blink::I
nspectorFrontendChannel { | 45 class InspectorClientImpl FINAL : public InspectorClient, public InspectorFronte
ndChannel { |
46 public: | 46 public: |
47 explicit InspectorClientImpl(WebViewImpl*); | 47 explicit InspectorClientImpl(WebViewImpl*); |
48 virtual ~InspectorClientImpl(); | 48 virtual ~InspectorClientImpl(); |
49 | 49 |
50 // InspectorClient methods: | 50 // InspectorClient methods: |
51 virtual void highlight() OVERRIDE; | 51 virtual void highlight() OVERRIDE; |
52 virtual void hideHighlight() OVERRIDE; | 52 virtual void hideHighlight() OVERRIDE; |
53 | 53 |
54 virtual void sendMessageToFrontend(PassRefPtr<blink::JSONObject>) OVERRIDE; | 54 virtual void sendMessageToFrontend(PassRefPtr<JSONObject>) OVERRIDE; |
55 virtual void flush() OVERRIDE; | 55 virtual void flush() OVERRIDE; |
56 | 56 |
57 virtual void updateInspectorStateCookie(const WTF::String&) OVERRIDE; | 57 virtual void updateInspectorStateCookie(const WTF::String&) OVERRIDE; |
58 | 58 |
59 virtual void setDeviceMetricsOverride(int, int, float, bool, bool, float, fl
oat, float) OVERRIDE; | 59 virtual void setDeviceMetricsOverride(int, int, float, bool, bool, float, fl
oat, float) OVERRIDE; |
60 virtual void clearDeviceMetricsOverride() OVERRIDE; | 60 virtual void clearDeviceMetricsOverride() OVERRIDE; |
61 virtual void setTouchEventEmulationEnabled(bool) OVERRIDE; | 61 virtual void setTouchEventEmulationEnabled(bool) OVERRIDE; |
62 | 62 |
63 virtual bool overridesShowPaintRects() OVERRIDE; | 63 virtual bool overridesShowPaintRects() OVERRIDE; |
64 virtual void setShowPaintRects(bool) OVERRIDE; | 64 virtual void setShowPaintRects(bool) OVERRIDE; |
65 virtual void setShowDebugBorders(bool) OVERRIDE; | 65 virtual void setShowDebugBorders(bool) OVERRIDE; |
66 virtual void setShowFPSCounter(bool) OVERRIDE; | 66 virtual void setShowFPSCounter(bool) OVERRIDE; |
67 virtual void setContinuousPaintingEnabled(bool) OVERRIDE; | 67 virtual void setContinuousPaintingEnabled(bool) OVERRIDE; |
68 virtual void setShowScrollBottleneckRects(bool) OVERRIDE; | 68 virtual void setShowScrollBottleneckRects(bool) OVERRIDE; |
69 virtual void resetScrollAndPageScaleFactor() OVERRIDE; | 69 virtual void resetScrollAndPageScaleFactor() OVERRIDE; |
70 virtual void showContextMenu(float x, float y, PassRefPtr<blink::ContextMenu
Provider>) OVERRIDE; | 70 virtual void showContextMenu(float x, float y, PassRefPtr<ContextMenuProvide
r>) OVERRIDE; |
71 | 71 |
72 virtual void getAllocatedObjects(HashSet<const void*>&) OVERRIDE; | 72 virtual void getAllocatedObjects(HashSet<const void*>&) OVERRIDE; |
73 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t
>&) OVERRIDE; | 73 virtual void dumpUncountedAllocatedObjects(const HashMap<const void*, size_t
>&) OVERRIDE; |
74 | 74 |
75 virtual void dispatchKeyEvent(const blink::PlatformKeyboardEvent&) OVERRIDE; | 75 virtual void dispatchKeyEvent(const PlatformKeyboardEvent&) OVERRIDE; |
76 virtual void dispatchMouseEvent(const blink::PlatformMouseEvent&) OVERRIDE; | 76 virtual void dispatchMouseEvent(const PlatformMouseEvent&) OVERRIDE; |
77 | 77 |
78 virtual void setTraceEventCallback(const String& categoryFilter, TraceEventC
allback) OVERRIDE; | 78 virtual void setTraceEventCallback(const String& categoryFilter, TraceEventC
allback) OVERRIDE; |
79 virtual void resetTraceEventCallback() OVERRIDE; | 79 virtual void resetTraceEventCallback() OVERRIDE; |
80 virtual void enableTracing(const String& categoryFilter) OVERRIDE; | 80 virtual void enableTracing(const String& categoryFilter) OVERRIDE; |
81 virtual void disableTracing() OVERRIDE; | 81 virtual void disableTracing() OVERRIDE; |
82 | 82 |
83 virtual void startGPUEventsRecording() OVERRIDE; | 83 virtual void startGPUEventsRecording() OVERRIDE; |
84 virtual void stopGPUEventsRecording() OVERRIDE; | 84 virtual void stopGPUEventsRecording() OVERRIDE; |
85 | 85 |
86 private: | 86 private: |
87 WebDevToolsAgentImpl* devToolsAgent(); | 87 WebDevToolsAgentImpl* devToolsAgent(); |
88 | 88 |
89 // The WebViewImpl of the page being inspected; gets passed to the construct
or | 89 // The WebViewImpl of the page being inspected; gets passed to the construct
or |
90 WebViewImpl* m_inspectedWebView; | 90 WebViewImpl* m_inspectedWebView; |
91 }; | 91 }; |
92 | 92 |
93 } // namespace blink | 93 } // namespace blink |
94 | 94 |
95 #endif | 95 #endif |
OLD | NEW |