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

Side by Side Diff: Source/devtools/front_end/ui/UIUtils.js

Issue 675173002: DevTools: Fix frontend compilation after r184356 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 WebInspector._mouseOutWhileDraggingTargetDocument = targetDocument; 75 WebInspector._mouseOutWhileDraggingTargetDocument = targetDocument;
76 76
77 targetDocument.addEventListener("mousemove", WebInspector._elementDragMove, true); 77 targetDocument.addEventListener("mousemove", WebInspector._elementDragMove, true);
78 targetDocument.addEventListener("mouseup", WebInspector._elementDragEnd, tru e); 78 targetDocument.addEventListener("mouseup", WebInspector._elementDragEnd, tru e);
79 targetDocument.addEventListener("mouseout", WebInspector._mouseOutWhileDragg ing, true); 79 targetDocument.addEventListener("mouseout", WebInspector._mouseOutWhileDragg ing, true);
80 80
81 var targetElement = /** @type {!Element} */ (event.target); 81 var targetElement = /** @type {!Element} */ (event.target);
82 if (typeof cursor === "string") { 82 if (typeof cursor === "string") {
83 WebInspector._restoreCursorAfterDrag = restoreCursor.bind(null, targetEl ement.style.cursor); 83 WebInspector._restoreCursorAfterDrag = restoreCursor.bind(null, targetEl ement.style.cursor);
84 targetElement.style.cursor = cursor; 84 targetElement.style.cursor = cursor;
85 document.body.style.cursor = cursor; 85 targetDocument.body.style.cursor = cursor;
86 } 86 }
87 function restoreCursor(oldCursor) 87 function restoreCursor(oldCursor)
88 { 88 {
89 targetDocument.body.style.removeProperty("cursor"); 89 targetDocument.body.style.removeProperty("cursor");
90 targetElement.style.cursor = oldCursor; 90 targetElement.style.cursor = oldCursor;
91 WebInspector._restoreCursorAfterDrag = null; 91 WebInspector._restoreCursorAfterDrag = null;
92 } 92 }
93 event.preventDefault(); 93 event.preventDefault();
94 } 94 }
95 95
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 /** 1175 /**
1176 * @param {!Window} window 1176 * @param {!Window} window
1177 */ 1177 */
1178 WebInspector.initializeUIUtils = function(window) 1178 WebInspector.initializeUIUtils = function(window)
1179 { 1179 {
1180 window.addEventListener("focus", WebInspector._windowFocused.bind(WebInspect or, window.document), false); 1180 window.addEventListener("focus", WebInspector._windowFocused.bind(WebInspect or, window.document), false);
1181 window.addEventListener("blur", WebInspector._windowBlurred.bind(WebInspecto r, window.document), false); 1181 window.addEventListener("blur", WebInspector._windowBlurred.bind(WebInspecto r, window.document), false);
1182 window.document.addEventListener("focus", WebInspector._focusChanged.bind(We bInspector, window.document), true); 1182 window.document.addEventListener("focus", WebInspector._focusChanged.bind(We bInspector, window.document), true);
1183 window.document.addEventListener("blur", WebInspector._documentBlurred.bind( WebInspector, window.document), true); 1183 window.document.addEventListener("blur", WebInspector._documentBlurred.bind( WebInspector, window.document), true);
1184 } 1184 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698