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 // FIXME: remove the following two addNavigationTransitionData() functions a
fter the chrome side is 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>& ids, const WebVector<WebRect>& rects) { } |
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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 // associated with the WebDataSource. | 591 // associated with the WebDataSource. |
587 virtual int64_t serviceWorkerID(WebDataSource&) { return -1; } | 592 virtual int64_t serviceWorkerID(WebDataSource&) { return -1; } |
588 | 593 |
589 protected: | 594 protected: |
590 virtual ~WebFrameClient() { } | 595 virtual ~WebFrameClient() { } |
591 }; | 596 }; |
592 | 597 |
593 } // namespace blink | 598 } // namespace blink |
594 | 599 |
595 #endif | 600 #endif |
OLD | NEW |