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 27 matching lines...) Expand all Loading... | |
| 38 #include "WebHistoryCommitType.h" | 38 #include "WebHistoryCommitType.h" |
| 39 #include "WebHistoryItem.h" | 39 #include "WebHistoryItem.h" |
| 40 #include "WebIconURL.h" | 40 #include "WebIconURL.h" |
| 41 #include "WebNavigationPolicy.h" | 41 #include "WebNavigationPolicy.h" |
| 42 #include "WebNavigationType.h" | 42 #include "WebNavigationType.h" |
| 43 #include "WebSecurityOrigin.h" | 43 #include "WebSecurityOrigin.h" |
| 44 #include "WebTextDirection.h" | 44 #include "WebTextDirection.h" |
| 45 #include "public/platform/WebCommon.h" | 45 #include "public/platform/WebCommon.h" |
| 46 #include "public/platform/WebFileSystem.h" | 46 #include "public/platform/WebFileSystem.h" |
| 47 #include "public/platform/WebFileSystemType.h" | 47 #include "public/platform/WebFileSystemType.h" |
| 48 #include "public/platform/WebManifest.h" | |
| 49 #include "public/platform/WebManifestError.h" | |
| 48 #include "public/platform/WebStorageQuotaCallbacks.h" | 50 #include "public/platform/WebStorageQuotaCallbacks.h" |
| 49 #include "public/platform/WebStorageQuotaType.h" | 51 #include "public/platform/WebStorageQuotaType.h" |
| 50 #include "public/platform/WebURLError.h" | 52 #include "public/platform/WebURLError.h" |
| 51 #include "public/platform/WebURLRequest.h" | 53 #include "public/platform/WebURLRequest.h" |
| 52 #include <v8.h> | 54 #include <v8.h> |
| 53 | 55 |
| 54 namespace blink { | 56 namespace blink { |
| 55 | 57 |
| 56 class WebApplicationCacheHost; | 58 class WebApplicationCacheHost; |
| 57 class WebApplicationCacheHostClient; | 59 class WebApplicationCacheHostClient; |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 291 // The navigation resulted in no change to the documents within the page. | 293 // The navigation resulted in no change to the documents within the page. |
| 292 // For example, the navigation may have just resulted in scrolling to a | 294 // For example, the navigation may have just resulted in scrolling to a |
| 293 // named anchor or a PopState event may have been dispatched. | 295 // named anchor or a PopState event may have been dispatched. |
| 294 virtual void didNavigateWithinPage(WebLocalFrame*, const WebHistoryItem&, We bHistoryCommitType) { } | 296 virtual void didNavigateWithinPage(WebLocalFrame*, const WebHistoryItem&, We bHistoryCommitType) { } |
| 295 | 297 |
| 296 // Called upon update to scroll position, document state, and other | 298 // Called upon update to scroll position, document state, and other |
| 297 // non-navigational events related to the data held by WebHistoryItem. | 299 // non-navigational events related to the data held by WebHistoryItem. |
| 298 // WARNING: This method may be called very frequently. | 300 // WARNING: This method may be called very frequently. |
| 299 virtual void didUpdateCurrentHistoryItem(WebLocalFrame*) { } | 301 virtual void didUpdateCurrentHistoryItem(WebLocalFrame*) { } |
| 300 | 302 |
| 301 // The frame's manifest has changed. | |
| 302 virtual void didChangeManifest(WebLocalFrame*) { } | |
| 303 | |
| 304 // The frame's theme color has changed. | 303 // The frame's theme color has changed. |
| 305 virtual void didChangeThemeColor() { } | 304 virtual void didChangeThemeColor() { } |
| 306 | 305 |
| 307 | 306 |
| 307 // Web Manifest --------------------------------------------------------- | |
| 308 | |
| 309 // The frame's manifest has changed. | |
| 310 virtual void didChangeManifest(WebLocalFrame*) { } | |
| 311 | |
| 312 // The frame's manifest has been loaded successfully. | |
| 313 virtual void didLoadManifest(WebLocalFrame*, WebManifest) { } | |
|
Mikhail
2014/08/29 12:49:18
maybe it's worth adding the new API after the WebM
mlamouri (slow - plz ping)
2014/09/01 19:23:51
Nate already reviewed the Blink API so I would pre
| |
| 314 | |
| 315 // The frame's manifest loading has failed. | |
| 316 virtual void didFailLoadManifest(WebLocalFrame*, WebManifestError) { } | |
| 317 | |
| 318 | |
| 308 // Transition navigations ----------------------------------------------- | 319 // Transition navigations ----------------------------------------------- |
| 309 | 320 |
| 310 // Provides serialized markup of transition elements for use in the followin g navigation. | 321 // Provides serialized markup of transition elements for use in the followin g navigation. |
| 311 virtual void addNavigationTransitionData(const WebString& allowedDestination Origin, const WebString& selector, const WebString& markup) { } | 322 virtual void addNavigationTransitionData(const WebString& allowedDestination Origin, const WebString& selector, const WebString& markup) { } |
| 312 | 323 |
| 313 | 324 |
| 314 // Web Notifications --------------------------------------------------- | 325 // Web Notifications --------------------------------------------------- |
| 315 | 326 |
| 316 // Requests permission to display platform notifications on the origin of th is frame. | 327 // Requests permission to display platform notifications on the origin of th is frame. |
| 317 virtual void requestNotificationPermission(const WebSecurityOrigin&, WebNoti ficationPermissionCallback* callback) { } | 328 virtual void requestNotificationPermission(const WebSecurityOrigin&, WebNoti ficationPermissionCallback* callback) { } |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 560 // Access the embedder API for (client-based) screen orientation client . | 571 // Access the embedder API for (client-based) screen orientation client . |
| 561 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; } | 572 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; } |
| 562 | 573 |
| 563 protected: | 574 protected: |
| 564 virtual ~WebFrameClient() { } | 575 virtual ~WebFrameClient() { } |
| 565 }; | 576 }; |
| 566 | 577 |
| 567 } // namespace blink | 578 } // namespace blink |
| 568 | 579 |
| 569 #endif | 580 #endif |
| OLD | NEW |