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

Side by Side Diff: base/message_pump_android.cc

Issue 10798010: Uses gyp "rules" rather than "actions" templates for the JNI generator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Typo on content_jni.gypi Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/base.gyp ('k') | build/jni_generator.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/message_pump_android.h" 5 #include "base/message_pump_android.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "jni/system_message_handler_jni.h" 14 #include "jni/SystemMessageHandler_jni.h"
15 15
16 using base::android::ScopedJavaLocalRef; 16 using base::android::ScopedJavaLocalRef;
17 17
18 namespace { 18 namespace {
19 19
20 base::LazyInstance<base::android::ScopedJavaGlobalRef<jobject> > 20 base::LazyInstance<base::android::ScopedJavaGlobalRef<jobject> >
21 g_system_message_handler_obj = LAZY_INSTANCE_INITIALIZER; 21 g_system_message_handler_obj = LAZY_INSTANCE_INITIALIZER;
22 22
23 } // namespace 23 } // namespace
24 24
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 Java_SystemMessageHandler_setDelayedTimer(env, 131 Java_SystemMessageHandler_setDelayedTimer(env,
132 g_system_message_handler_obj.Get().obj(), millis); 132 g_system_message_handler_obj.Get().obj(), millis);
133 } 133 }
134 134
135 // static 135 // static
136 bool MessagePumpForUI::RegisterBindings(JNIEnv* env) { 136 bool MessagePumpForUI::RegisterBindings(JNIEnv* env) {
137 return RegisterNativesImpl(env); 137 return RegisterNativesImpl(env);
138 } 138 }
139 139
140 } // namespace base 140 } // namespace base
OLDNEW
« no previous file with comments | « base/base.gyp ('k') | build/jni_generator.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698