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

Side by Side Diff: public/web/WebViewClient.h

Issue 232263003: Remove old version navigator content utils APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed wrong function call Created 6 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // action that wasn't initiated by the client. 281 // action that wasn't initiated by the client.
282 virtual void zoomLevelChanged() { } 282 virtual void zoomLevelChanged() { }
283 283
284 284
285 // Navigator Content Utils -------------------------------------------- 285 // Navigator Content Utils --------------------------------------------
286 286
287 // Registers a new URL handler for the given protocol. 287 // Registers a new URL handler for the given protocol.
288 virtual void registerProtocolHandler(const WebString& scheme, 288 virtual void registerProtocolHandler(const WebString& scheme,
289 const WebURL& baseUrl, 289 const WebURL& baseUrl,
290 const WebURL& url, 290 const WebURL& url,
291 const WebString& title) 291 const WebString& title) { }
292 {
293 registerProtocolHandler(scheme, baseUrl.string(), url.string(), title);
294 }
295 292
296 // Unregisters a given URL handler for the given protocol. 293 // Unregisters a given URL handler for the given protocol.
297 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL & baseUrl, const WebURL& url) 294 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL & baseUrl, const WebURL& url) { }
298 {
299 unregisterProtocolHandler(scheme, baseUrl.string(), url.string());
300 }
301 295
302 // Check if a given URL handler is registered for the given protocol. 296 // Check if a given URL handler is registered for the given protocol.
303 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& baseUrl, const WebURL& url) 297 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& baseUrl, const WebURL& url)
304 { 298 {
305 return isProtocolHandlerRegistered(scheme, baseUrl.string(), url.string( ));
306 }
307
308 // These old version APIs need to be removed after synching with chrome side .
309 virtual void registerProtocolHandler(const WebString& scheme,
310 const WebString& baseUrl,
311 const WebString& url,
312 const WebString& title) { }
313
314 virtual void unregisterProtocolHandler(const WebString& scheme, const WebStr ing& baseUrl, const WebString& url) { }
315
316 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebString& baseUrl, const WebString& url)
317 {
318 return WebCustomHandlersNew; 299 return WebCustomHandlersNew;
319 } 300 }
320 301
321 302
322 // Visibility ----------------------------------------------------------- 303 // Visibility -----------------------------------------------------------
323 304
324 // Returns the current visibility of the WebView. 305 // Returns the current visibility of the WebView.
325 virtual WebPageVisibilityState visibilityState() const 306 virtual WebPageVisibilityState visibilityState() const
326 { 307 {
327 return WebPageVisibilityStateVisible; 308 return WebPageVisibilityStateVisible;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 // Informs the browser that the draggable regions have been updated. 341 // Informs the browser that the draggable regions have been updated.
361 virtual void draggableRegionsChanged() { } 342 virtual void draggableRegionsChanged() { }
362 343
363 protected: 344 protected:
364 ~WebViewClient() { } 345 ~WebViewClient() { }
365 }; 346 };
366 347
367 } // namespace blink 348 } // namespace blink
368 349
369 #endif 350 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698