| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 | 8 |
| 9 MSVC_PUSH_WARNING_LEVEL(0); | 9 MSVC_PUSH_WARNING_LEVEL(0); |
| 10 #include "DOMWindow.h" | 10 #include "DOMWindow.h" |
| 11 #include "FloatRect.h" | 11 #include "FloatRect.h" |
| 12 #include "InspectorController.h" | 12 #include "InspectorController.h" |
| 13 #include "Page.h" | 13 #include "Page.h" |
| 14 #include "Settings.h" | 14 #include "Settings.h" |
| 15 #include <wtf/Vector.h> | 15 #include <wtf/Vector.h> |
| 16 MSVC_POP_WARNING(); | 16 MSVC_POP_WARNING(); |
| 17 | 17 |
| 18 #undef LOG | 18 #undef LOG |
| 19 #include "base/logging.h" | 19 #include "base/logging.h" |
| 20 #include "base/gfx/rect.h" | 20 #include "base/gfx/rect.h" |
| 21 #include "base/string_util.h" | 21 #include "base/string_util.h" |
| 22 #include "webkit/api/public/WebRect.h" | 22 #include "webkit/api/public/WebRect.h" |
| 23 #include "webkit/api/public/WebURL.h" | 23 #include "webkit/api/public/WebURL.h" |
| 24 #include "webkit/api/public/WebURLRequest.h" | 24 #include "webkit/api/public/WebURLRequest.h" |
| 25 #include "webkit/api/public/WebViewClient.h" |
| 25 #include "webkit/glue/glue_util.h" | 26 #include "webkit/glue/glue_util.h" |
| 26 #include "webkit/glue/inspector_client_impl.h" | 27 #include "webkit/glue/inspector_client_impl.h" |
| 27 #include "webkit/glue/webdevtoolsagent_impl.h" | 28 #include "webkit/glue/webdevtoolsagent_impl.h" |
| 28 #include "webkit/glue/webkit_glue.h" | 29 #include "webkit/glue/webkit_glue.h" |
| 29 #include "webkit/glue/webview_impl.h" | 30 #include "webkit/glue/webview_impl.h" |
| 30 #include "googleurl/src/gurl.h" | 31 #include "googleurl/src/gurl.h" |
| 31 #include "net/base/net_util.h" | 32 #include "net/base/net_util.h" |
| 32 | 33 |
| 33 using namespace WebCore; | 34 using namespace WebCore; |
| 34 | 35 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 break; | 231 break; |
| 231 } | 232 } |
| 232 data.append(entry); | 233 data.append(entry); |
| 233 data.append("\n"); | 234 data.append("\n"); |
| 234 } | 235 } |
| 235 inspected_web_view_->setInspectorSettings( | 236 inspected_web_view_->setInspectorSettings( |
| 236 webkit_glue::StringToWebString(data)); | 237 webkit_glue::StringToWebString(data)); |
| 237 if (inspected_web_view_->client()) | 238 if (inspected_web_view_->client()) |
| 238 inspected_web_view_->client()->didUpdateInspectorSettings(); | 239 inspected_web_view_->client()->didUpdateInspectorSettings(); |
| 239 } | 240 } |
| OLD | NEW |