summaryrefslogtreecommitdiffstats
path: root/remoting/host/desktop_environment.h
diff options
context:
space:
mode:
authorlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-23 23:39:50 +0000
committerlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-23 23:39:50 +0000
commit1bafb3c7bef6bced676f2aa1988c58c61a57819e (patch)
tree60e9deaafa1898748c4a62207d762a2322cb2ce4 /remoting/host/desktop_environment.h
parenta048700eaea16ce65f9e13208db7cf406a13b48f (diff)
downloadchromium_src-1bafb3c7bef6bced676f2aa1988c58c61a57819e.zip
chromium_src-1bafb3c7bef6bced676f2aa1988c58c61a57819e.tar.gz
chromium_src-1bafb3c7bef6bced676f2aa1988c58c61a57819e.tar.bz2
Refactor ContinueWindow::Show() to accept a callback parameter.
This gets rid of the DesktopEnvironment::OnPause() notification from the Host. Instead, that code is moved to DesktopEnvironment::ContinueSession() and provided as a callback function parameter to ContinueWindow::Show(). This will simplify a future CL to move the ContinueWindow/DisconnectWindow code into an IT2Me-specific HostObserver subclass. BUG=None TEST=No change in functionality. Review URL: http://codereview.chromium.org/8624009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111443 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/desktop_environment.h')
-rw-r--r--remoting/host/desktop_environment.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/remoting/host/desktop_environment.h b/remoting/host/desktop_environment.h
index 31335f5..28da047e 100644
--- a/remoting/host/desktop_environment.h
+++ b/remoting/host/desktop_environment.h
@@ -62,7 +62,6 @@ class DesktopEnvironment {
void ProcessOnConnect(const std::string& username);
void ProcessOnLastDisconnect();
- void ProcessOnPause(bool pause);
void MonitorLocalInputs(bool enable);
@@ -73,6 +72,12 @@ class DesktopEnvironment {
// Show or hide the Continue Sharing window on the UI thread.
void ShowContinueWindow(bool show);
+ // Called by the ContinueWindow implementation (on the UI thread) when the
+ // user dismisses the Continue prompt.
+ // TODO(lambroslambrou): Move this method to the (to be written)
+ // It2MeObserver class.
+ void ContinueSession(bool continue_session);
+
void StartContinueWindowTimer(bool start);
void OnContinueWindowTimer();