OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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 "blimp/client/session/blimp_client_session_linux.h" | |
6 | |
7 #include "base/message_loop/message_loop.h" | |
8 #include "blimp/client/linux/blimp_display_manager.h" | |
9 #include "ui/events/platform/platform_event_source.h" | |
10 #include "ui/gfx/geometry/size.h" | |
11 | |
12 namespace blimp { | |
13 | |
14 BlimpClientSessionLinux::BlimpClientSessionLinux() | |
15 : event_source_(ui::PlatformEventSource::CreateDefault()) { | |
16 blimp_display_manager_.reset(new BlimpDisplayManager(gfx::Size(800, 600), | |
haibinlu
2015/12/17 00:32:58
nit. define a const for size?
| |
17 this, | |
nyquist
2015/12/17 03:00:21
Is it safe to pass |this| as an argument in your o
| |
18 GetRenderWidgetFeature(), | |
19 GetTabControlFeature())); | |
20 } | |
21 | |
22 BlimpClientSessionLinux::~BlimpClientSessionLinux() {} | |
23 | |
24 void BlimpClientSessionLinux::OnClosed() { | |
25 base::MessageLoop::current()->QuitNow(); | |
26 } | |
27 | |
28 } // namespace blimp | |
OLD | NEW |