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 #ifndef CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
6 #define CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/jni_helper.h" | 10 #include "base/android/jni_helper.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 const string16& realm) = 0; | 45 const string16& realm) = 0; |
46 | 46 |
47 // Called to show the regular context menu that is triggered by a long press. | 47 // Called to show the regular context menu that is triggered by a long press. |
48 virtual void ShowContextMenu(const content::ContextMenuParams& params) = 0; | 48 virtual void ShowContextMenu(const content::ContextMenuParams& params) = 0; |
49 | 49 |
50 // Called to show a custom context menu. Used by the NTP. | 50 // Called to show a custom context menu. Used by the NTP. |
51 virtual void ShowCustomContextMenu( | 51 virtual void ShowCustomContextMenu( |
52 const content::ContextMenuParams& params, | 52 const content::ContextMenuParams& params, |
53 const base::Callback<void(int)>& callback) = 0; | 53 const base::Callback<void(int)>& callback) = 0; |
54 | 54 |
55 virtual void ShowSelectFileDialog( | |
56 const base::android::ScopedJavaLocalRef<jobject>& select_file) = 0; | |
57 | |
58 // -------------------------------------------------------------------------- | 55 // -------------------------------------------------------------------------- |
59 // Public methods that call to Java via JNI | 56 // Public methods that call to Java via JNI |
60 // -------------------------------------------------------------------------- | 57 // -------------------------------------------------------------------------- |
61 // Called when context menu option to create the bookmark shortcut on | 58 // Called when context menu option to create the bookmark shortcut on |
62 // homescreen is called. | 59 // homescreen is called. |
63 virtual void AddShortcutToBookmark( | 60 virtual void AddShortcutToBookmark( |
64 const GURL& url, const string16& title, const SkBitmap& skbitmap, | 61 const GURL& url, const string16& title, const SkBitmap& skbitmap, |
65 int r_value, int g_value, int b_value) = 0; | 62 int r_value, int g_value, int b_value) = 0; |
66 | 63 |
67 protected: | 64 protected: |
68 virtual ~TabAndroid(); | 65 virtual ~TabAndroid(); |
69 | 66 |
70 int tab_id_; | 67 int tab_id_; |
71 }; | 68 }; |
72 | 69 |
73 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 70 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
OLD | NEW |