diff options
author | weitaosu <weitaosu@chromium.org> | 2015-06-23 15:55:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-23 22:56:25 +0000 |
commit | 574f3040aa6aace3de564b88ac0d83aa7281fb93 (patch) | |
tree | 322825ac6434f55bd434bb510a17df09af4feee4 /remoting/remoting_webapp_files.gypi | |
parent | f4505949d31e66bdef441c23aa9357cc42e6636e (diff) | |
download | chromium_src-574f3040aa6aace3de564b88ac0d83aa7281fb93.zip chromium_src-574f3040aa6aace3de564b88ac0d83aa7281fb93.tar.gz chromium_src-574f3040aa6aace3de564b88ac0d83aa7281fb93.tar.bz2 |
Add a WindowMessageDispatcher class to listen to and dispatch all messages sent via window.postMessage. Now all messages sent will contain a 'source' field so that the dispatcher can dispatch to the registered handler.
I also turned MessageWindowManager into an object.
BUG=
Review URL: https://codereview.chromium.org/1195953003
Cr-Commit-Position: refs/heads/master@{#335787}
Diffstat (limited to 'remoting/remoting_webapp_files.gypi')
-rw-r--r-- | remoting/remoting_webapp_files.gypi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/remoting/remoting_webapp_files.gypi b/remoting/remoting_webapp_files.gypi index 60aa74b..ef8ce07 100644 --- a/remoting/remoting_webapp_files.gypi +++ b/remoting/remoting_webapp_files.gypi @@ -99,6 +99,7 @@ 'webapp/base/js/typecheck_unittest.js', 'webapp/base/js/viewport_unittest.js', 'webapp/base/js/window_shape_unittest.js', + 'webapp/base/js/window_message_dispatcher_unittest.js', 'webapp/base/js/xhr_event_writer_unittest.js', 'webapp/base/js/xhr_unittest.js', 'webapp/base/js/xmpp_connection_unittest.js', @@ -186,6 +187,7 @@ 'webapp/base/js/plugin_settings.js', 'webapp/base/js/suspend_detector.js', 'webapp/base/js/typecheck.js', + 'webapp/base/js/window_message_dispatcher.js', 'webapp/base/js/xhr_event_writer.js', 'webapp/base/js/xhr.js', ], |