Title: [154550] trunk/Source/WebInspectorUI
- Revision
- 154550
- Author
- [email protected]
- Date
- 2013-08-24 11:58:36 -0700 (Sat, 24 Aug 2013)
Log Message
Web Inspector: Breakpoints in the editors gutter should have a contextmenu
https://bugs.webkit.org/show_bug.cgi?id=120169
Reviewed by Timothy Hatcher.
Updated CodeMirror now has a gutterContextMenu event. Use that to give
breakpoint related context menus. Add, Edit, Enable/Disable, Delete, and
Reveal in Debugger Navigation Sidebar.
* Localizations/en.lproj/localizedStrings.js:
"Add Breakpoint", and "Reveal in Debugger Navigation Sidebar".
* UserInterface/SourceCodeTextEditor.js:
(WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.addBreakpoint):
(WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.revealInSidebar):
(WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.removeBreakpoints):
(WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.toggleBreakpoints):
(WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu):
Show a context menu when clicking on the gutter for 0 breakpoints,
1 breakpoint, or >1 breakpoints. The only tricky handler is addBreakpoint,
since that must update the TextEditor for the new breakpoint info.
* UserInterface/TextEditor.js:
(WebInspector.TextEditor):
(WebInspector.TextEditor.prototype._gutterContextMenu):
Send to delegate if the delegate implements textEditorGutterContextMenu.
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (154549 => 154550)
--- trunk/Source/WebInspectorUI/ChangeLog 2013-08-24 18:27:32 UTC (rev 154549)
+++ trunk/Source/WebInspectorUI/ChangeLog 2013-08-24 18:58:36 UTC (rev 154550)
@@ -1,3 +1,32 @@
+2013-08-24 Joseph Pecoraro <[email protected]>
+
+ Web Inspector: Breakpoints in the editors gutter should have a contextmenu
+ https://bugs.webkit.org/show_bug.cgi?id=120169
+
+ Reviewed by Timothy Hatcher.
+
+ Updated CodeMirror now has a gutterContextMenu event. Use that to give
+ breakpoint related context menus. Add, Edit, Enable/Disable, Delete, and
+ Reveal in Debugger Navigation Sidebar.
+
+ * Localizations/en.lproj/localizedStrings.js:
+ "Add Breakpoint", and "Reveal in Debugger Navigation Sidebar".
+
+ * UserInterface/SourceCodeTextEditor.js:
+ (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.addBreakpoint):
+ (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.revealInSidebar):
+ (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.removeBreakpoints):
+ (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.toggleBreakpoints):
+ (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu):
+ Show a context menu when clicking on the gutter for 0 breakpoints,
+ 1 breakpoint, or >1 breakpoints. The only tricky handler is addBreakpoint,
+ since that must update the TextEditor for the new breakpoint info.
+
+ * UserInterface/TextEditor.js:
+ (WebInspector.TextEditor):
+ (WebInspector.TextEditor.prototype._gutterContextMenu):
+ Send to delegate if the delegate implements textEditorGutterContextMenu.
+
2013-08-23 Joseph Pecoraro <[email protected]>
Web Inspector: Fix js minification of updated CodeMirror
Modified: trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js (154549 => 154550)
--- trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js 2013-08-24 18:27:32 UTC (rev 154549)
+++ trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js 2013-08-24 18:58:36 UTC (rev 154550)
@@ -30,6 +30,7 @@
l o c a l i z e d S t r i n g s [ "