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

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

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: Fixed compilation 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include "ios/web/public/test/test_web_state.h" 7 #include "ios/web/public/test/test_web_state.h"
8 8
9 namespace web { 9 namespace web {
10 10
11 TestWebState::TestWebState() 11 TestWebState::TestWebState()
12 : trust_level_(kAbsolute), content_is_html_(true) {} 12 : trust_level_(kAbsolute), content_is_html_(true) {}
13 13
14 TestWebState::~TestWebState() = default; 14 TestWebState::~TestWebState() = default;
15 15
16 UIView* TestWebState::GetView() { 16 UIView* TestWebState::GetView() {
17 return nullptr; 17 return nullptr;
18 } 18 }
19 19
20 WebStateDelegate* TestWebState::GetDelegate() {
21 return nil;
22 }
23
24 void TestWebState::SetDelegate(WebStateDelegate* delegate) {}
25
20 BrowserState* TestWebState::GetBrowserState() const { 26 BrowserState* TestWebState::GetBrowserState() const {
21 return nullptr; 27 return nullptr;
22 } 28 }
23 29
24 NavigationManager* TestWebState::GetNavigationManager() { 30 NavigationManager* TestWebState::GetNavigationManager() {
25 return nullptr; 31 return nullptr;
26 } 32 }
27 33
28 CRWJSInjectionReceiver* TestWebState::GetJSInjectionReceiver() const { 34 CRWJSInjectionReceiver* TestWebState::GetJSInjectionReceiver() const {
29 return nullptr; 35 return nullptr;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 const ImageDownloadCallback& callback) { 107 const ImageDownloadCallback& callback) {
102 return 0; 108 return 0;
103 } 109 }
104 110
105 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { 111 base::WeakPtr<WebState> TestWebState::AsWeakPtr() {
106 NOTREACHED(); 112 NOTREACHED();
107 return base::WeakPtr<WebState>(); 113 return base::WeakPtr<WebState>();
108 } 114 }
109 115
110 } // namespace web 116 } // 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