Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: webkit/glue/inspector_client_impl.cc

Issue 149620: Use WebWidget from the WebKit API. This change also makes... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/context_menu_unittest.cc ('k') | webkit/glue/webframeloaderclient_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 NOTIMPLEMENTED(); 155 NOTIMPLEMENTED();
156 } 156 }
157 157
158 static void invalidateNodeBoundingRect(WebViewImpl* web_view) { 158 static void invalidateNodeBoundingRect(WebViewImpl* web_view) {
159 // TODO(ojan): http://b/1143996 Is it important to just invalidate the rect 159 // TODO(ojan): http://b/1143996 Is it important to just invalidate the rect
160 // of the node region given that this is not on a critical codepath? 160 // of the node region given that this is not on a critical codepath?
161 // In order to do so, we'd have to take scrolling into account. 161 // In order to do so, we'd have to take scrolling into account.
162 const WebSize& size = web_view->size(); 162 const WebSize& size = web_view->size();
163 WebRect damaged_rect(0, 0, size.width, size.height); 163 WebRect damaged_rect(0, 0, size.width, size.height);
164 if (web_view->GetDelegate()) 164 if (web_view->GetDelegate())
165 web_view->GetDelegate()->DidInvalidateRect(web_view, damaged_rect); 165 web_view->GetDelegate()->didInvalidateRect(damaged_rect);
166 } 166 }
167 167
168 void WebInspectorClient::highlight(Node* node) { 168 void WebInspectorClient::highlight(Node* node) {
169 // InspectorController does the actually tracking of the highlighted node 169 // InspectorController does the actually tracking of the highlighted node
170 // and the drawing of the highlight. Here we just make sure to invalidate 170 // and the drawing of the highlight. Here we just make sure to invalidate
171 // the rects of the old and new nodes. 171 // the rects of the old and new nodes.
172 hideHighlight(); 172 hideHighlight();
173 } 173 }
174 174
175 void WebInspectorClient::hideHighlight() { 175 void WebInspectorClient::hideHighlight() {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 default: 289 default:
290 NOTREACHED(); 290 NOTREACHED();
291 break; 291 break;
292 } 292 }
293 data.append(entry); 293 data.append(entry);
294 data.append("\n"); 294 data.append("\n");
295 } 295 }
296 inspected_web_view_->delegate()->UpdateInspectorSettings( 296 inspected_web_view_->delegate()->UpdateInspectorSettings(
297 webkit_glue::StringToStdWString(data)); 297 webkit_glue::StringToStdWString(data));
298 } 298 }
OLDNEW
« no previous file with comments | « webkit/glue/context_menu_unittest.cc ('k') | webkit/glue/webframeloaderclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698