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

Unified Diff: Source/web/InspectorFrontendClientImpl.cpp

Issue 423673004: [DevTools] Switch from separate sendMessageToBackend method to using embedder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/InspectorFrontendClientImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/InspectorFrontendClientImpl.cpp
diff --git a/Source/web/InspectorFrontendClientImpl.cpp b/Source/web/InspectorFrontendClientImpl.cpp
index b8c312d3c0f4bcbe0799cda7bf06722044686d18..f3965d03fe935e0e97b25956474f7ccd76162e2c 100644
--- a/Source/web/InspectorFrontendClientImpl.cpp
+++ b/Source/web/InspectorFrontendClientImpl.cpp
@@ -133,6 +133,7 @@ void InspectorFrontendClientImpl::windowObjectCleared()
" ['resetZoom', 0],"
" ['save', 3],"
" ['searchInPath', 3],"
+ " ['sendMessageToBrowser', 1],"
" ['setDeviceCountUpdatesEnabled', 1],"
" ['setDevicesUpdatesEnabled', 1],"
" ['setWhitelistedShortcuts', 1],"
@@ -143,6 +144,12 @@ void InspectorFrontendClientImpl::windowObjectCleared()
" ['zoomIn', 0],"
" ['zoomOut', 0]]);"
""
+ "" // Support for legacy front-ends (<M38). Do not add items here.
+ "InspectorFrontendHost.sendMessageToBackend = function(message)"
+ "{"
+ " InspectorFrontendHost.sendMessageToBrowser(message);"
+ "};"
+ ""
"" // Support for legacy front-ends (<M34). Do not add items here.
"InspectorFrontendHost.requestSetDockSide = function(dockSide)"
"{"
@@ -162,11 +169,6 @@ void InspectorFrontendClientImpl::windowObjectCleared()
}
}
-void InspectorFrontendClientImpl::sendMessageToBackend(const String& message)
-{
- m_client->sendMessageToBackend(message);
-}
-
void InspectorFrontendClientImpl::sendMessageToEmbedder(const String& message)
{
m_client->sendMessageToEmbedder(message);
« no previous file with comments | « Source/web/InspectorFrontendClientImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698