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

Unified Diff: ios/web/web_state/web_state_delegate_stub.h

Issue 1851003003: [ios] Added web// public API to let embedder observe loading progress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ios/web/web_state/web_state_delegate_stub.h
diff --git a/ios/web/web_state/web_state_delegate_stub.h b/ios/web/web_state/web_state_delegate_stub.h
new file mode 100644
index 0000000000000000000000000000000000000000..afd86acd98d665a4b314f581a333cfd06d177a65
--- /dev/null
+++ b/ios/web/web_state/web_state_delegate_stub.h
@@ -0,0 +1,20 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_WEB_STATE_WEB_STATE_DELEGATE_STUB_H_
+#define IOS_WEB_WEB_STATE_WEB_STATE_DELEGATE_STUB_H_
+
+#import "ios/testing/ocmock_complex_type_helper.h"
+#import "ios/web/public/web_state/web_state_delegate_bridge.h"
+
+// Stub implementation for CRWWebStateDelegate protocol.
+@interface CRWWebStateDelegateStub
+ : OCMockComplexTypeHelper<CRWWebStateDelegate>
+// web::WebState received in delegate method calls..
+@property(nonatomic, readonly) web::WebState* webState;
+// Progress received in |webState:didChangeProgress| call.
+@property(nonatomic, readonly) double changedProgress;
+@end
+
+#endif // IOS_WEB_WEB_STATE_WEB_STATE_DELEGATE_STUB_H_

Powered by Google App Engine
This is Rietveld 408576698