| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "win8/viewer/metro_viewer_process_host.h" | 5 #include "win8/viewer/metro_viewer_process_host.h" |
| 6 | 6 |
| 7 #include <shlobj.h> | 7 #include <shlobj.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 bool handled = true; | 95 bool handled = true; |
| 96 IPC_BEGIN_MESSAGE_MAP(MetroViewerProcessHost, message) | 96 IPC_BEGIN_MESSAGE_MAP(MetroViewerProcessHost, message) |
| 97 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_SetTargetSurface, OnSetTargetSurface) | 97 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_SetTargetSurface, OnSetTargetSurface) |
| 98 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_OpenURL, OnOpenURL) | 98 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_OpenURL, OnOpenURL) |
| 99 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_SearchRequest, OnHandleSearchRequest) | 99 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_SearchRequest, OnHandleSearchRequest) |
| 100 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_WindowSizeChanged, | 100 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_WindowSizeChanged, |
| 101 OnWindowSizeChanged) | 101 OnWindowSizeChanged) |
| 102 IPC_MESSAGE_UNHANDLED(handled = false) | 102 IPC_MESSAGE_UNHANDLED(handled = false) |
| 103 IPC_END_MESSAGE_MAP() | 103 IPC_END_MESSAGE_MAP() |
| 104 return handled ? true : | 104 return handled ? true : |
| 105 aura::RemoteRootWindowHostWin::Instance()->OnMessageReceived(message); | 105 aura::RemoteWindowTreeHostWin::Instance()->OnMessageReceived(message); |
| 106 } | 106 } |
| 107 | 107 |
| 108 void MetroViewerProcessHost::NotifyChannelConnected() { | 108 void MetroViewerProcessHost::NotifyChannelConnected() { |
| 109 if (channel_connected_event_) | 109 if (channel_connected_event_) |
| 110 channel_connected_event_->Signal(); | 110 channel_connected_event_->Signal(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace win8 | 113 } // namespace win8 |
| OLD | NEW |