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

Side by Side Diff: chrome/browser/ui/android/infobars/infobar_container_android.cc

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix components/OWNERS Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/ui/android/infobars/infobar_container_android.h" 5 #include "chrome/browser/ui/android/infobars/infobar_container_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "chrome/browser/infobars/infobar.h"
11 #include "chrome/browser/infobars/infobar_delegate.h"
12 #include "chrome/browser/infobars/infobar_service.h" 10 #include "chrome/browser/infobars/infobar_service.h"
13 #include "chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android .h" 11 #include "chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android .h"
14 #include "chrome/browser/ui/android/infobars/infobar_android.h" 12 #include "chrome/browser/ui/android/infobars/infobar_android.h"
13 #include "components/infobars/core/infobar.h"
14 #include "components/infobars/core/infobar_delegate.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "jni/InfoBarContainer_jni.h" 16 #include "jni/InfoBarContainer_jni.h"
17 17
18 18
19 // InfoBarContainerAndroid ---------------------------------------------------- 19 // InfoBarContainerAndroid ----------------------------------------------------
20 20
21 InfoBarContainerAndroid::InfoBarContainerAndroid(JNIEnv* env, 21 InfoBarContainerAndroid::InfoBarContainerAndroid(JNIEnv* env,
22 jobject obj, 22 jobject obj,
23 jobject auto_login_delegate) 23 jobject auto_login_delegate)
24 : InfoBarContainer(NULL), 24 : InfoBarContainer(NULL),
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 new InfoBarContainerAndroid(env, obj, auto_login_delegate); 92 new InfoBarContainerAndroid(env, obj, auto_login_delegate);
93 InfoBarService* infobar_service = InfoBarService::FromWebContents( 93 InfoBarService* infobar_service = InfoBarService::FromWebContents(
94 content::WebContents::FromJavaWebContents(web_contents)); 94 content::WebContents::FromJavaWebContents(web_contents));
95 infobar_container->ChangeInfoBarManager(infobar_service); 95 infobar_container->ChangeInfoBarManager(infobar_service);
96 return reinterpret_cast<intptr_t>(infobar_container); 96 return reinterpret_cast<intptr_t>(infobar_container);
97 } 97 }
98 98
99 bool RegisterInfoBarContainer(JNIEnv* env) { 99 bool RegisterInfoBarContainer(JNIEnv* env) {
100 return RegisterNativesImpl(env); 100 return RegisterNativesImpl(env);
101 } 101 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698