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

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

Issue 295063002: [NotLanded] Implement the fetching algorithm of the Web Manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: apply Nate's comments Created 6 years, 4 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
OLDNEW
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
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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // The navigation resulted in no change to the documents within the page. 285 // The navigation resulted in no change to the documents within the page.
284 // For example, the navigation may have just resulted in scrolling to a 286 // For example, the navigation may have just resulted in scrolling to a
285 // named anchor or a PopState event may have been dispatched. 287 // named anchor or a PopState event may have been dispatched.
286 virtual void didNavigateWithinPage(WebLocalFrame*, const WebHistoryItem&, We bHistoryCommitType) { } 288 virtual void didNavigateWithinPage(WebLocalFrame*, const WebHistoryItem&, We bHistoryCommitType) { }
287 289
288 // Called upon update to scroll position, document state, and other 290 // Called upon update to scroll position, document state, and other
289 // non-navigational events related to the data held by WebHistoryItem. 291 // non-navigational events related to the data held by WebHistoryItem.
290 // WARNING: This method may be called very frequently. 292 // WARNING: This method may be called very frequently.
291 virtual void didUpdateCurrentHistoryItem(WebLocalFrame*) { } 293 virtual void didUpdateCurrentHistoryItem(WebLocalFrame*) { }
292 294
293 // The frame's manifest has changed.
294 virtual void didChangeManifest(WebLocalFrame*) { }
295
296 // The frame's theme color has changed. 295 // The frame's theme color has changed.
297 virtual void didChangeThemeColor() { } 296 virtual void didChangeThemeColor() { }
298 297
299 298
299 // Web Manifest ---------------------------------------------------------
300
301 // The frame's manifest has changed.
302 virtual void didChangeManifest(WebLocalFrame*) { }
303
304 // The frame's manifest has been loaded successfully.
305 virtual void didLoadManifest(WebLocalFrame*, WebManifest) { }
306
307 // The frame's manifest loading has failed.
308 virtual void didFailLoadManifest(WebLocalFrame*, WebManifestError) { }
309
310
300 // Transition navigations ----------------------------------------------- 311 // Transition navigations -----------------------------------------------
301 312
302 // Provides serialized markup of transition elements for use in the followin g navigation. 313 // Provides serialized markup of transition elements for use in the followin g navigation.
303 virtual void addNavigationTransitionData(const WebString& allowedDestination Origin, const WebString& selector, const WebString& markup) { } 314 virtual void addNavigationTransitionData(const WebString& allowedDestination Origin, const WebString& selector, const WebString& markup) { }
304 315
305 316
306 // Web Notifications --------------------------------------------------- 317 // Web Notifications ---------------------------------------------------
307 318
308 // Requests permission to display platform notifications on the origin of th is frame. 319 // Requests permission to display platform notifications on the origin of th is frame.
309 virtual void requestNotificationPermission(const WebSecurityOrigin&, WebNoti ficationPermissionCallback* callback) { } 320 virtual void requestNotificationPermission(const WebSecurityOrigin&, WebNoti ficationPermissionCallback* callback) { }
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 // Access the embedder API for (client-based) screen orientation client . 563 // Access the embedder API for (client-based) screen orientation client .
553 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; } 564 virtual WebScreenOrientationClient* webScreenOrientationClient() { return 0; }
554 565
555 protected: 566 protected:
556 virtual ~WebFrameClient() { } 567 virtual ~WebFrameClient() { }
557 }; 568 };
558 569
559 } // namespace blink 570 } // namespace blink
560 571
561 #endif 572 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698