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

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: 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
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::string16& shortcut, const base::string16& url) {
Bernhard Bauer 2013/08/30 07:50:34 Does this need to be a string16? You're converting
sky 2013/08/30 17:06:56 nit: when you wrap, one param per line.
zturner 2013/08/30 17:14:44 Just to make sure I'm following you, you're saying
zturner 2013/08/30 18:10:06 Done.
zturner 2013/08/30 18:10:06 Done.
177 if (!host_)
178 return;
179 host_->Send(new MetroViewerHostMsg_OpenURLOnDesktop(shortcut, url));
180 }
181
175 void RemoteRootWindowHostWin::HandleOpenFile( 182 void RemoteRootWindowHostWin::HandleOpenFile(
176 const base::string16& title, 183 const base::string16& title,
177 const base::FilePath& default_path, 184 const base::FilePath& default_path,
178 const base::string16& filter, 185 const base::string16& filter,
179 const OpenFileCompletion& on_success, 186 const OpenFileCompletion& on_success,
180 const FileSelectionCanceled& on_failure) { 187 const FileSelectionCanceled& on_failure) {
181 if (!host_) 188 if (!host_)
182 return; 189 return;
183 190
184 // Can only have one of these operations in flight. 191 // Can only have one of these operations in flight.
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 } else { 569 } else {
563 ui::KeyEvent event(type, 570 ui::KeyEvent event(type,
564 ui::KeyboardCodeForWindowsKeyCode(vkey), 571 ui::KeyboardCodeForWindowsKeyCode(vkey),
565 flags, 572 flags,
566 is_character); 573 is_character);
567 delegate_->OnHostKeyEvent(&event); 574 delegate_->OnHostKeyEvent(&event);
568 } 575 }
569 } 576 }
570 577
571 } // namespace aura 578 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698