OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MOJO_SERVICES_NATIVE_VIEWPORT_CONTEXT_H_ |
| 6 #define MOJO_SERVICES_NATIVE_VIEWPORT_CONTEXT_H_ |
| 7 |
| 8 #include "build/build_config.h" |
| 9 |
| 10 #if defined(OS_ANDROID) |
| 11 #include "base/android/scoped_java_ref.h" |
| 12 #endif // defined(OS_ANDROID) |
| 13 |
| 14 namespace mojo { |
| 15 namespace services { |
| 16 |
| 17 // Class used by native_viewport to provide the activity (on Android). |
| 18 class NativeViewportContext { |
| 19 public: |
| 20 #if defined(OS_ANDROID) |
| 21 virtual jobject GetActivity() = 0; |
| 22 #endif // defined(OS_ANDROID) |
| 23 }; |
| 24 |
| 25 } // namespace services |
| 26 } // namespace mojo |
| 27 |
| 28 #endif // MOJO_SERVICES_NATIVE_VIEWPORT_CONTEXT_H_ |
OLD | NEW |