OLD | NEW |
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 "components/web_contents_delegate_android/web_contents_delegate_android
.h" | 5 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" |
6 | 6 |
7 #include <android/keycodes.h> | 7 #include <android/keycodes.h> |
8 | 8 |
9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
10 #include "base/android/jni_array.h" | 10 #include "base/android/jni_array.h" |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 WebContents* web_contents, | 421 WebContents* web_contents, |
422 const gfx::Rect& anchor_in_root_view) { | 422 const gfx::Rect& anchor_in_root_view) { |
423 if (!validation_message_bubble_) | 423 if (!validation_message_bubble_) |
424 return; | 424 return; |
425 RenderWidgetHostView* rwhv = web_contents->GetRenderWidgetHostView(); | 425 RenderWidgetHostView* rwhv = web_contents->GetRenderWidgetHostView(); |
426 if (rwhv) { | 426 if (rwhv) { |
427 validation_message_bubble_->SetPositionRelativeToAnchor( | 427 validation_message_bubble_->SetPositionRelativeToAnchor( |
428 rwhv->GetRenderWidgetHost(), anchor_in_root_view); | 428 rwhv->GetRenderWidgetHost(), anchor_in_root_view); |
429 } | 429 } |
430 } | 430 } |
| 431 |
| 432 bool WebContentsDelegateAndroid::RequestAppBanner( |
| 433 content::WebContents* web_contents) { |
| 434 return false; |
| 435 } |
| 436 |
431 // ---------------------------------------------------------------------------- | 437 // ---------------------------------------------------------------------------- |
432 // Native JNI methods | 438 // Native JNI methods |
433 // ---------------------------------------------------------------------------- | 439 // ---------------------------------------------------------------------------- |
434 | 440 |
435 // Register native methods | 441 // Register native methods |
436 | 442 |
437 bool RegisterWebContentsDelegateAndroid(JNIEnv* env) { | 443 bool RegisterWebContentsDelegateAndroid(JNIEnv* env) { |
438 return RegisterNativesImpl(env); | 444 return RegisterNativesImpl(env); |
439 } | 445 } |
440 | 446 |
441 } // namespace web_contents_delegate_android | 447 } // namespace web_contents_delegate_android |
OLD | NEW |