Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 class WebURLResponse; | 89 class WebURLResponse; |
| 90 class WebUserMediaClient; | 90 class WebUserMediaClient; |
| 91 class WebWorkerPermissionClientProxy; | 91 class WebWorkerPermissionClientProxy; |
| 92 struct WebColorSuggestion; | 92 struct WebColorSuggestion; |
| 93 struct WebConsoleMessage; | 93 struct WebConsoleMessage; |
| 94 struct WebContextMenuData; | 94 struct WebContextMenuData; |
| 95 struct WebPluginParams; | 95 struct WebPluginParams; |
| 96 struct WebPopupMenuInfo; | 96 struct WebPopupMenuInfo; |
| 97 struct WebRect; | 97 struct WebRect; |
| 98 struct WebSize; | 98 struct WebSize; |
| 99 struct WebTransitionElementData; | |
| 99 struct WebURLError; | 100 struct WebURLError; |
| 100 | 101 |
| 101 class WebFrameClient { | 102 class WebFrameClient { |
| 102 public: | 103 public: |
| 103 // Factory methods ----------------------------------------------------- | 104 // Factory methods ----------------------------------------------------- |
| 104 | 105 |
| 105 // May return null. | 106 // May return null. |
| 106 virtual WebPluginPlaceholder* createPluginPlaceholder(WebLocalFrame*, const WebPluginParams&) { return 0; } | 107 virtual WebPluginPlaceholder* createPluginPlaceholder(WebLocalFrame*, const WebPluginParams&) { return 0; } |
| 107 | 108 |
| 108 // May return null. | 109 // May return null. |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 306 // The frame's manifest has changed. | 307 // The frame's manifest has changed. |
| 307 virtual void didChangeManifest(WebLocalFrame*) { } | 308 virtual void didChangeManifest(WebLocalFrame*) { } |
| 308 | 309 |
| 309 // The frame's theme color has changed. | 310 // The frame's theme color has changed. |
| 310 virtual void didChangeThemeColor() { } | 311 virtual void didChangeThemeColor() { } |
| 311 | 312 |
| 312 | 313 |
| 313 // Transition navigations ----------------------------------------------- | 314 // Transition navigations ----------------------------------------------- |
| 314 | 315 |
| 315 // Provides serialized markup of transition elements for use in the followin g navigation. | 316 // Provides serialized markup of transition elements for use in the followin g navigation. |
| 317 virtual void addNavigationTransitionData(const WebTransitionElementData&) { } | |
| 318 | |
| 319 // TODO(zhenw): remove the following two addNavigationTransitionData() funct ions after the chrome side is done. | |
|
Nate Chapin
2014/11/05 18:29:43
TODO->FIXME
Zhen Wang
2014/11/06 17:59:26
Done.
| |
| 316 virtual void addNavigationTransitionData(const WebString& allowedDestination Origin, const WebString& selector, const WebString& markup) { } | 320 virtual void addNavigationTransitionData(const WebString& allowedDestination Origin, const WebString& selector, const WebString& markup) { } |
| 321 virtual void addNavigationTransitionData(const WebString& allowedDestination Origin, const WebString& selector, const WebString& markup, const WebVector<WebS tring>& names, const WebVector<WebRect>& rects) { } | |
|
Nate Chapin
2014/11/05 18:29:43
Is this intermediate api actually necessary?
Zhen Wang
2014/11/06 17:59:26
In theory, not necessary. But in reality, we need
Nate Chapin
2014/11/11 00:28:17
Huh, that seems strange, but I guess it's OK. So l
| |
| 317 | 322 |
| 318 | 323 |
| 319 // Web Notifications --------------------------------------------------- | 324 // Web Notifications --------------------------------------------------- |
| 320 | 325 |
| 321 // Requests permission to display platform notifications on the origin of th is frame. | 326 // Requests permission to display platform notifications on the origin of th is frame. |
| 322 virtual void requestNotificationPermission(const WebSecurityOrigin&, WebNoti ficationPermissionCallback* callback) { } | 327 virtual void requestNotificationPermission(const WebSecurityOrigin&, WebNoti ficationPermissionCallback* callback) { } |
| 323 | 328 |
| 324 // Called to retrieve the provider of desktop notifications. | 329 // Called to retrieve the provider of desktop notifications. |
| 325 // FIXME: Remove this method once the presenter is obtained through Platform . | 330 // FIXME: Remove this method once the presenter is obtained through Platform . |
| 326 virtual WebNotificationPresenter* notificationPresenter() { return 0; } | 331 virtual WebNotificationPresenter* notificationPresenter() { return 0; } |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 572 // ServiceWorker. | 577 // ServiceWorker. |
| 573 virtual bool isControlledByServiceWorker(WebDataSource&) { return false; } | 578 virtual bool isControlledByServiceWorker(WebDataSource&) { return false; } |
| 574 | 579 |
| 575 protected: | 580 protected: |
| 576 virtual ~WebFrameClient() { } | 581 virtual ~WebFrameClient() { } |
| 577 }; | 582 }; |
| 578 | 583 |
| 579 } // namespace blink | 584 } // namespace blink |
| 580 | 585 |
| 581 #endif | 586 #endif |
| OLD | NEW |