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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_dispatcher_client.cc

Issue 1647933002: ash/wm: Remove dead code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/views/widget/desktop_aura/desktop_dispatcher_client.h"
6
7 #include "base/auto_reset.h"
8 #include "base/bind.h"
9 #include "base/run_loop.h"
10 #include "build/build_config.h"
11
12 namespace views {
13
14 DesktopDispatcherClient::DesktopDispatcherClient() {
15 }
16
17 DesktopDispatcherClient::~DesktopDispatcherClient() {
18 }
19
20 void DesktopDispatcherClient::PrepareNestedLoopClosures(
21 base::MessagePumpDispatcher* dispatcher,
22 base::Closure* run_closure,
23 base::Closure* quit_closure) {
24 #if defined(OS_WIN)
25 scoped_ptr<base::RunLoop> run_loop(new base::RunLoop(dispatcher));
26 #else
27 scoped_ptr<base::RunLoop> run_loop(new base::RunLoop());
28 #endif
29 *quit_closure = run_loop->QuitClosure();
30 *run_closure =
31 base::Bind(&base::RunLoop::Run, base::Owned(run_loop.release()));
32 }
33
34 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_dispatcher_client.h ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698