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

Unified Diff: remoting/host/disconnect_window.h

Issue 13212009: Made DesktopEnvironment responsible for creation of the disconnect window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Mac Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/desktop_session_agent.cc ('k') | remoting/host/disconnect_window_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/disconnect_window.h
diff --git a/remoting/host/disconnect_window.h b/remoting/host/disconnect_window.h
deleted file mode 100644
index 7c38bfa796c39a2097badeacaed593491c96a929..0000000000000000000000000000000000000000
--- a/remoting/host/disconnect_window.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef REMOTING_HOST_DISCONNECT_WINDOW_H_
-#define REMOTING_HOST_DISCONNECT_WINDOW_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
-
-namespace remoting {
-
-struct UiStrings;
-
-class DisconnectWindow {
- public:
- enum {
- kMaximumConnectedNameWidthInPixels = 400
- };
-
- virtual ~DisconnectWindow() {}
-
- // Shows the disconnect window, allowing the user to disconnect the session.
- // |disconnect_callback| will be invoked on the calling UI thread when the
- // user chooses to disconnect, or if the window is closed by any means other
- // than Hide(), or deletion of the DisconnectWindow instance.
- // Show returns false if the window cannot be shown, in which case the
- // callback will not be invoked.
- virtual bool Show(const base::Closure& disconnect_callback,
- const std::string& username) = 0;
-
- // Hides the disconnect window. The disconnect callback will not be invoked.
- virtual void Hide() = 0;
-
- // |ui_strings| specifies localized strings to be used by the window.
- // |ui_strings| must outlive the returned object.
- static scoped_ptr<DisconnectWindow> Create(const UiStrings* ui_strings);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_HOST_DISCONNECT_WINDOW_H_
« no previous file with comments | « remoting/host/desktop_session_agent.cc ('k') | remoting/host/disconnect_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698