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

Side by Side Diff: remoting/host/continue_window.h

Issue 8624009: Refactor ContinueWindow::Show() to accept a callback parameter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac compile Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 REMOTING_HOST_CONTINUE_WINDOW_H 5 #ifndef REMOTING_HOST_CONTINUE_WINDOW_H
6 #define REMOTING_HOST_CONTINUE_WINDOW_H 6 #define REMOTING_HOST_CONTINUE_WINDOW_H
7 7
8 #include "base/callback.h"
9
8 namespace remoting { 10 namespace remoting {
9 11
10 class ChromotingHost; 12 class ChromotingHost;
11 13
12 class ContinueWindow { 14 class ContinueWindow {
13 public: 15 public:
16 // ContinueSessionCallback is called when the user clicks on the
17 // Continue button to resume the session, or dismisses the window to
18 // terminate the session. This callback is provided as a parameter to the
19 // Show() method, and will be triggered on the UI thread.
20 typedef base::Callback<void(bool)> ContinueSessionCallback;
21
14 virtual ~ContinueWindow() {} 22 virtual ~ContinueWindow() {}
15 23
16 // Show the continuation window requesting that the user approve continuing 24 // Show the continuation window requesting that the user approve continuing
17 // the session. 25 // the session.
18 virtual void Show(ChromotingHost* host) = 0; 26 virtual void Show(ChromotingHost* host,
Sergey Ulanov 2011/11/23 19:23:15 I think the point of this CL is to remove dependen
Lambros 2011/11/23 19:39:28 My main purpose was to get rid of the unnecessary
27 const ContinueSessionCallback& callback) = 0;
19 28
20 // Hide the continuation window if it is visible. 29 // Hide the continuation window if it is visible.
21 virtual void Hide() = 0; 30 virtual void Hide() = 0;
22 31
23 static ContinueWindow* Create(); 32 static ContinueWindow* Create();
24 }; 33 };
25 34
26 } 35 }
27 36
28 #endif // REMOTING_HOST_CONTINUE_WINDOW_H 37 #endif // REMOTING_HOST_CONTINUE_WINDOW_H
OLDNEW
« no previous file with comments | « no previous file | remoting/host/continue_window_linux.cc » ('j') | remoting/host/desktop_environment.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698