| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 const IPC::Message& message) { | 94 const IPC::Message& message) { |
| 95 DCHECK(CalledOnValidThread()); | 95 DCHECK(CalledOnValidThread()); |
| 96 bool handled = true; | 96 bool handled = true; |
| 97 IPC_BEGIN_MESSAGE_MAP(MetroViewerProcessHost, message) | 97 IPC_BEGIN_MESSAGE_MAP(MetroViewerProcessHost, message) |
| 98 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_SetTargetSurface, OnSetTargetSurface) | 98 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_SetTargetSurface, OnSetTargetSurface) |
| 99 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_OpenURL, OnOpenURL) | 99 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_OpenURL, OnOpenURL) |
| 100 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_SearchRequest, OnHandleSearchRequest) | 100 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_SearchRequest, OnHandleSearchRequest) |
| 101 IPC_MESSAGE_UNHANDLED(handled = false) | 101 IPC_MESSAGE_UNHANDLED(handled = false) |
| 102 IPC_END_MESSAGE_MAP() | 102 IPC_END_MESSAGE_MAP() |
| 103 return handled ? true : | 103 return handled ? true : |
| 104 aura::RemoteWindowTreeHostWin::Instance()->OnMessageReceived(message); | 104 aura::RemoteRootWindowHostWin::Instance()->OnMessageReceived(message); |
| 105 } | 105 } |
| 106 | 106 |
| 107 void MetroViewerProcessHost::NotifyChannelConnected() { | 107 void MetroViewerProcessHost::NotifyChannelConnected() { |
| 108 if (channel_connected_event_) | 108 if (channel_connected_event_) |
| 109 channel_connected_event_->Signal(); | 109 channel_connected_event_->Signal(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 } // namespace win8 | 112 } // namespace win8 |
| OLD | NEW |