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

Side by Side Diff: chrome/browser/platform_util_android.cc

Issue 2688413007: Add display::GetDisplayNearestView (Closed)
Patch Set: add missing files Created 3 years, 10 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) 2012 The Chromium Authors. All rights reserved. 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 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 <jni.h> 5 #include <jni.h>
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/platform_util.h" 10 #include "chrome/browser/platform_util.h"
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 void OpenExternal(Profile* profile, const GURL& url) { 32 void OpenExternal(Profile* profile, const GURL& url) {
33 JNIEnv* env = base::android::AttachCurrentThread(); 33 JNIEnv* env = base::android::AttachCurrentThread();
34 ScopedJavaLocalRef<jstring> j_url = 34 ScopedJavaLocalRef<jstring> j_url =
35 base::android::ConvertUTF8ToJavaString(env, url.spec()); 35 base::android::ConvertUTF8ToJavaString(env, url.spec());
36 Java_PlatformUtil_launchExternalProtocol(env, j_url); 36 Java_PlatformUtil_launchExternalProtocol(env, j_url);
37 } 37 }
38 38
39 gfx::NativeWindow GetTopLevel(gfx::NativeView view) { 39 gfx::NativeWindow GetTopLevel(gfx::NativeView view) {
40 NOTIMPLEMENTED();
41 return view->GetWindowAndroid(); 40 return view->GetWindowAndroid();
42 } 41 }
43 42
44 gfx::NativeView GetParent(gfx::NativeView view) { 43 gfx::NativeView GetParent(gfx::NativeView view) {
45 NOTIMPLEMENTED(); 44 NOTIMPLEMENTED();
46 return view; 45 return view;
47 } 46 }
48 47
49 bool IsWindowActive(gfx::NativeWindow window) { 48 bool IsWindowActive(gfx::NativeWindow window) {
50 NOTIMPLEMENTED(); 49 NOTIMPLEMENTED();
51 return false; 50 return false;
52 } 51 }
53 52
54 void ActivateWindow(gfx::NativeWindow window) { 53 void ActivateWindow(gfx::NativeWindow window) {
55 NOTIMPLEMENTED(); 54 NOTIMPLEMENTED();
56 } 55 }
57 56
58 bool IsVisible(gfx::NativeView view) { 57 bool IsVisible(gfx::NativeView view) {
59 NOTIMPLEMENTED(); 58 NOTIMPLEMENTED();
60 return true; 59 return true;
61 } 60 }
62 61
63 } // namespace platform_util 62 } // namespace platform_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698