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" | |
11 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
12 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
13 #include "base/string16.h" | 12 #include "base/string16.h" |
14 | 13 |
15 class GURL; | 14 class GURL; |
16 class SkBitmap; | 15 class SkBitmap; |
17 class TabContents; | 16 class TabContents; |
18 | 17 |
19 namespace browser_sync { | 18 namespace browser_sync { |
20 class SyncedTabDelegate; | 19 class SyncedTabDelegate; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 virtual void ShowCustomContextMenu( | 59 virtual void ShowCustomContextMenu( |
61 const content::ContextMenuParams& params, | 60 const content::ContextMenuParams& params, |
62 const base::Callback<void(int)>& callback) = 0; | 61 const base::Callback<void(int)>& callback) = 0; |
63 | 62 |
64 // Called when context menu option to create the bookmark shortcut on | 63 // Called when context menu option to create the bookmark shortcut on |
65 // homescreen is called. | 64 // homescreen is called. |
66 virtual void AddShortcutToBookmark( | 65 virtual void AddShortcutToBookmark( |
67 const GURL& url, const string16& title, const SkBitmap& skbitmap, | 66 const GURL& url, const string16& title, const SkBitmap& skbitmap, |
68 int r_value, int g_value, int b_value) = 0; | 67 int r_value, int g_value, int b_value) = 0; |
69 | 68 |
69 // Called when the common ExternalProtocolHandler wants to | |
70 // run the external protocol dialog. | |
Ted C
2012/10/16 22:58:15
is run the right word here? is display/show bette
newt (away)
2012/10/16 23:19:42
This is the function name used elsewhere, e.g. ext
Ted C
2012/10/16 23:25:10
Sigh...I guess it's better to be consistent.
| |
71 virtual void RunExternalProtocolDialog(const GURL& url) = 0; | |
72 | |
70 protected: | 73 protected: |
71 virtual ~TabAndroid(); | 74 virtual ~TabAndroid(); |
72 | 75 |
73 int tab_id_; | 76 int tab_id_; |
74 }; | 77 }; |
75 | 78 |
76 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 79 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
OLD | NEW |