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 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1064 this._element.removeEventListener("mousedown", this._longClickData.mouse
Down, false); | 1064 this._element.removeEventListener("mousedown", this._longClickData.mouse
Down, false); |
1065 this._element.removeEventListener("mouseout", this._longClickData.reset,
false); | 1065 this._element.removeEventListener("mouseout", this._longClickData.reset,
false); |
1066 this._element.removeEventListener("mouseup", this._longClickData.mouseUp
, false); | 1066 this._element.removeEventListener("mouseup", this._longClickData.mouseUp
, false); |
1067 this._element.addEventListener("click", this._longClickData.reset, true)
; | 1067 this._element.addEventListener("click", this._longClickData.reset, true)
; |
1068 delete this._longClickData; | 1068 delete this._longClickData; |
1069 }, | 1069 }, |
1070 | 1070 |
1071 __proto__: WebInspector.Object.prototype | 1071 __proto__: WebInspector.Object.prototype |
1072 } | 1072 } |
1073 | 1073 |
1074 ;(function() { | 1074 WebInspector.initializeUIUtils = function() |
1075 | |
1076 function windowLoaded() | |
1077 { | 1075 { |
1078 window.addEventListener("focus", WebInspector._windowFocused, false); | 1076 window.addEventListener("focus", WebInspector._windowFocused, false); |
1079 window.addEventListener("blur", WebInspector._windowBlurred, false); | 1077 window.addEventListener("blur", WebInspector._windowBlurred, false); |
1080 document.addEventListener("focus", WebInspector._focusChanged, true); | 1078 document.addEventListener("focus", WebInspector._focusChanged, true); |
1081 document.addEventListener("blur", WebInspector._documentBlurred, true); | 1079 document.addEventListener("blur", WebInspector._documentBlurred, true); |
1082 window.removeEventListener("DOMContentLoaded", windowLoaded, false); | |
1083 } | 1080 } |
1084 | |
1085 window.addEventListener("DOMContentLoaded", windowLoaded, false); | |
1086 | |
1087 })(); | |
OLD | NEW |