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

Side by Side Diff: content/browser/webui/web_ui_impl.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/webui/web_ui_impl.h" 5 #include "content/browser/webui/web_ui_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // WebUIImpl, protected: ------------------------------------------------------- 253 // WebUIImpl, protected: -------------------------------------------------------
254 254
255 void WebUIImpl::AddMessageHandler(WebUIMessageHandler* handler) { 255 void WebUIImpl::AddMessageHandler(WebUIMessageHandler* handler) {
256 DCHECK(!handler->web_ui()); 256 DCHECK(!handler->web_ui());
257 handler->set_web_ui(this); 257 handler->set_web_ui(this);
258 handler->RegisterMessages(); 258 handler->RegisterMessages();
259 handlers_.push_back(handler); 259 handlers_.push_back(handler);
260 } 260 }
261 261
262 void WebUIImpl::ExecuteJavascript(const string16& javascript) { 262 void WebUIImpl::ExecuteJavascript(const string16& javascript) {
263 web_contents_->GetRenderViewHost()->ExecuteJavascriptInWebFrame( 263 static_cast<RenderViewHostImpl*>(
264 web_contents_->GetRenderViewHost())->ExecuteJavascriptInWebFrame(
264 ASCIIToUTF16(frame_xpath_), javascript); 265 ASCIIToUTF16(frame_xpath_), javascript);
265 } 266 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/web_drag_source_mac.mm ('k') | content/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698