Chromium Code Reviews| Index: blimp/client/session/blimp_client_session_linux.cc |
| diff --git a/blimp/client/session/blimp_client_session_linux.cc b/blimp/client/session/blimp_client_session_linux.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..99a162be4eaeeb2496fe76c5690f08fdf9e50b7b |
| --- /dev/null |
| +++ b/blimp/client/session/blimp_client_session_linux.cc |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2015 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. |
| + |
| +#include "blimp/client/session/blimp_client_session_linux.h" |
| + |
| +#include "base/message_loop/message_loop.h" |
| +#include "blimp/client/linux/blimp_display_manager.h" |
| +#include "ui/events/platform/platform_event_source.h" |
| +#include "ui/gfx/geometry/size.h" |
| + |
| +namespace blimp { |
| + |
| +BlimpClientSessionLinux::BlimpClientSessionLinux() |
| + : event_source_(ui::PlatformEventSource::CreateDefault()) { |
| + blimp_display_manager_.reset(new BlimpDisplayManager(gfx::Size(800, 600), |
|
haibinlu
2015/12/17 00:32:58
nit. define a const for size?
|
| + this, |
|
nyquist
2015/12/17 03:00:21
Is it safe to pass |this| as an argument in your o
|
| + GetRenderWidgetFeature(), |
| + GetTabControlFeature())); |
| +} |
| + |
| +BlimpClientSessionLinux::~BlimpClientSessionLinux() {} |
| + |
| +void BlimpClientSessionLinux::OnClosed() { |
| + base::MessageLoop::current()->QuitNow(); |
| +} |
| + |
| +} // namespace blimp |