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

Unified Diff: headless/lib/browser/headless_browser_impl.cc

Issue 1991953002: Implement a runtime headless mode for Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/README.md ('k') | headless/lib/browser/headless_platform_event_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_browser_impl.cc
diff --git a/headless/lib/browser/headless_browser_impl.cc b/headless/lib/browser/headless_browser_impl.cc
index c1647257fd3e46fe2578c035204dac74c86e54bf..aad7e85f497a66e92cb19638d77ba7c8888413b9 100644
--- a/headless/lib/browser/headless_browser_impl.cc
+++ b/headless/lib/browser/headless_browser_impl.cc
@@ -19,9 +19,10 @@
#include "headless/lib/browser/headless_browser_main_parts.h"
#include "headless/lib/browser/headless_web_contents_impl.h"
#include "headless/lib/browser/headless_window_parenting_client.h"
+#include "headless/lib/browser/headless_window_tree_host.h"
#include "headless/lib/headless_content_main_delegate.h"
#include "ui/aura/env.h"
-#include "ui/aura/window_tree_host.h"
+#include "ui/events/devices/device_data_manager.h"
#include "ui/gfx/geometry/size.h"
namespace headless {
@@ -119,8 +120,10 @@ void HeadlessBrowserImpl::set_browser_main_parts(
void HeadlessBrowserImpl::RunOnStartCallback() {
DCHECK(aura::Env::GetInstance());
+ ui::DeviceDataManager::CreateInstance();
+
window_tree_host_.reset(
- aura::WindowTreeHost::Create(gfx::Rect(options()->window_size)));
+ new HeadlessWindowTreeHost(gfx::Rect(options()->window_size)));
window_tree_host_->InitHost();
window_parenting_client_.reset(
« no previous file with comments | « headless/README.md ('k') | headless/lib/browser/headless_platform_event_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698