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

Unified Diff: ash/host/ash_window_tree_host.h

Issue 1645503004: [exp] ash: sysui for mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ash-in-mus
Patch Set: . Created 4 years, 11 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
Index: ash/host/ash_window_tree_host.h
diff --git a/ash/host/ash_window_tree_host.h b/ash/host/ash_window_tree_host.h
index 54724aa5fcf9224d43fdba04e571375d7ff004b0..f53c18480c2ae299dfcfdcca73e6602ca3270203 100644
--- a/ash/host/ash_window_tree_host.h
+++ b/ash/host/ash_window_tree_host.h
@@ -6,6 +6,7 @@
#define ASH_HOST_ASH_WINDOW_TREE_HOST_H_
#include "ash/ash_export.h"
+#include "base/callback_forward.h"
#include "base/memory/scoped_ptr.h"
namespace aura {
@@ -31,12 +32,16 @@ class RootWindowTransformer;
class ASH_EXPORT AshWindowTreeHost {
public:
+ using Factory =
+ base::Callback<AshWindowTreeHost*(const AshWindowTreeHostInitParams&)>;
+
AshWindowTreeHost();
virtual ~AshWindowTreeHost() {}
// Creates a new AshWindowTreeHost. The caller owns the returned value.
static AshWindowTreeHost* Create(
const AshWindowTreeHostInitParams& init_params);
+ static void SetFactory(const Factory& factory);
sky 2016/02/03 22:43:48 This seems ick. Can't we create the create the rig
sadrul 2016/02/04 00:03:42 We cannot create the right one directly from the m
void set_input_method_handler(InputMethodEventHandler* input_method_handler) {
input_method_handler_ = input_method_handler;

Powered by Google App Engine
This is Rietveld 408576698