| 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 431 |
| 432 bool WebContentsDelegateAndroid::RequestAppBanner( | 432 void WebContentsDelegateAndroid::RequestAppBannerFromDevTools( |
| 433 content::WebContents* web_contents) { | 433 content::WebContents* web_contents) { |
| 434 return false; | |
| 435 } | 434 } |
| 436 | 435 |
| 437 // ---------------------------------------------------------------------------- | 436 // ---------------------------------------------------------------------------- |
| 438 // Native JNI methods | 437 // Native JNI methods |
| 439 // ---------------------------------------------------------------------------- | 438 // ---------------------------------------------------------------------------- |
| 440 | 439 |
| 441 // Register native methods | 440 // Register native methods |
| 442 | 441 |
| 443 bool RegisterWebContentsDelegateAndroid(JNIEnv* env) { | 442 bool RegisterWebContentsDelegateAndroid(JNIEnv* env) { |
| 444 return RegisterNativesImpl(env); | 443 return RegisterNativesImpl(env); |
| 445 } | 444 } |
| 446 | 445 |
| 447 } // namespace web_contents_delegate_android | 446 } // namespace web_contents_delegate_android |
| OLD | NEW |