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

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

Issue 164225: Switch to WebFrame from the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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/image_resource_fetcher.cc ('k') | webkit/glue/mimetype_unittest.cc » ('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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « webkit/glue/image_resource_fetcher.cc ('k') | webkit/glue/mimetype_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698