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

Side by Side Diff: ios/web/public/test/test_web_state.mm

Issue 1905393002: [ios] Added WebState::GetLoadingProgress web// API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing method 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 unified diff | Download patch
« no previous file with comments | « ios/web/public/test/test_web_state.h ('k') | ios/web/public/web_state/web_state.h » ('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/public/test/test_web_state.h" 5 #include "ios/web/public/test/test_web_state.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 const base::string16& TestWebState::GetTitle() const { 98 const base::string16& TestWebState::GetTitle() const {
99 return title_; 99 return title_;
100 } 100 }
101 101
102 bool TestWebState::IsLoading() const { 102 bool TestWebState::IsLoading() const {
103 return false; 103 return false;
104 } 104 }
105 105
106 double TestWebState::GetLoadingProgress() const {
107 return 0.0;
108 }
109
106 bool TestWebState::IsBeingDestroyed() const { 110 bool TestWebState::IsBeingDestroyed() const {
107 return false; 111 return false;
108 } 112 }
109 113
110 void TestWebState::SetCurrentURL(const GURL& url) { 114 void TestWebState::SetCurrentURL(const GURL& url) {
111 url_ = url; 115 url_ = url;
112 } 116 }
113 117
114 void TestWebState::SetTrustLevel(URLVerificationTrustLevel trust_level) { 118 void TestWebState::SetTrustLevel(URLVerificationTrustLevel trust_level) {
115 trust_level_ = trust_level; 119 trust_level_ = trust_level;
(...skipping 10 matching lines...) Expand all
126 const ImageDownloadCallback& callback) { 130 const ImageDownloadCallback& callback) {
127 return 0; 131 return 0;
128 } 132 }
129 133
130 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { 134 base::WeakPtr<WebState> TestWebState::AsWeakPtr() {
131 NOTREACHED(); 135 NOTREACHED();
132 return base::WeakPtr<WebState>(); 136 return base::WeakPtr<WebState>();
133 } 137 }
134 138
135 } // namespace web 139 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/public/test/test_web_state.h ('k') | ios/web/public/web_state/web_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698