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

Side by Side Diff: ios/web/webui/web_ui_ios_impl.mm

Issue 2116673002: [ios] Moved WebUI provider code to ios/web. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 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
« no previous file with comments | « ios/web/webui/web_ui_ios_impl.h ('k') | ios/web/webui/web_ui_mojo_inttest.mm » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ios/web/webui/web_ui_ios_impl.h" 5 #include "ios/web/webui/web_ui_ios_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "ios/public/provider/web/web_ui_ios_controller.h" 13 #include "ios/web/public/webui/web_ui_ios_controller.h"
14 #include "ios/public/provider/web/web_ui_ios_controller_factory.h" 14 #include "ios/web/public/webui/web_ui_ios_controller_factory.h"
15 #include "ios/public/provider/web/web_ui_ios_message_handler.h" 15 #include "ios/web/public/webui/web_ui_ios_message_handler.h"
16 #include "ios/web/web_state/web_state_impl.h" 16 #include "ios/web/web_state/web_state_impl.h"
17 17
18 using web::WebUIIOSController; 18 using web::WebUIIOSController;
19 19
20 namespace web { 20 namespace web {
21 21
22 // static 22 // static
23 base::string16 WebUIIOS::GetJavascriptCall( 23 base::string16 WebUIIOS::GetJavascriptCall(
24 const std::string& function_name, 24 const std::string& function_name,
25 const std::vector<const base::Value*>& arg_list) { 25 const std::vector<const base::Value*>& arg_list) {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 handler->set_web_ui(this); 144 handler->set_web_ui(this);
145 handler->RegisterMessages(); 145 handler->RegisterMessages();
146 handlers_.push_back(handler); 146 handlers_.push_back(handler);
147 } 147 }
148 148
149 void WebUIIOSImpl::ExecuteJavascript(const base::string16& javascript) { 149 void WebUIIOSImpl::ExecuteJavascript(const base::string16& javascript) {
150 web_state_->ExecuteJavaScript(javascript); 150 web_state_->ExecuteJavaScript(javascript);
151 } 151 }
152 152
153 } // namespace web 153 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/webui/web_ui_ios_impl.h ('k') | ios/web/webui/web_ui_mojo_inttest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698