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

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

Issue 2094633004: [ios] Added DialogsSuppression public API to WebState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compilation Created 4 years, 6 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 18 matching lines...) Expand all
29 } 29 }
30 30
31 bool TestWebState::IsWebUsageEnabled() const { 31 bool TestWebState::IsWebUsageEnabled() const {
32 return web_usage_enabled_; 32 return web_usage_enabled_;
33 } 33 }
34 34
35 void TestWebState::SetWebUsageEnabled(bool enabled) { 35 void TestWebState::SetWebUsageEnabled(bool enabled) {
36 web_usage_enabled_ = enabled; 36 web_usage_enabled_ = enabled;
37 } 37 }
38 38
39 bool TestWebState::ShouldSuppressDialogs() const {
40 return false;
41 }
42
43 void TestWebState::SetShouldSuppressDialogs(bool should_suppress) {}
44
39 UIView* TestWebState::GetView() { 45 UIView* TestWebState::GetView() {
40 return nullptr; 46 return nullptr;
41 } 47 }
42 48
43 const NavigationManager* TestWebState::GetNavigationManager() const { 49 const NavigationManager* TestWebState::GetNavigationManager() const {
44 return nullptr; 50 return nullptr;
45 } 51 }
46 52
47 NavigationManager* TestWebState::GetNavigationManager() { 53 NavigationManager* TestWebState::GetNavigationManager() {
48 return nullptr; 54 return nullptr;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 shell::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() { 149 shell::InterfaceRegistry* TestWebState::GetMojoInterfaceRegistry() {
144 return nullptr; 150 return nullptr;
145 } 151 }
146 152
147 base::WeakPtr<WebState> TestWebState::AsWeakPtr() { 153 base::WeakPtr<WebState> TestWebState::AsWeakPtr() {
148 NOTREACHED(); 154 NOTREACHED();
149 return base::WeakPtr<WebState>(); 155 return base::WeakPtr<WebState>();
150 } 156 }
151 157
152 } // namespace web 158 } // 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