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

Side by Side Diff: blimp/client/linux/blimp_display_manager.cc

Issue 1570943002: [Blimp client] Move client code into blimp::client namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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
« no previous file with comments | « blimp/client/linux/blimp_display_manager.h ('k') | blimp/client/linux/blimp_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « blimp/client/linux/blimp_display_manager.h ('k') | blimp/client/linux/blimp_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698