// Copyright 2018 The Cobalt Authors. 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.

#include "starboard/window.h"

#include "starboard/android/shared/application_android.h"

#if SB_HAS(ON_SCREEN_KEYBOARD)
void SbWindowShowOnScreenKeyboard(SbWindow window,
                                  const char* input_text,
                                  int ticket) {
  starboard::android::shared::ApplicationAndroid::Get()
      ->SbWindowShowOnScreenKeyboard(window, input_text, ticket);
  return;
}
#endif  // SB_HAS(ON_SCREEN_KEYBOARD)
