OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_UI_ANDROID_TOOLBAR_TOOLBAR_MODEL_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_TOOLBAR_TOOLBAR_MODEL_ANDROID_H_ |
6 #define CHROME_BROWSER_UI_ANDROID_TOOLBAR_TOOLBAR_MODEL_ANDROID_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_TOOLBAR_TOOLBAR_MODEL_ANDROID_H_ |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/jni_weak_ref.h" | 9 #include "base/android/jni_weak_ref.h" |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 jobject obj); | 29 jobject obj); |
30 base::android::ScopedJavaLocalRef<jstring> GetQueryExtractionParam( | 30 base::android::ScopedJavaLocalRef<jstring> GetQueryExtractionParam( |
31 JNIEnv* env, | 31 JNIEnv* env, |
32 jobject obj); | 32 jobject obj); |
33 base::android::ScopedJavaLocalRef<jstring> GetCorpusChipText( | 33 base::android::ScopedJavaLocalRef<jstring> GetCorpusChipText( |
34 JNIEnv* env, | 34 JNIEnv* env, |
35 jobject obj); | 35 jobject obj); |
36 | 36 |
37 // ToolbarDelegate: | 37 // ToolbarDelegate: |
38 content::WebContents* GetActiveWebContents() const override; | 38 content::WebContents* GetActiveWebContents() const override; |
39 bool InTabbedBrowser() const override; | |
40 | 39 |
41 static bool RegisterToolbarModelAndroid(JNIEnv* env); | 40 static bool RegisterToolbarModelAndroid(JNIEnv* env); |
42 | 41 |
43 private: | 42 private: |
44 scoped_ptr<ToolbarModel> toolbar_model_; | 43 scoped_ptr<ToolbarModel> toolbar_model_; |
45 JavaObjectWeakGlobalRef weak_java_delegate_; | 44 JavaObjectWeakGlobalRef weak_java_delegate_; |
46 | 45 |
47 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelAndroid); | 46 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelAndroid); |
48 }; | 47 }; |
49 | 48 |
50 #endif // CHROME_BROWSER_UI_ANDROID_TOOLBAR_TOOLBAR_MODEL_ANDROID_H_ | 49 #endif // CHROME_BROWSER_UI_ANDROID_TOOLBAR_TOOLBAR_MODEL_ANDROID_H_ |
OLD | NEW |