Commit b3231908 authored by Yash Malik's avatar Yash Malik Committed by Commit Bot

Add gvr-android-keyboard to third_party/

This CL adds the header and .aidl file that Chrome needs to dynamically load the
Keyboard API implementation from the Daydream Keyboard apk.

Bug: 641470
Change-Id: Id47074cc0fdff786d0ab23dd0e43faabc0c2b023
Reviewed-on: https://chromium-review.googlesource.com/771537
Commit-Queue: Yash Malik <ymalik@chromium.org>
Reviewed-by: default avatarDavid Dorwin <ddorwin@chromium.org>
Reviewed-by: default avatarBiao She <bshe@chromium.org>
Reviewed-by: default avatarMax Moroz <mmoroz@chromium.org>
Reviewed-by: default avatarBrett Wilson <brettw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517235}
parent 05b79709
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
android_library("kb_java") {
deps = [
"//base:base_java",
]
srcjar_deps = [ ":aidl" ]
}
android_aidl("aidl") {
sources = [
"com/google/vr/keyboard/IGvrKeyboardLoader.aidl",
]
}
config("kb_config") {
include_dirs = [ "src/libraries/headers/" ]
}
This diff is collapsed.
ymalik@chromium.org
asimjour@chromium.org
# COMPONENT: UI>Browser>VR
Name: GVR Keyboard
Short Name: gvr-android-keyboard
URL: NA
Version: 0
Date: 2017-11-14
License: Apache 2.0
License File: LICENSE
Security Critical: yes
Description:
Chrome VR dynamically loads the keyboard API packaged as part of the GVR
keyboard APK. This directory includes the header for the API and the resources
needed to dynamically load the implementation. Note that the GVR keyboard isn't
uploaded to a public repository yet.
Local Modifications:
We added a dependency to gvr_types.h in third_party/gvr-android-sdk, which is
needed by gvr_header.h.
/* Copyright 2017 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.vr.keyboard;
/**
* @hide
* Provides loading of the GVR keyboard library.
*/
interface IGvrKeyboardLoader {
/**
* Attempts to load (dlopen) GVR keyboard library.
* <p>
* The library will be loaded only if a matching library can be found
* that is recent enough. If the library is out-of-date, or cannot be found,
* 0 will be returned.
*
* @param the version of the target library.
* @return the native handle to the library. 0 if the load fails.
*/
long loadGvrKeyboard(long version) = 1;
/**
* Closes a library (dlclose).
*
* @param nativeLibrary the native handle of the library to be closed.
*/
void closeGvrKeyboard(long nativeLibrary) = 2;
}
per-file *.aidl=set noparent
per-file *.aidl=file://ipc/SECURITY_OWNERS
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment