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

Side by Side Diff: ui/gl/android/surface_texture_listener.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "ui/gl/android/surface_texture_listener.h" 5 #include "ui/gl/android/surface_texture_listener.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "jni/SurfaceTextureListener_jni.h" 10 #include "jni/SurfaceTextureListener_jni.h"
11 11
12 using base::android::JavaParamRef;
13
12 namespace gl { 14 namespace gl {
13 15
14 SurfaceTextureListener::SurfaceTextureListener(const base::Closure& callback, 16 SurfaceTextureListener::SurfaceTextureListener(const base::Closure& callback,
15 bool use_any_thread) 17 bool use_any_thread)
16 : callback_(callback), 18 : callback_(callback),
17 browser_loop_(base::ThreadTaskRunnerHandle::Get()), 19 browser_loop_(base::ThreadTaskRunnerHandle::Get()),
18 use_any_thread_(use_any_thread) {} 20 use_any_thread_(use_any_thread) {}
19 21
20 SurfaceTextureListener::~SurfaceTextureListener() { 22 SurfaceTextureListener::~SurfaceTextureListener() {
21 } 23 }
(...skipping 13 matching lines...) Expand all
35 callback_.Run(); 37 callback_.Run();
36 } 38 }
37 } 39 }
38 40
39 // static 41 // static
40 bool SurfaceTextureListener::RegisterSurfaceTextureListener(JNIEnv* env) { 42 bool SurfaceTextureListener::RegisterSurfaceTextureListener(JNIEnv* env) {
41 return RegisterNativesImpl(env); 43 return RegisterNativesImpl(env);
42 } 44 }
43 45
44 } // namespace gl 46 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/android/scoped_java_surface.cc ('k') | ui/platform_window/android/platform_ime_controller_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698