| 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" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 WebViewDelegate* delegate = inspected_web_view_->GetDelegate(); | 70 WebViewDelegate* delegate = inspected_web_view_->GetDelegate(); |
| 71 if (!delegate) | 71 if (!delegate) |
| 72 return NULL; | 72 return NULL; |
| 73 inspector_web_view_ = static_cast<WebViewImpl*>( | 73 inspector_web_view_ = static_cast<WebViewImpl*>( |
| 74 delegate->CreateWebView(inspected_web_view_, true, GURL())); | 74 delegate->CreateWebView(inspected_web_view_, true, GURL())); |
| 75 if (!inspector_web_view_) | 75 if (!inspector_web_view_) |
| 76 return NULL; | 76 return NULL; |
| 77 | 77 |
| 78 inspector_web_view_->main_frame()->LoadRequest( | 78 inspector_web_view_->main_frame()->loadRequest( |
| 79 WebURLRequest(webkit_glue::GetInspectorURL())); | 79 WebURLRequest(webkit_glue::GetInspectorURL())); |
| 80 | 80 |
| 81 page = inspector_web_view_->page(); | 81 page = inspector_web_view_->page(); |
| 82 | 82 |
| 83 page->chrome()->setToolbarsVisible(false); | 83 page->chrome()->setToolbarsVisible(false); |
| 84 page->chrome()->setStatusbarVisible(false); | 84 page->chrome()->setStatusbarVisible(false); |
| 85 page->chrome()->setScrollbarsVisible(false); | 85 page->chrome()->setScrollbarsVisible(false); |
| 86 page->chrome()->setMenubarVisible(false); | 86 page->chrome()->setMenubarVisible(false); |
| 87 page->chrome()->setResizable(true); | 87 page->chrome()->setResizable(true); |
| 88 | 88 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 default: | 293 default: |
| 294 NOTREACHED(); | 294 NOTREACHED(); |
| 295 break; | 295 break; |
| 296 } | 296 } |
| 297 data.append(entry); | 297 data.append(entry); |
| 298 data.append("\n"); | 298 data.append("\n"); |
| 299 } | 299 } |
| 300 inspected_web_view_->delegate()->UpdateInspectorSettings( | 300 inspected_web_view_->delegate()->UpdateInspectorSettings( |
| 301 webkit_glue::StringToStdWString(data)); | 301 webkit_glue::StringToStdWString(data)); |
| 302 } | 302 } |
| OLD | NEW |