OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_ |
| 7 |
| 8 #include <jni.h> |
| 9 |
| 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "base/basictypes.h" |
| 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/ui/website_settings/website_settings_ui.h" |
| 14 |
| 15 namespace content { |
| 16 class WebContents; |
| 17 } |
| 18 |
| 19 // Androidimplementation of the website settings UI. |
| 20 class WebsiteSettingsPopupAndroid : public WebsiteSettingsUI { |
| 21 public: |
| 22 static void Show(JNIEnv* env, |
| 23 jobject context, |
| 24 jobject java_content_view, |
| 25 content::WebContents* web_contents); |
| 26 |
| 27 virtual ~WebsiteSettingsPopupAndroid(); |
| 28 void Destroy(JNIEnv* env, jobject obj); |
| 29 |
| 30 // WebsiteSettingsUI implementations. |
| 31 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) OVERRIDE; |
| 32 virtual void SetPermissionInfo( |
| 33 const PermissionInfoList& permission_info_list) OVERRIDE; |
| 34 virtual void SetIdentityInfo(const IdentityInfo& identity_info) OVERRIDE; |
| 35 virtual void SetFirstVisit(const string16& first_visit) OVERRIDE; |
| 36 virtual void SetSelectedTab(WebsiteSettingsUI::TabId tab_id) OVERRIDE; |
| 37 |
| 38 static bool RegisterWebsiteSettingsPopupAndroid(JNIEnv* env); |
| 39 |
| 40 private: |
| 41 WebsiteSettingsPopupAndroid(JNIEnv* env, |
| 42 jobject context, |
| 43 jobject java_content_view, |
| 44 content::WebContents* web_contents); |
| 45 |
| 46 // The presenter that controlls the Website Settings UI. |
| 47 scoped_ptr<WebsiteSettings> presenter_; |
| 48 |
| 49 // The java prompt implementation. |
| 50 base::android::ScopedJavaGlobalRef<jobject> popup_jobject_; |
| 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupAndroid); |
| 53 }; |
| 54 |
| 55 #endif // CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_ |
OLD | NEW |