| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 inspector->setWindowVisible(true); | 96 inspector->setWindowVisible(true); |
| 97 | 97 |
| 98 // Notify the webview delegate of how many resources we're inspecting. | 98 // Notify the webview delegate of how many resources we're inspecting. |
| 99 WebViewDelegate* d = inspected_web_view_->delegate(); | 99 WebViewDelegate* d = inspected_web_view_->delegate(); |
| 100 DCHECK(d); | 100 DCHECK(d); |
| 101 d->WebInspectorOpened(inspector->resources().size()); | 101 d->WebInspectorOpened(inspector->resources().size()); |
| 102 } | 102 } |
| 103 | 103 |
| 104 void WebInspectorClient::closeWindow() { | 104 void WebInspectorClient::closeWindow() { |
| 105 inspector_web_view_ = NULL; | 105 inspector_web_view_ = NULL; |
| 106 WebFrameImpl* frame = inspected_web_view_->main_frame(); | |
| 107 | 106 |
| 108 if (inspected_node_) | 107 if (inspected_node_) |
| 109 hideHighlight(); | 108 hideHighlight(); |
| 110 | 109 |
| 111 if (inspected_web_view_->page()) | 110 if (inspected_web_view_->page()) |
| 112 inspected_web_view_->page()->inspectorController()->setWindowVisible(false); | 111 inspected_web_view_->page()->inspectorController()->setWindowVisible(false); |
| 113 } | 112 } |
| 114 | 113 |
| 115 bool WebInspectorClient::windowVisible() { | 114 bool WebInspectorClient::windowVisible() { |
| 116 if (inspector_web_view_ != NULL) { | 115 if (inspector_web_view_ != NULL) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 } | 176 } |
| 178 | 177 |
| 179 void WebInspectorClient::storeSetting( | 178 void WebInspectorClient::storeSetting( |
| 180 const String& key, const InspectorController::Setting&) { | 179 const String& key, const InspectorController::Setting&) { |
| 181 NOTIMPLEMENTED(); | 180 NOTIMPLEMENTED(); |
| 182 } | 181 } |
| 183 | 182 |
| 184 void WebInspectorClient::removeSetting(const String& key) { | 183 void WebInspectorClient::removeSetting(const String& key) { |
| 185 NOTIMPLEMENTED(); | 184 NOTIMPLEMENTED(); |
| 186 } | 185 } |
| OLD | NEW |