| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "blimp/client/linux/blimp_display_manager.h" | 5 #include "blimp/client/linux/blimp_display_manager.h" |
| 6 | 6 |
| 7 #include "blimp/client/compositor/blimp_compositor.h" | 7 #include "blimp/client/compositor/blimp_compositor.h" |
| 8 #include "blimp/client/session/render_widget_feature.h" | 8 #include "blimp/client/session/render_widget_feature.h" |
| 9 #include "blimp/client/session/tab_control_feature.h" | 9 #include "blimp/client/session/tab_control_feature.h" |
| 10 #include "ui/events/event.h" | 10 #include "ui/events/event.h" |
| 11 #include "ui/gfx/geometry/size.h" | 11 #include "ui/gfx/geometry/size.h" |
| 12 #include "ui/platform_window/platform_window.h" | 12 #include "ui/platform_window/platform_window.h" |
| 13 #include "ui/platform_window/x11/x11_window.h" | 13 #include "ui/platform_window/x11/x11_window.h" |
| 14 | 14 |
| 15 namespace blimp { | 15 namespace blimp { |
| 16 namespace client { |
| 16 | 17 |
| 17 BlimpDisplayManager::BlimpDisplayManager( | 18 BlimpDisplayManager::BlimpDisplayManager( |
| 18 const gfx::Size& window_size, | 19 const gfx::Size& window_size, |
| 19 BlimpDisplayManagerDelegate* delegate, | 20 BlimpDisplayManagerDelegate* delegate, |
| 20 RenderWidgetFeature* render_widget_feature, | 21 RenderWidgetFeature* render_widget_feature, |
| 21 TabControlFeature* tab_control_feature) | 22 TabControlFeature* tab_control_feature) |
| 22 : device_pixel_ratio_(1.f), | 23 : device_pixel_ratio_(1.f), |
| 23 delegate_(delegate), | 24 delegate_(delegate), |
| 24 tab_control_feature_(tab_control_feature), | 25 tab_control_feature_(tab_control_feature), |
| 25 blimp_compositor_(new BlimpCompositor(1.f, render_widget_feature)), | 26 blimp_compositor_(new BlimpCompositor(1.f, render_widget_feature)), |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 if (widget != gfx::kNullAcceleratedWidget) | 73 if (widget != gfx::kNullAcceleratedWidget) |
| 73 blimp_compositor_->SetAcceleratedWidget(widget); | 74 blimp_compositor_->SetAcceleratedWidget(widget); |
| 74 } | 75 } |
| 75 | 76 |
| 76 void BlimpDisplayManager::OnAcceleratedWidgetDestroyed() { | 77 void BlimpDisplayManager::OnAcceleratedWidgetDestroyed() { |
| 77 blimp_compositor_->ReleaseAcceleratedWidget(); | 78 blimp_compositor_->ReleaseAcceleratedWidget(); |
| 78 } | 79 } |
| 79 | 80 |
| 80 void BlimpDisplayManager::OnActivationChanged(bool active) {} | 81 void BlimpDisplayManager::OnActivationChanged(bool active) {} |
| 81 | 82 |
| 83 } // namespace client |
| 82 } // namespace blimp | 84 } // namespace blimp |
| OLD | NEW |