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

Side by Side Diff: ios/web/public/web_state/web_state.h

Issue 2466143002: iOS: Mark HTTP pages with password fields with an omnibox icon. (Closed)
Patch Set: iOS HTTP Bad. Created 4 years 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/web_state/ui/crw_web_controller.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_ 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_ 6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // Resizes |content_view| to the content area's size and adds it to the 193 // Resizes |content_view| to the content area's size and adds it to the
194 // hierarchy. A navigation will remove the view from the hierarchy. 194 // hierarchy. A navigation will remove the view from the hierarchy.
195 virtual void ShowTransientContentView(CRWContentView* content_view) = 0; 195 virtual void ShowTransientContentView(CRWContentView* content_view) = 0;
196 196
197 // Returns true if a WebInterstitial is currently displayed. 197 // Returns true if a WebInterstitial is currently displayed.
198 virtual bool IsShowingWebInterstitial() const = 0; 198 virtual bool IsShowingWebInterstitial() const = 0;
199 199
200 // Returns the currently visible WebInterstitial if one is shown. 200 // Returns the currently visible WebInterstitial if one is shown.
201 virtual WebInterstitial* GetWebInterstitial() const = 0; 201 virtual WebInterstitial* GetWebInterstitial() const = 0;
202 202
203 // Tells the WebState that the current page is an HTTP page
204 // containing a password field.
205 virtual void OnPasswordInputShownOnHttp() = 0;
206
203 // Callback used to handle script commands. 207 // Callback used to handle script commands.
204 // The callback must return true if the command was handled, and false 208 // The callback must return true if the command was handled, and false
205 // otherwise. 209 // otherwise.
206 // In particular the callback must return false if the command is unexpected 210 // In particular the callback must return false if the command is unexpected
207 // or ill-formatted. 211 // or ill-formatted.
208 // The first parameter is the content of the command, the second parameter is 212 // The first parameter is the content of the command, the second parameter is
209 // the URL of the page, and the third parameter is a bool indicating if the 213 // the URL of the page, and the third parameter is a bool indicating if the
210 // user is currently interacting with the page. 214 // user is currently interacting with the page.
211 typedef base::Callback<bool(const base::DictionaryValue&, const GURL&, bool)> 215 typedef base::Callback<bool(const base::DictionaryValue&, const GURL&, bool)>
212 ScriptCommandCallback; 216 ScriptCommandCallback;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 272
269 // Returns a WeakPtr<WebState> to the current WebState. Must remain private 273 // Returns a WeakPtr<WebState> to the current WebState. Must remain private
270 // and only call must be in WebStateWeakPtrFactory. Please consult that class 274 // and only call must be in WebStateWeakPtrFactory. Please consult that class
271 // for more details. Remove as part of http://crbug.com/556736. 275 // for more details. Remove as part of http://crbug.com/556736.
272 virtual base::WeakPtr<WebState> AsWeakPtr() = 0; 276 virtual base::WeakPtr<WebState> AsWeakPtr() = 0;
273 }; 277 };
274 278
275 } // namespace web 279 } // namespace web
276 280
277 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_ 281 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_
OLDNEW
« no previous file with comments | « ios/web/public/test/test_web_state.h ('k') | ios/web/web_state/ui/crw_web_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698