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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 // -------------------------------------------------------------------------- | 54 // -------------------------------------------------------------------------- |
55 // Public methods that call to Java via JNI | 55 // Public methods that call to Java via JNI |
56 // -------------------------------------------------------------------------- | 56 // -------------------------------------------------------------------------- |
57 // Called when context menu option to create the bookmark shortcut on | 57 // Called when context menu option to create the bookmark shortcut on |
58 // homescreen is called. | 58 // homescreen is called. |
59 virtual void AddShortcutToBookmark( | 59 virtual void AddShortcutToBookmark( |
60 const GURL& url, const string16& title, const SkBitmap& skbitmap, | 60 const GURL& url, const string16& title, const SkBitmap& skbitmap, |
61 int r_value, int g_value, int b_value) = 0; | 61 int r_value, int g_value, int b_value) = 0; |
62 | 62 |
63 // TODO(felipeg,tedchoc): Remove this when possible. | |
64 // http://crbug.com/138216 | |
65 // Called when the mobile promo action asks to send email. | |
66 virtual void PromoSendEmail(const string16& data_email, | |
67 const string16& data_subj, | |
68 const string16& data_body, | |
69 const string16& data_inv) = 0; | |
70 | |
71 protected: | 63 protected: |
72 virtual ~TabAndroid(); | 64 virtual ~TabAndroid(); |
73 | 65 |
74 int tab_id_; | 66 int tab_id_; |
75 }; | 67 }; |
76 | 68 |
77 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 69 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
OLD | NEW |