| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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 #import "ios/web/public/web_state/web_state_delegate_bridge.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace web { |
| 10 |
| 11 WebStateDelegateBridge::WebStateDelegateBridge(id<CRWWebStateDelegate> delegate) |
| 12 : delegate_(delegate) {} |
| 13 |
| 14 WebStateDelegateBridge::~WebStateDelegateBridge() {} |
| 15 |
| 16 void WebStateDelegateBridge::LoadProgressChanged(WebState* source, |
| 17 double progress) { |
| 18 if ([delegate_ respondsToSelector:@selector(webState:didChangeProgress:)]) |
| 19 [delegate_ webState:source didChangeProgress:progress]; |
| 20 } |
| 21 |
| 22 } // web |
| OLD | NEW |