| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ios/public/provider/web/web_controller_provider.h" | |
| 6 | |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) | |
| 8 #error "This file requires ARC support." | |
| 9 #endif | |
| 10 | |
| 11 namespace ios { | |
| 12 | |
| 13 WebControllerProvider::WebControllerProvider(web::BrowserState* browser_state) { | |
| 14 } | |
| 15 | |
| 16 WebControllerProvider::~WebControllerProvider() {} | |
| 17 | |
| 18 bool WebControllerProvider::SuppressesDialogs() const { | |
| 19 return false; | |
| 20 } | |
| 21 | |
| 22 web::WebState* WebControllerProvider::GetWebState() const { | |
| 23 return nullptr; | |
| 24 } | |
| 25 | |
| 26 void WebControllerProvider::InjectScript( | |
| 27 const std::string& script, | |
| 28 web::JavaScriptResultBlock completion) { | |
| 29 if (completion) | |
| 30 completion(nil, nil); | |
| 31 } | |
| 32 | |
| 33 } // namespace ios | |
| OLD | NEW |