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

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

Issue 660483002: DevTools: Fix focus handling in debug mode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | 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 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 })();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698