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

Side by Side Diff: ui/aura/remote_window_tree_host_win.h

Issue 297713002: Fixes crash in RemoteWindowTreeHostWin::HandleActivateDesktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: follow old pattern Created 6 years, 7 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 | Annotate | Revision Log
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 #ifndef UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ 5 #ifndef UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_
6 #define UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ 6 #define UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const SaveFileCompletion& on_success, 80 const SaveFileCompletion& on_success,
81 const FileSelectionCanceled& on_failure); 81 const FileSelectionCanceled& on_failure);
82 82
83 // Handles the select folder for Metro Chrome Ash. The on_success 83 // Handles the select folder for Metro Chrome Ash. The on_success
84 // callback passed in is invoked when we receive the folder name from the 84 // callback passed in is invoked when we receive the folder name from the
85 // metro viewer. The on failure callback is invoked on failure. 85 // metro viewer. The on failure callback is invoked on failure.
86 AURA_EXPORT void HandleSelectFolder(const base::string16& title, 86 AURA_EXPORT void HandleSelectFolder(const base::string16& title,
87 const SelectFolderCompletion& on_success, 87 const SelectFolderCompletion& on_success,
88 const FileSelectionCanceled& on_failure); 88 const FileSelectionCanceled& on_failure);
89 89
90 // Handles the activate desktop command for Metro Chrome Ash. The |ash_exit|
91 // parameter indicates whether the Ash process would be shutdown after
92 // activating the desktop.
93 AURA_EXPORT void HandleActivateDesktop(
94 const base::FilePath& shortcut,
95 bool ash_exit);
96
97 // Handles the metro exit command. Notifies the metro viewer to shutdown 90 // Handles the metro exit command. Notifies the metro viewer to shutdown
98 // gracefully. 91 // gracefully.
99 AURA_EXPORT void HandleMetroExit(); 92 AURA_EXPORT void HandleMetroExit();
100 93
101 // WindowTreeHost implementaton that receives events from a different 94 // WindowTreeHost implementaton that receives events from a different
102 // process. In the case of Windows this is the Windows 8 (aka Metro) 95 // process. In the case of Windows this is the Windows 8 (aka Metro)
103 // frontend process, which forwards input events to this class. 96 // frontend process, which forwards input events to this class.
104 class AURA_EXPORT RemoteWindowTreeHostWin 97 class AURA_EXPORT RemoteWindowTreeHostWin
105 : public WindowTreeHost, 98 : public WindowTreeHost,
106 public ui::EventSource, 99 public ui::EventSource,
(...skipping 17 matching lines...) Expand all
124 void Connected(IPC::Sender* host); 117 void Connected(IPC::Sender* host);
125 // Called when the remote process has closed its IPC connection. 118 // Called when the remote process has closed its IPC connection.
126 void Disconnected(); 119 void Disconnected();
127 120
128 // Called when we have a message from the remote process. 121 // Called when we have a message from the remote process.
129 bool OnMessageReceived(const IPC::Message& message); 122 bool OnMessageReceived(const IPC::Message& message);
130 123
131 void HandleOpenURLOnDesktop(const base::FilePath& shortcut, 124 void HandleOpenURLOnDesktop(const base::FilePath& shortcut,
132 const base::string16& url); 125 const base::string16& url);
133 126
134 // The |ash_exit| parameter indicates whether the Ash process would be
135 // shutdown after activating the desktop.
136 void HandleActivateDesktop(const base::FilePath& shortcut, bool ash_exit);
137
138 // Notify the metro viewer that it should shut itself down. 127 // Notify the metro viewer that it should shut itself down.
139 void HandleMetroExit(); 128 void HandleMetroExit();
140 129
141 void HandleOpenFile(const base::string16& title, 130 void HandleOpenFile(const base::string16& title,
142 const base::FilePath& default_path, 131 const base::FilePath& default_path,
143 const base::string16& filter, 132 const base::string16& filter,
144 const OpenFileCompletion& on_success, 133 const OpenFileCompletion& on_success,
145 const FileSelectionCanceled& on_failure); 134 const FileSelectionCanceled& on_failure);
146 135
147 void HandleOpenMultipleFiles(const base::string16& title, 136 void HandleOpenMultipleFiles(const base::string16& title,
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 283
295 // Current size of this root window. 284 // Current size of this root window.
296 gfx::Size window_size_; 285 gfx::Size window_size_;
297 286
298 DISALLOW_COPY_AND_ASSIGN(RemoteWindowTreeHostWin); 287 DISALLOW_COPY_AND_ASSIGN(RemoteWindowTreeHostWin);
299 }; 288 };
300 289
301 } // namespace aura 290 } // namespace aura
302 291
303 #endif // UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ 292 #endif // UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc ('k') | ui/aura/remote_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698