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

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

Issue 10700129: remoting/host: Fix cpplint warning of header guards. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 REMOTING_HOST_DISCONNECT_WINDOW_H 5 #ifndef REMOTING_HOST_DISCONNECT_WINDOW_H_
6 #define REMOTING_HOST_DISCONNECT_WINDOW_H 6 #define REMOTING_HOST_DISCONNECT_WINDOW_H_
7 #pragma once
7 8
8 #include <string> 9 #include <string>
9 10
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 13
13 namespace remoting { 14 namespace remoting {
14 15
15 class ChromotingHost; 16 class ChromotingHost;
16 17
17 class DisconnectWindow { 18 class DisconnectWindow {
18 public: 19 public:
19
20 enum { 20 enum {
21 kMaximumConnectedNameWidthInPixels = 400 21 kMaximumConnectedNameWidthInPixels = 400
22 }; 22 };
23 23
24 // DisconnectCallback is called when the user clicks on the Disconnect button 24 // DisconnectCallback is called when the user clicks on the Disconnect button
25 // to disconnect the session. This callback is provided as a parameter to the 25 // to disconnect the session. This callback is provided as a parameter to the
26 // Show() method, and will be triggered on the UI thread. 26 // Show() method, and will be triggered on the UI thread.
27 typedef base::Callback<void(void)> DisconnectCallback; 27 typedef base::Callback<void(void)> DisconnectCallback;
28 28
29 virtual ~DisconnectWindow() {} 29 virtual ~DisconnectWindow() {}
30 30
31 // Show the disconnect window allowing the user to shut down |host|. 31 // Show the disconnect window allowing the user to shut down |host|.
32 virtual void Show(ChromotingHost* host, 32 virtual void Show(ChromotingHost* host,
33 const DisconnectCallback& disconnect_callback, 33 const DisconnectCallback& disconnect_callback,
34 const std::string& username) = 0; 34 const std::string& username) = 0;
35 35
36 // Hide the disconnect window. 36 // Hide the disconnect window.
37 virtual void Hide() = 0; 37 virtual void Hide() = 0;
38 38
39 static scoped_ptr<DisconnectWindow> Create(); 39 static scoped_ptr<DisconnectWindow> Create();
40 }; 40 };
41 41
42 } 42 } // namespace remoting
43 43
44 #endif // REMOTING_HOST_DISCONNECT_WINDOW_H 44 #endif // REMOTING_HOST_DISCONNECT_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698