OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/aura/remote_root_window_host_win.h" | 5 #include "ui/aura/remote_root_window_host_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 OnWindowActivated) | 165 OnWindowActivated) |
166 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_SetCursorPosAck, | 166 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_SetCursorPosAck, |
167 OnSetCursorPosAck) | 167 OnSetCursorPosAck) |
168 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_WindowSizeChanged, | 168 IPC_MESSAGE_HANDLER(MetroViewerHostMsg_WindowSizeChanged, |
169 OnWindowSizeChanged) | 169 OnWindowSizeChanged) |
170 IPC_MESSAGE_UNHANDLED(handled = false) | 170 IPC_MESSAGE_UNHANDLED(handled = false) |
171 IPC_END_MESSAGE_MAP() | 171 IPC_END_MESSAGE_MAP() |
172 return handled; | 172 return handled; |
173 } | 173 } |
174 | 174 |
| 175 void RemoteRootWindowHostWin::HandleOpenURLOnDesktop( |
| 176 const base::FilePath& shortcut, |
| 177 const base::string16& url) { |
| 178 if (!host_) |
| 179 return; |
| 180 host_->Send(new MetroViewerHostMsg_OpenURLOnDesktop(shortcut, url)); |
| 181 } |
| 182 |
175 void RemoteRootWindowHostWin::HandleOpenFile( | 183 void RemoteRootWindowHostWin::HandleOpenFile( |
176 const base::string16& title, | 184 const base::string16& title, |
177 const base::FilePath& default_path, | 185 const base::FilePath& default_path, |
178 const base::string16& filter, | 186 const base::string16& filter, |
179 const OpenFileCompletion& on_success, | 187 const OpenFileCompletion& on_success, |
180 const FileSelectionCanceled& on_failure) { | 188 const FileSelectionCanceled& on_failure) { |
181 if (!host_) | 189 if (!host_) |
182 return; | 190 return; |
183 | 191 |
184 // Can only have one of these operations in flight. | 192 // Can only have one of these operations in flight. |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 } else { | 570 } else { |
563 ui::KeyEvent event(type, | 571 ui::KeyEvent event(type, |
564 ui::KeyboardCodeForWindowsKeyCode(vkey), | 572 ui::KeyboardCodeForWindowsKeyCode(vkey), |
565 flags, | 573 flags, |
566 is_character); | 574 is_character); |
567 delegate_->OnHostKeyEvent(&event); | 575 delegate_->OnHostKeyEvent(&event); |
568 } | 576 } |
569 } | 577 } |
570 | 578 |
571 } // namespace aura | 579 } // namespace aura |
OLD | NEW |