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

Side by Side Diff: components/web_contents_delegate_android/web_contents_delegate_android.cc

Issue 1836943002: DevTools: request app banner from DevTools without #enable-add-to-shelf flag while emulating. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698