| 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 28 matching lines...) Expand all Loading... |
| 39 #include "platform/JSONValues.h" | 39 #include "platform/JSONValues.h" |
| 40 #include "platform/geometry/FloatRect.h" | 40 #include "platform/geometry/FloatRect.h" |
| 41 #include "public/platform/WebRect.h" | 41 #include "public/platform/WebRect.h" |
| 42 #include "public/platform/WebURL.h" | 42 #include "public/platform/WebURL.h" |
| 43 #include "public/platform/WebURLRequest.h" | 43 #include "public/platform/WebURLRequest.h" |
| 44 #include "public/web/WebViewClient.h" | 44 #include "public/web/WebViewClient.h" |
| 45 #include "web/WebDevToolsAgentImpl.h" | 45 #include "web/WebDevToolsAgentImpl.h" |
| 46 #include "web/WebViewImpl.h" | 46 #include "web/WebViewImpl.h" |
| 47 #include "wtf/Vector.h" | 47 #include "wtf/Vector.h" |
| 48 | 48 |
| 49 using namespace WebCore; | 49 using namespace blink; |
| 50 | 50 |
| 51 namespace blink { | 51 namespace blink { |
| 52 | 52 |
| 53 InspectorClientImpl::InspectorClientImpl(WebViewImpl* webView) | 53 InspectorClientImpl::InspectorClientImpl(WebViewImpl* webView) |
| 54 : m_inspectedWebView(webView) | 54 : m_inspectedWebView(webView) |
| 55 { | 55 { |
| 56 ASSERT(m_inspectedWebView); | 56 ASSERT(m_inspectedWebView); |
| 57 } | 57 } |
| 58 | 58 |
| 59 InspectorClientImpl::~InspectorClientImpl() | 59 InspectorClientImpl::~InspectorClientImpl() |
| 60 { | 60 { |
| 61 } | 61 } |
| 62 | 62 |
| 63 void InspectorClientImpl::highlight() | 63 void InspectorClientImpl::highlight() |
| 64 { | 64 { |
| 65 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 65 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
| 66 agent->highlight(); | 66 agent->highlight(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void InspectorClientImpl::hideHighlight() | 69 void InspectorClientImpl::hideHighlight() |
| 70 { | 70 { |
| 71 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 71 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
| 72 agent->hideHighlight(); | 72 agent->hideHighlight(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 void InspectorClientImpl::sendMessageToFrontend(PassRefPtr<WebCore::JSONObject>
message) | 75 void InspectorClientImpl::sendMessageToFrontend(PassRefPtr<blink::JSONObject> me
ssage) |
| 76 { | 76 { |
| 77 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 77 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
| 78 agent->sendMessageToFrontend(message); | 78 agent->sendMessageToFrontend(message); |
| 79 } | 79 } |
| 80 | 80 |
| 81 void InspectorClientImpl::flush() | 81 void InspectorClientImpl::flush() |
| 82 { | 82 { |
| 83 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 83 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
| 84 agent->flush(); | 84 agent->flush(); |
| 85 } | 85 } |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 207 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
| 208 agent->stopGPUEventsRecording(); | 208 agent->stopGPUEventsRecording(); |
| 209 } | 209 } |
| 210 | 210 |
| 211 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent() | 211 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent() |
| 212 { | 212 { |
| 213 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent(
)); | 213 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent(
)); |
| 214 } | 214 } |
| 215 | 215 |
| 216 } // namespace blink | 216 } // namespace blink |
| OLD | NEW |