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

Unified Diff: remoting/host/win/scoped_thread_desktop.cc

Issue 10832068: Moving Windows-only files: remoting/host -> remoting/host/win. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/win/scoped_thread_desktop.h ('k') | remoting/host/win/wts_console_monitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/scoped_thread_desktop.cc
===================================================================
--- remoting/host/win/scoped_thread_desktop.cc (revision 0)
+++ remoting/host/win/scoped_thread_desktop.cc (working copy)
@@ -2,23 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "remoting/host/scoped_thread_desktop_win.h"
+#include "remoting/host/win/scoped_thread_desktop.h"
#include "base/logging.h"
-#include "remoting/host/desktop_win.h"
+#include "remoting/host/win/desktop.h"
namespace remoting {
-ScopedThreadDesktopWin::ScopedThreadDesktopWin()
- : initial_(DesktopWin::GetThreadDesktop()) {
+ScopedThreadDesktop::ScopedThreadDesktop()
+ : initial_(Desktop::GetThreadDesktop()) {
}
-ScopedThreadDesktopWin::~ScopedThreadDesktopWin() {
+ScopedThreadDesktop::~ScopedThreadDesktop() {
Revert();
}
-bool ScopedThreadDesktopWin::IsSame(const DesktopWin& desktop) {
+bool ScopedThreadDesktop::IsSame(const Desktop& desktop) {
if (assigned_.get() != NULL) {
return assigned_->IsSame(desktop);
} else {
@@ -26,14 +26,14 @@
}
}
-void ScopedThreadDesktopWin::Revert() {
+void ScopedThreadDesktop::Revert() {
if (assigned_.get() != NULL) {
initial_->SetThreadDesktop();
assigned_.reset();
}
}
-bool ScopedThreadDesktopWin::SetThreadDesktop(scoped_ptr<DesktopWin> desktop) {
+bool ScopedThreadDesktop::SetThreadDesktop(scoped_ptr<Desktop> desktop) {
Revert();
if (initial_->IsSame(*desktop))
« no previous file with comments | « remoting/host/win/scoped_thread_desktop.h ('k') | remoting/host/win/wts_console_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698