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

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

Issue 2792883002: Revert of [headless] Use individual aura::WindowTreeHosts per WebContents. (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/BUILD.gn ('k') | headless/lib/browser/headless_browser_impl_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_browser_impl.h
diff --git a/headless/lib/browser/headless_browser_impl.h b/headless/lib/browser/headless_browser_impl.h
index 8f67953f92c9d9f8b386b5a8e5cf5d7a6264823d..d54ecfd77eacd65e9f32707b0568fee1fa44d4cf 100644
--- a/headless/lib/browser/headless_browser_impl.h
+++ b/headless/lib/browser/headless_browser_impl.h
@@ -17,6 +17,16 @@
#include "headless/lib/browser/headless_devtools_manager_delegate.h"
#include "headless/lib/browser/headless_web_contents_impl.h"
#include "headless/public/headless_export.h"
+
+#if defined(USE_AURA)
+#include "headless/lib/browser/headless_window_tree_host.h"
+
+namespace aura {
+namespace client {
+class FocusClient;
+}
+}
+#endif
namespace headless {
@@ -71,9 +81,17 @@
void PlatformInitialize();
void PlatformCreateWindow();
void PlatformInitializeWebContents(const gfx::Size& initial_size,
- HeadlessWebContentsImpl* web_contents);
+ content::WebContents* web_contents);
protected:
+#if defined(USE_AURA)
+ // TODO(eseckler): Currently one window and one window_tree_host
+ // is used for all web contents. We should probably use one
+ // window per web contents, but additional investigation is needed.
+ std::unique_ptr<HeadlessWindowTreeHost> window_tree_host_;
+ std::unique_ptr<aura::client::FocusClient> focus_client_;
+#endif
+
base::Callback<void(HeadlessBrowser*)> on_start_callback_;
HeadlessBrowser::Options options_;
HeadlessBrowserMainParts* browser_main_parts_; // Not owned.
« no previous file with comments | « headless/BUILD.gn ('k') | headless/lib/browser/headless_browser_impl_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698