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

Side by Side Diff: blimp/client/core/contents/blimp_contents_view_android.cc

Issue 2279403003: blimp: Hook up the layer holding the tab content into Chrome. (Closed)
Patch Set: Addressed comments Created 4 years, 3 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 2016 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/core/contents/blimp_contents_view_android.h"
6
7 #include "base/memory/ptr_util.h"
8 #include "blimp/client/core/contents/android/blimp_contents_impl_android.h"
9 #include "cc/layers/layer.h"
10
11 namespace blimp {
12 namespace client {
13
14 // static
15 std::unique_ptr<BlimpContentsView> BlimpContentsView::Create(
16 BlimpContentsImpl* blimp_contents) {
17 return base::MakeUnique<BlimpContentsViewAndroid>(
18 blimp_contents->GetBlimpContentsImplAndroid());
19 }
20
21 BlimpContentsViewAndroid::BlimpContentsViewAndroid(
22 BlimpContentsImplAndroid* blimp_contents) {
23 // TODO(khushalsagar): Get the ViewAndroidDelegate from java after it has a
24 // BlimpView. Also get the WindowAndroid so this view can add itself as a
25 // child to it.
26 // TODO(dtrainor): Use the layer from the compositor manager here instead when
27 // it goes in the BlimpContents.
28 view_.SetLayer(cc::Layer::Create());
29 }
30
31 gfx::NativeView BlimpContentsViewAndroid::GetNativeView() {
32 return &view_;
33 }
34
35 } // namespace client
36 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/core/contents/blimp_contents_view_android.h ('k') | blimp/client/core/contents/blimp_contents_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698