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

Side by Side Diff: Source/devtools/front_end/host/InspectorFrontendHost.js

Issue 660523002: DevTools: add support for chunked protocol messages. (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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 InspectorFrontendHostAPI.ContextMenuDescriptor; 43 InspectorFrontendHostAPI.ContextMenuDescriptor;
44 44
45 InspectorFrontendHostAPI.Events = { 45 InspectorFrontendHostAPI.Events = {
46 AppendedToURL: "appendedToURL", 46 AppendedToURL: "appendedToURL",
47 CanceledSaveURL: "canceledSaveURL", 47 CanceledSaveURL: "canceledSaveURL",
48 ContextMenuCleared: "contextMenuCleared", 48 ContextMenuCleared: "contextMenuCleared",
49 ContextMenuItemSelected: "contextMenuItemSelected", 49 ContextMenuItemSelected: "contextMenuItemSelected",
50 DeviceCountUpdated: "deviceCountUpdated", 50 DeviceCountUpdated: "deviceCountUpdated",
51 DevicesUpdated: "devicesUpdated", 51 DevicesUpdated: "devicesUpdated",
52 DispatchMessage: "dispatchMessage", 52 DispatchMessage: "dispatchMessage",
53 DispatchMessageChunk: "dispatchMessageChunk",
53 EnterInspectElementMode: "enterInspectElementMode", 54 EnterInspectElementMode: "enterInspectElementMode",
54 FileSystemsLoaded: "fileSystemsLoaded", 55 FileSystemsLoaded: "fileSystemsLoaded",
55 FileSystemRemoved: "fileSystemRemoved", 56 FileSystemRemoved: "fileSystemRemoved",
56 FileSystemAdded: "fileSystemAdded", 57 FileSystemAdded: "fileSystemAdded",
57 IndexingTotalWorkCalculated: "indexingTotalWorkCalculated", 58 IndexingTotalWorkCalculated: "indexingTotalWorkCalculated",
58 IndexingWorked: "indexingWorked", 59 IndexingWorked: "indexingWorked",
59 IndexingDone: "indexingDone", 60 IndexingDone: "indexingDone",
60 KeyEventUnhandled: "keyEventUnhandled", 61 KeyEventUnhandled: "keyEventUnhandled",
61 RevealSourceLine: "revealSourceLine", 62 RevealSourceLine: "revealSourceLine",
62 SavedURL: "savedURL", 63 SavedURL: "savedURL",
63 SearchCompleted: "searchCompleted", 64 SearchCompleted: "searchCompleted",
64 SetToolbarColors: "setToolbarColors", 65 SetToolbarColors: "setToolbarColors",
65 SetUseSoftMenu: "setUseSoftMenu", 66 SetUseSoftMenu: "setUseSoftMenu",
66 ShowConsole: "showConsole" 67 ShowConsole: "showConsole"
67 } 68 }
68 69
69 InspectorFrontendHostAPI.EventDescriptors = [ 70 InspectorFrontendHostAPI.EventDescriptors = [
70 [InspectorFrontendHostAPI.Events.AppendedToURL, ["url"]], 71 [InspectorFrontendHostAPI.Events.AppendedToURL, ["url"]],
71 [InspectorFrontendHostAPI.Events.CanceledSaveURL, ["url"]], 72 [InspectorFrontendHostAPI.Events.CanceledSaveURL, ["url"]],
72 [InspectorFrontendHostAPI.Events.ContextMenuCleared, []], 73 [InspectorFrontendHostAPI.Events.ContextMenuCleared, []],
73 [InspectorFrontendHostAPI.Events.ContextMenuItemSelected, ["id"]], 74 [InspectorFrontendHostAPI.Events.ContextMenuItemSelected, ["id"]],
74 [InspectorFrontendHostAPI.Events.DeviceCountUpdated, ["count"]], 75 [InspectorFrontendHostAPI.Events.DeviceCountUpdated, ["count"]],
75 [InspectorFrontendHostAPI.Events.DevicesUpdated, ["devices"]], 76 [InspectorFrontendHostAPI.Events.DevicesUpdated, ["devices"]],
76 [InspectorFrontendHostAPI.Events.DispatchMessage, ["messageObject"]], 77 [InspectorFrontendHostAPI.Events.DispatchMessage, ["messageObject"]],
78 [InspectorFrontendHostAPI.Events.DispatchMessageChunk, ["messageChunk", "mes sageSize"]],
77 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, []], 79 [InspectorFrontendHostAPI.Events.EnterInspectElementMode, []],
78 [InspectorFrontendHostAPI.Events.FileSystemsLoaded, ["fileSystems"]], 80 [InspectorFrontendHostAPI.Events.FileSystemsLoaded, ["fileSystems"]],
79 [InspectorFrontendHostAPI.Events.FileSystemRemoved, ["fileSystemPath"]], 81 [InspectorFrontendHostAPI.Events.FileSystemRemoved, ["fileSystemPath"]],
80 [InspectorFrontendHostAPI.Events.FileSystemAdded, ["errorMessage", "fileSyst em"]], 82 [InspectorFrontendHostAPI.Events.FileSystemAdded, ["errorMessage", "fileSyst em"]],
81 [InspectorFrontendHostAPI.Events.IndexingTotalWorkCalculated, ["requestId", "fileSystemPath", "totalWork"]], 83 [InspectorFrontendHostAPI.Events.IndexingTotalWorkCalculated, ["requestId", "fileSystemPath", "totalWork"]],
82 [InspectorFrontendHostAPI.Events.IndexingWorked, ["requestId", "fileSystemPa th", "worked"]], 84 [InspectorFrontendHostAPI.Events.IndexingWorked, ["requestId", "fileSystemPa th", "worked"]],
83 [InspectorFrontendHostAPI.Events.IndexingDone, ["requestId", "fileSystemPath "]], 85 [InspectorFrontendHostAPI.Events.IndexingDone, ["requestId", "fileSystemPath "]],
84 [InspectorFrontendHostAPI.Events.KeyEventUnhandled, ["event"]], 86 [InspectorFrontendHostAPI.Events.KeyEventUnhandled, ["event"]],
85 [InspectorFrontendHostAPI.Events.RevealSourceLine, ["url", "lineNumber", "co lumnNumber"]], 87 [InspectorFrontendHostAPI.Events.RevealSourceLine, ["url", "lineNumber", "co lumnNumber"]],
86 [InspectorFrontendHostAPI.Events.SavedURL, ["url"]], 88 [InspectorFrontendHostAPI.Events.SavedURL, ["url"]],
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 * @param {number} id 689 * @param {number} id
688 * @param {?string} error 690 * @param {?string} error
689 */ 691 */
690 embedderMessageAck: function(id, error) 692 embedderMessageAck: function(id, error)
691 { 693 {
692 InspectorFrontendHost["embedderMessageAck"](id, error); 694 InspectorFrontendHost["embedderMessageAck"](id, error);
693 } 695 }
694 } 696 }
695 697
696 var InspectorFrontendAPI = new InspectorFrontendAPIImpl(); 698 var InspectorFrontendAPI = new InspectorFrontendAPIImpl();
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/sdk/InspectorBackend.js » ('j') | Source/devtools/front_end/sdk/InspectorBackend.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698