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

Unified Diff: mojo/shell/context.h

Issue 399663002: Have mojo_shell run in its custom thread on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 | « mojo/shell/android/mojo_main.cc ('k') | mojo/shell/context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/context.h
diff --git a/mojo/shell/context.h b/mojo/shell/context.h
index c643cd933171b2da2a3ce01798257794c2750eda..2173377bec78e9ec574c3bbeb05653ec02724297 100644
--- a/mojo/shell/context.h
+++ b/mojo/shell/context.h
@@ -38,6 +38,8 @@ class Context {
#if defined(OS_ANDROID)
jobject activity() const { return activity_.obj(); }
void set_activity(jobject activity) { activity_.Reset(NULL, activity); }
+ base::MessageLoop* ui_loop() const { return ui_loop_; }
+ void set_ui_loop(base::MessageLoop* ui_loop) { ui_loop_ = ui_loop; }
#endif // defined(OS_ANDROID)
private:
@@ -49,6 +51,7 @@ class Context {
scoped_ptr<Spy> spy_;
#if defined(OS_ANDROID)
base::android::ScopedJavaGlobalRef<jobject> activity_;
+ base::MessageLoop* ui_loop_;
#endif // defined(OS_ANDROID)
KeepAliveCounter keep_alive_counter_;
« no previous file with comments | « mojo/shell/android/mojo_main.cc ('k') | mojo/shell/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698