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

Side by Side Diff: ui/aura/remote_root_window_host_win.cc

Issue 23592024: Make the metro viewer responsible for relaunching browser in desktop mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a few nits. Created 7 years, 3 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 unified diff | Download patch
« no previous file with comments | « ui/aura/remote_root_window_host_win.h ('k') | ui/metro_viewer/metro_viewer_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/aura/remote_root_window_host_win.h ('k') | ui/metro_viewer/metro_viewer_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698