1 /* 2 * Copyright (C) 2013 Google Inc. 3 * Licensed to The Android Open Source Project. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 package com.android.mail.ui; 19 20 import android.app.Fragment; 21 import android.net.Uri; 22 import android.os.Handler; 23 24 import com.android.mail.ContactInfoSource; 25 import com.android.mail.browse.ConversationAccountController; 26 import com.android.mail.browse.ConversationViewHeader; 27 import com.android.mail.browse.MessageHeaderView; 28 import com.android.mail.providers.Address; 29 30 import java.util.Map; 31 32 /** 33 * Callbacks for fragments that use the {@link SecureConversationViewController}. 34 */ 35 public interface SecureConversationViewControllerCallbacks { getHandler()36 public Handler getHandler(); getWebViewClient()37 public AbstractConversationWebViewClient getWebViewClient(); getFragment()38 public Fragment getFragment(); setupConversationHeaderView(ConversationViewHeader headerView)39 public void setupConversationHeaderView(ConversationViewHeader headerView); isViewVisibleToUser()40 public boolean isViewVisibleToUser(); getContactInfoSource()41 public ContactInfoSource getContactInfoSource(); getConversationAccountController()42 public ConversationAccountController getConversationAccountController(); getAddressCache()43 public Map<String, Address> getAddressCache(); setupMessageHeaderVeiledMatcher(MessageHeaderView messageHeaderView)44 public void setupMessageHeaderVeiledMatcher(MessageHeaderView messageHeaderView); startMessageLoader()45 public void startMessageLoader(); getBaseUri()46 public String getBaseUri(); isViewOnlyMode()47 public boolean isViewOnlyMode(); getAccountUri()48 public Uri getAccountUri(); 49 } 50