| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/renderer/devtools_agent.h" | 5 #include "chrome/renderer/devtools_agent.h" |
| 6 | 6 |
| 7 #include "chrome/common/devtools_messages.h" | 7 #include "chrome/common/devtools_messages.h" |
| 8 #include "chrome/common/render_messages.h" | 8 #include "chrome/common/render_messages.h" |
| 9 #include "chrome/renderer/render_view.h" | 9 #include "chrome/renderer/render_view.h" |
| 10 #include "webkit/api/public/WebDevToolsAgent.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebDevToolsAgent.h" |
| 11 #include "webkit/api/public/WebPoint.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/WebPoint.h" |
| 12 #include "webkit/api/public/WebString.h" | 12 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
| 13 #include "webkit/glue/glue_util.h" | 13 #include "webkit/glue/glue_util.h" |
| 14 | 14 |
| 15 using WebKit::WebDevToolsAgent; | 15 using WebKit::WebDevToolsAgent; |
| 16 using WebKit::WebPoint; | 16 using WebKit::WebPoint; |
| 17 using WebKit::WebString; | 17 using WebKit::WebString; |
| 18 using WebKit::WebView; | 18 using WebKit::WebView; |
| 19 | 19 |
| 20 // static | 20 // static |
| 21 std::map<int, DevToolsAgent*> DevToolsAgent::agent_for_routing_id_; | 21 std::map<int, DevToolsAgent*> DevToolsAgent::agent_for_routing_id_; |
| 22 | 22 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 enabled); | 144 enabled); |
| 145 } | 145 } |
| 146 } | 146 } |
| 147 | 147 |
| 148 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { | 148 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { |
| 149 WebView* web_view = render_view_->webview(); | 149 WebView* web_view = render_view_->webview(); |
| 150 if (!web_view) | 150 if (!web_view) |
| 151 return NULL; | 151 return NULL; |
| 152 return web_view->devToolsAgent(); | 152 return web_view->devToolsAgent(); |
| 153 } | 153 } |
| OLD | NEW |