[M85 Dev][EFL] Fix errors to generate ninja files
[platform/framework/web/chromium-efl.git] / chrome / browser / platform_util_android.cc
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
3 // found in the LICENSE file.
4
5 #include <jni.h>
6
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h"
9 #include "base/notreached.h"
10 #include "chrome/browser/platform_util.h"
11 #include "chrome/browser/util/jni_headers/PlatformUtil_jni.h"
12 #include "ui/android/view_android.h"
13 #include "url/gurl.h"
14
15 using base::android::ScopedJavaLocalRef;
16
17 namespace platform_util {
18
19 // TODO: crbug/115682 to track implementation of the following methods.
20
21 void ShowItemInFolder(Profile* profile, const base::FilePath& full_path) {
22   NOTIMPLEMENTED();
23 }
24
25 void OpenItem(Profile* profile,
26               const base::FilePath& full_path,
27               OpenItemType item_type,
28               const OpenOperationCallback& callback) {
29   NOTIMPLEMENTED();
30 }
31
32 void OpenExternal(Profile* profile, const GURL& url) {
33   JNIEnv* env = base::android::AttachCurrentThread();
34   ScopedJavaLocalRef<jstring> j_url =
35       base::android::ConvertUTF8ToJavaString(env, url.spec());
36   Java_PlatformUtil_launchExternalProtocol(env, j_url);
37 }
38
39 gfx::NativeWindow GetTopLevel(gfx::NativeView view) {
40   NOTIMPLEMENTED();
41   return view->GetWindowAndroid();
42 }
43
44 gfx::NativeView GetParent(gfx::NativeView view) {
45   NOTIMPLEMENTED();
46   return view;
47 }
48
49 bool IsWindowActive(gfx::NativeWindow window) {
50   NOTIMPLEMENTED();
51   return false;
52 }
53
54 void ActivateWindow(gfx::NativeWindow window) {
55   NOTIMPLEMENTED();
56 }
57
58 bool IsVisible(gfx::NativeView view) {
59   NOTIMPLEMENTED();
60   return true;
61 }
62
63 } // namespace platform_util