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

Side by Side Diff: blimp/client/core/dummy_blimp_client_context.cc

Issue 2292723003: Move remaining Blimp feature code to core. (Closed)
Patch Set: Fix build break 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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/core/dummy_blimp_client_context.h" 5 #include "blimp/client/core/dummy_blimp_client_context.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "blimp/client/public/compositor/compositor_dependencies.h"
10 11
11 #if defined(OS_ANDROID) 12 #if defined(OS_ANDROID)
12 #include "blimp/client/core/android/dummy_blimp_client_context_android.h" 13 #include "blimp/client/core/android/dummy_blimp_client_context_android.h"
13 #endif // OS_ANDROID 14 #endif // OS_ANDROID
14 15
15 namespace blimp { 16 namespace blimp {
16 namespace client { 17 namespace client {
17 18
18 // This function is declared in //blimp/client/public/blimp_client_context.h, 19 // This function is declared in //blimp/client/public/blimp_client_context.h,
19 // and either this function or the one in 20 // and either this function or the one in
20 // //blimp/client/core/blimp_client_context_impl.cc should be linked in to 21 // //blimp/client/core/blimp_client_context_impl.cc should be linked in to
21 // any binary using BlimpClientContext::Create. 22 // any binary using BlimpClientContext::Create.
22 // static 23 // static
23 BlimpClientContext* BlimpClientContext::Create( 24 BlimpClientContext* BlimpClientContext::Create(
24 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner, 25 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner,
25 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner) { 26 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner,
27 std::unique_ptr<CompositorDependencies> compositor_dependencies) {
26 #if defined(OS_ANDROID) 28 #if defined(OS_ANDROID)
27 return new DummyBlimpClientContextAndroid(); 29 return new DummyBlimpClientContextAndroid();
28 #else 30 #else
29 return new DummyBlimpClientContext(); 31 return new DummyBlimpClientContext();
30 #endif // defined(OS_ANDROID) 32 #endif // defined(OS_ANDROID)
31 } 33 }
32 34
33 DummyBlimpClientContext::DummyBlimpClientContext() : BlimpClientContext() {} 35 DummyBlimpClientContext::DummyBlimpClientContext() : BlimpClientContext() {}
34 36
35 DummyBlimpClientContext::~DummyBlimpClientContext() {} 37 DummyBlimpClientContext::~DummyBlimpClientContext() {}
36 38
37 void DummyBlimpClientContext::SetDelegate( 39 void DummyBlimpClientContext::SetDelegate(
38 BlimpClientContextDelegate* delegate) {} 40 BlimpClientContextDelegate* delegate) {}
39 41
40 std::unique_ptr<BlimpContents> DummyBlimpClientContext::CreateBlimpContents() { 42 std::unique_ptr<BlimpContents> DummyBlimpClientContext::CreateBlimpContents() {
41 return nullptr; 43 return nullptr;
42 } 44 }
43 45
44 void DummyBlimpClientContext::Connect() { 46 void DummyBlimpClientContext::Connect() {
45 NOTREACHED(); 47 NOTREACHED();
46 } 48 }
47 49
48 } // namespace client 50 } // namespace client
49 } // namespace blimp 51 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/core/contents/blimp_contents_view_aura.cc ('k') | blimp/client/core/input/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698