OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
5 * Copyright (C) 2009 Joseph Pecoraro | 5 * Copyright (C) 2009 Joseph Pecoraro |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * | 10 * |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 return a; | 723 return a; |
724 } | 724 } |
725 return String.format(Common.UIString(format), substitutions, formatters, creat
eElement('span'), append) | 725 return String.format(Common.UIString(format), substitutions, formatters, creat
eElement('span'), append) |
726 .formattedResult; | 726 .formattedResult; |
727 }; | 727 }; |
728 | 728 |
729 /** | 729 /** |
730 * @return {string} | 730 * @return {string} |
731 */ | 731 */ |
732 UI.openLinkExternallyLabel = function() { | 732 UI.openLinkExternallyLabel = function() { |
733 return Common.UIString.capitalize('Open ^link in ^new ^tab'); | 733 return Common.UIString.capitalize('Open in ^new ^tab'); |
734 }; | 734 }; |
735 | 735 |
736 /** | 736 /** |
737 * @return {string} | 737 * @return {string} |
738 */ | 738 */ |
739 UI.copyLinkAddressLabel = function() { | 739 UI.copyLinkAddressLabel = function() { |
740 return Common.UIString.capitalize('Copy ^link ^address'); | 740 return Common.UIString.capitalize('Copy ^link ^address'); |
741 }; | 741 }; |
742 | 742 |
743 /** | 743 /** |
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1985 return new Promise(fulfill => { | 1985 return new Promise(fulfill => { |
1986 var image = new Image(); | 1986 var image = new Image(); |
1987 image.addEventListener('load', () => fulfill(image)); | 1987 image.addEventListener('load', () => fulfill(image)); |
1988 image.addEventListener('error', () => fulfill(null)); | 1988 image.addEventListener('error', () => fulfill(null)); |
1989 image.src = url; | 1989 image.src = url; |
1990 }); | 1990 }); |
1991 }; | 1991 }; |
1992 | 1992 |
1993 /** @type {!UI.ThemeSupport} */ | 1993 /** @type {!UI.ThemeSupport} */ |
1994 UI.themeSupport; | 1994 UI.themeSupport; |
OLD | NEW |