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

Side by Side Diff: ios/web/web_state/js/resources/core.js

Issue 1663463002: Manually fetch favicons after hash changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | ios/web/web_state/js/resources/core_dynamic_ui.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file adheres to closure-compiler conventions in order to enable 5 // This file adheres to closure-compiler conventions in order to enable
6 // compilation with ADVANCED_OPTIMIZATIONS. In particular, members that are to 6 // compilation with ADVANCED_OPTIMIZATIONS. In particular, members that are to
7 // be accessed externally should be specified in this['style'] as opposed to 7 // be accessed externally should be specified in this['style'] as opposed to
8 // this.style because member identifiers are minified by default. 8 // this.style because member identifiers are minified by default.
9 // See http://goo.gl/FwOgy 9 // See http://goo.gl/FwOgy
10 10
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 }; 427 };
428 428
429 __gCrWeb['getFullyQualifiedURL'] = function(originalURL) { 429 __gCrWeb['getFullyQualifiedURL'] = function(originalURL) {
430 // A dummy anchor (never added to the document) is used to obtain the 430 // A dummy anchor (never added to the document) is used to obtain the
431 // fully-qualified URL of |originalURL|. 431 // fully-qualified URL of |originalURL|.
432 var anchor = document.createElement('a'); 432 var anchor = document.createElement('a');
433 anchor.href = originalURL; 433 anchor.href = originalURL;
434 return anchor.href; 434 return anchor.href;
435 }; 435 };
436 436
437 __gCrWeb['sendFaviconsToHost'] = function() {
438 __gCrWeb.message.invokeOnHost({'command': 'document.favicons',
439 'favicons': __gCrWeb.common.getFavicons()});
440 }
441
437 // Tracks whether user is in the middle of scrolling/dragging. If user is 442 // Tracks whether user is in the middle of scrolling/dragging. If user is
438 // scrolling, ignore window.scrollTo() until user stops scrolling. 443 // scrolling, ignore window.scrollTo() until user stops scrolling.
439 var webViewScrollViewIsDragging_ = false; 444 var webViewScrollViewIsDragging_ = false;
440 __gCrWeb['setWebViewScrollViewIsDragging'] = function(state) { 445 __gCrWeb['setWebViewScrollViewIsDragging'] = function(state) {
441 webViewScrollViewIsDragging_ = state; 446 webViewScrollViewIsDragging_ = state;
442 }; 447 };
443 var originalWindowScrollTo = window.scrollTo; 448 var originalWindowScrollTo = window.scrollTo;
444 window.scrollTo = function(x, y) { 449 window.scrollTo = function(x, y) {
445 if (webViewScrollViewIsDragging_) 450 if (webViewScrollViewIsDragging_)
446 return; 451 return;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 660
656 // Handle or wait for and handle document load completion, if applicable. 661 // Handle or wait for and handle document load completion, if applicable.
657 if (__gCrWeb.core_dynamic.handleDocumentLoaded) 662 if (__gCrWeb.core_dynamic.handleDocumentLoaded)
658 __gCrWeb.core_dynamic.handleDocumentLoaded(); 663 __gCrWeb.core_dynamic.handleDocumentLoaded();
659 664
660 return true; 665 return true;
661 }; 666 };
662 667
663 __gCrWeb.core.documentInject(); 668 __gCrWeb.core.documentInject();
664 }()); // End of anonymous object 669 }()); // End of anonymous object
OLDNEW
« no previous file with comments | « no previous file | ios/web/web_state/js/resources/core_dynamic_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698