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

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

Issue 1159113006: [Android] A prototype of the interactive media notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added browser tests Created 5 years, 6 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 WebContents* web_contents, 430 WebContents* web_contents,
431 const gfx::Rect& anchor_in_root_view) { 431 const gfx::Rect& anchor_in_root_view) {
432 if (!validation_message_bubble_) 432 if (!validation_message_bubble_)
433 return; 433 return;
434 RenderWidgetHostView* rwhv = web_contents->GetRenderWidgetHostView(); 434 RenderWidgetHostView* rwhv = web_contents->GetRenderWidgetHostView();
435 if (rwhv) { 435 if (rwhv) {
436 validation_message_bubble_->SetPositionRelativeToAnchor( 436 validation_message_bubble_->SetPositionRelativeToAnchor(
437 rwhv->GetRenderWidgetHost(), anchor_in_root_view); 437 rwhv->GetRenderWidgetHost(), anchor_in_root_view);
438 } 438 }
439 } 439 }
440
mlamouri (slow - plz ping) 2015/06/18 16:43:22 nit: maybe one less file to change? :)
440 // ---------------------------------------------------------------------------- 441 // ----------------------------------------------------------------------------
441 // Native JNI methods 442 // Native JNI methods
442 // ---------------------------------------------------------------------------- 443 // ----------------------------------------------------------------------------
443 444
444 // Register native methods 445 // Register native methods
445 446
446 bool RegisterWebContentsDelegateAndroid(JNIEnv* env) { 447 bool RegisterWebContentsDelegateAndroid(JNIEnv* env) {
447 return RegisterNativesImpl(env); 448 return RegisterNativesImpl(env);
448 } 449 }
449 450
450 } // namespace web_contents_delegate_android 451 } // namespace web_contents_delegate_android
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698