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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
88 class WebURLResponse; | 88 class WebURLResponse; |
89 class WebUserMediaClient; | 89 class WebUserMediaClient; |
90 class WebWorkerPermissionClientProxy; | 90 class WebWorkerPermissionClientProxy; |
91 struct WebColorSuggestion; | 91 struct WebColorSuggestion; |
92 struct WebConsoleMessage; | 92 struct WebConsoleMessage; |
93 struct WebContextMenuData; | 93 struct WebContextMenuData; |
94 struct WebPluginParams; | 94 struct WebPluginParams; |
95 struct WebPopupMenuInfo; | 95 struct WebPopupMenuInfo; |
96 struct WebRect; | 96 struct WebRect; |
97 struct WebSize; | 97 struct WebSize; |
98 struct WebTransitionElementData; | |
98 struct WebURLError; | 99 struct WebURLError; |
99 | 100 |
100 class WebFrameClient { | 101 class WebFrameClient { |
101 public: | 102 public: |
102 // Factory methods ----------------------------------------------------- | 103 // Factory methods ----------------------------------------------------- |
103 | 104 |
104 // May return null. | 105 // May return null. |
105 virtual WebPluginPlaceholder* createPluginPlaceholder(WebLocalFrame*, const WebPluginParams&) { return 0; } | 106 virtual WebPluginPlaceholder* createPluginPlaceholder(WebLocalFrame*, const WebPluginParams&) { return 0; } |
106 | 107 |
107 // May return null. | 108 // May return null. |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
305 // The frame's manifest has changed. | 306 // The frame's manifest has changed. |
306 virtual void didChangeManifest(WebLocalFrame*) { } | 307 virtual void didChangeManifest(WebLocalFrame*) { } |
307 | 308 |
308 // The frame's theme color has changed. | 309 // The frame's theme color has changed. |
309 virtual void didChangeThemeColor() { } | 310 virtual void didChangeThemeColor() { } |
310 | 311 |
311 | 312 |
312 // Transition navigations ----------------------------------------------- | 313 // Transition navigations ----------------------------------------------- |
313 | 314 |
314 // Provides serialized markup of transition elements for use in the followin g navigation. | 315 // Provides serialized markup of transition elements for use in the followin g navigation. |
316 virtual void addNavigationTransitionData(const WebTransitionElementData&) { } | |
317 | |
318 // TODO(zhenw): remove the following two addNavigationTransitionData() funct ions after the chrome side is done. | |
Nate Chapin
2014/11/11 00:28:17
TODO(zhew)->FIXME
Zhen Wang
2014/11/11 15:12:20
Done.
| |
315 virtual void addNavigationTransitionData(const WebString& allowedDestination Origin, const WebString& selector, const WebString& markup) { } | 319 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, const WebVector<WebS tring>& names, const WebVector<WebRect>& rects) { } | |
316 | 321 |
317 | 322 |
318 // Web Notifications --------------------------------------------------- | 323 // Web Notifications --------------------------------------------------- |
319 | 324 |
320 // Requests permission to display platform notifications on the origin of th is frame. | 325 // Requests permission to display platform notifications on the origin of th is frame. |
321 virtual void requestNotificationPermission(const WebSecurityOrigin&, WebNoti ficationPermissionCallback* callback) { } | 326 virtual void requestNotificationPermission(const WebSecurityOrigin&, WebNoti ficationPermissionCallback* callback) { } |
322 | 327 |
323 // Called to retrieve the provider of desktop notifications. | 328 // Called to retrieve the provider of desktop notifications. |
324 // FIXME: Remove this method once the presenter is obtained through Platform . | 329 // FIXME: Remove this method once the presenter is obtained through Platform . |
325 virtual WebNotificationPresenter* notificationPresenter() { return 0; } | 330 virtual WebNotificationPresenter* notificationPresenter() { return 0; } |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
579 // associated with the WebDataSource. | 584 // associated with the WebDataSource. |
580 virtual int64_t serviceWorkerID(WebDataSource&) { return -1; } | 585 virtual int64_t serviceWorkerID(WebDataSource&) { return -1; } |
581 | 586 |
582 protected: | 587 protected: |
583 virtual ~WebFrameClient() { } | 588 virtual ~WebFrameClient() { } |
584 }; | 589 }; |
585 | 590 |
586 } // namespace blink | 591 } // namespace blink |
587 | 592 |
588 #endif | 593 #endif |
OLD | NEW |