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

Side by Side Diff: components/html_viewer/setup.h

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 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 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 #ifndef COMPONENTS_HTML_VIEWER_SETUP_H_ 5 #ifndef COMPONENTS_HTML_VIEWER_SETUP_H_
6 #define COMPONENTS_HTML_VIEWER_SETUP_H_ 6 #define COMPONENTS_HTML_VIEWER_SETUP_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 mojo::ApplicationImpl* app() const { return app_; } 52 mojo::ApplicationImpl* app() const { return app_; }
53 bool is_headless() const { return is_headless_; } 53 bool is_headless() const { return is_headless_; }
54 bool did_init() const { return did_init_; } 54 bool did_init() const { return did_init_; }
55 55
56 const gfx::Size& screen_size_in_pixels() const { 56 const gfx::Size& screen_size_in_pixels() const {
57 return screen_size_in_pixels_; 57 return screen_size_in_pixels_;
58 } 58 }
59 59
60 float device_pixel_ratio() const { return device_pixel_ratio_; } 60 float device_pixel_ratio() const { return device_pixel_ratio_; }
61 61
62 scoped_refptr<base::MessageLoopProxy> compositor_thread() { 62 scoped_refptr<base::SingleThreadTaskRunner> compositor_thread() {
63 return compositor_thread_.message_loop_proxy(); 63 return compositor_thread_.task_runner();
64 } 64 }
65 65
66 MediaFactory* media_factory() { return media_factory_.get(); } 66 MediaFactory* media_factory() { return media_factory_.get(); }
67 67
68 private: 68 private:
69 mojo::ApplicationImpl* app_; 69 mojo::ApplicationImpl* app_;
70 70
71 resource_provider::ResourceLoader resource_loader_; 71 resource_provider::ResourceLoader resource_loader_;
72 72
73 bool is_headless_; 73 bool is_headless_;
(...skipping 19 matching lines...) Expand all
93 scoped_ptr<BlinkPlatformImpl> blink_platform_; 93 scoped_ptr<BlinkPlatformImpl> blink_platform_;
94 base::Thread compositor_thread_; 94 base::Thread compositor_thread_;
95 scoped_ptr<MediaFactory> media_factory_; 95 scoped_ptr<MediaFactory> media_factory_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(Setup); 97 DISALLOW_COPY_AND_ASSIGN(Setup);
98 }; 98 };
99 99
100 } // namespace html_viewer 100 } // namespace html_viewer
101 101
102 #endif // COMPONENTS_HTML_VIEWER_SETUP_H_ 102 #endif // COMPONENTS_HTML_VIEWER_SETUP_H_
OLDNEW
« no previous file with comments | « components/html_viewer/media_factory.cc ('k') | components/html_viewer/web_layer_tree_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698