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

Unified Diff: ui/aura/env.h

Issue 296053009: Makes Env contain a ContextFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: foo Created 6 years, 7 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 | « ui/aura/demo/demo_main.cc ('k') | ui/aura/env.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/env.h
diff --git a/ui/aura/env.h b/ui/aura/env.h
index 98182137057a21f633903f135da5aec5d1970533..fc83ac86c73c0cf24de4c098a778946dd64dcdcf 100644
--- a/ui/aura/env.h
+++ b/ui/aura/env.h
@@ -13,6 +13,7 @@
#include "ui/gfx/point.h"
namespace ui {
+class ContextFactory;
class PlatformEventSource;
}
namespace aura {
@@ -59,6 +60,11 @@ class AURA_EXPORT Env : public ui::EventTarget {
bool is_touch_down() const { return is_touch_down_; }
void set_touch_down(bool value) { is_touch_down_ = value; }
+ void set_context_factory(ui::ContextFactory* context_factory) {
+ context_factory_ = context_factory;
+ }
+ ui::ContextFactory* context_factory() { return context_factory_; }
+
private:
friend class test::EnvTestHelper;
friend class Window;
@@ -95,6 +101,8 @@ class AURA_EXPORT Env : public ui::EventTarget {
scoped_ptr<InputStateLookup> input_state_lookup_;
scoped_ptr<ui::PlatformEventSource> event_source_;
+ ui::ContextFactory* context_factory_;
+
DISALLOW_COPY_AND_ASSIGN(Env);
};
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/env.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698