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

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

Issue 18179009: Introduce unregisterProtocolHandler() and isProtocolHandlerRegistered() webview API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 11 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 | « public/web/WebNavigatorContentUtilsClient.h ('k') | 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 21 matching lines...) Expand all
32 #define WebViewClient_h 32 #define WebViewClient_h
33 33
34 #include "../platform/WebColor.h" 34 #include "../platform/WebColor.h"
35 #include "../platform/WebGraphicsContext3D.h" 35 #include "../platform/WebGraphicsContext3D.h"
36 #include "../platform/WebString.h" 36 #include "../platform/WebString.h"
37 #include "WebAXEnums.h" 37 #include "WebAXEnums.h"
38 #include "WebContentDetectionResult.h" 38 #include "WebContentDetectionResult.h"
39 #include "WebDragOperation.h" 39 #include "WebDragOperation.h"
40 #include "WebFileChooserCompletion.h" 40 #include "WebFileChooserCompletion.h"
41 #include "WebFileChooserParams.h" 41 #include "WebFileChooserParams.h"
42 #include "WebNavigatorContentUtilsClient.h"
42 #include "WebPageVisibilityState.h" 43 #include "WebPageVisibilityState.h"
43 #include "WebPopupType.h" 44 #include "WebPopupType.h"
44 #include "WebTextAffinity.h" 45 #include "WebTextAffinity.h"
45 #include "WebTextDirection.h" 46 #include "WebTextDirection.h"
46 #include "WebWidgetClient.h" 47 #include "WebWidgetClient.h"
47 48
48 namespace blink { 49 namespace blink {
49 50
50 class WebAXObject; 51 class WebAXObject;
51 class WebColorChooser; 52 class WebColorChooser;
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 // Informs the browser that the zoom level has changed as a result of an 351 // Informs the browser that the zoom level has changed as a result of an
351 // action that wasn't initiated by the client. 352 // action that wasn't initiated by the client.
352 virtual void zoomLevelChanged() { } 353 virtual void zoomLevelChanged() { }
353 354
354 // Registers a new URL handler for the given protocol. 355 // Registers a new URL handler for the given protocol.
355 virtual void registerProtocolHandler(const WebString& scheme, 356 virtual void registerProtocolHandler(const WebString& scheme,
356 const WebString& baseUrl, 357 const WebString& baseUrl,
357 const WebString& url, 358 const WebString& url,
358 const WebString& title) { } 359 const WebString& title) { }
359 360
361 // Unregisters a given URL handler for the given protocol.
362 virtual void unregisterProtocolHandler(const WebString& scheme, const WebStr ing& baseUrl, const WebString& url) { }
363
364 // Check if a given URL handler is registered for the given protocol.
365 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebString& baseUrl, const WebString& url)
366 {
367 return WebCustomHandlersNew;
368 }
369
360 // Visibility ----------------------------------------------------------- 370 // Visibility -----------------------------------------------------------
361 371
362 // Returns the current visibility of the WebView. 372 // Returns the current visibility of the WebView.
363 virtual WebPageVisibilityState visibilityState() const 373 virtual WebPageVisibilityState visibilityState() const
364 { 374 {
365 return WebPageVisibilityStateVisible; 375 return WebPageVisibilityStateVisible;
366 } 376 }
367 377
368 // Media Streams ------------------------------------------------------- 378 // Media Streams -------------------------------------------------------
369 379
(...skipping 22 matching lines...) Expand all
392 // Informs the browser that the draggable regions have been updated. 402 // Informs the browser that the draggable regions have been updated.
393 virtual void draggableRegionsChanged() { } 403 virtual void draggableRegionsChanged() { }
394 404
395 protected: 405 protected:
396 ~WebViewClient() { } 406 ~WebViewClient() { }
397 }; 407 };
398 408
399 } // namespace blink 409 } // namespace blink
400 410
401 #endif 411 #endif
OLDNEW
« no previous file with comments | « public/web/WebNavigatorContentUtilsClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698