blob: 14261320adc809708a393627572807d53ae18332 [file] [log] [blame]
Michael Kolb8233fac2010-10-26 16:08:53 -07001/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.browser;
18
19import android.content.Intent;
20import android.webkit.WebView;
21
22
23/**
24 * UI aspect of the controller
25 */
26public interface UiController extends BookmarksHistoryCallbacks {
27
28 UI getUi();
29
30 WebView getCurrentWebView();
31
32 WebView getCurrentTopWebView();
33
34 TabControl getTabControl();
35
36 Tab openTabToHomePage();
37
38 Tab openIncognitoTab();
39
40 boolean switchToTab(int tabIndex);
41
42 void closeCurrentTab();
43
44 void closeTab(Tab tab);
45
46 void stopLoading();
47
48 void bookmarkCurrentPage(long folderId);
49
50 void bookmarksOrHistoryPicker(boolean openHistory);
51
52 void showVoiceSearchResults(String title);
53
54 void editUrl();
55
56 void removeActiveTabsPage(boolean attach);
57
58 void handleNewIntent(Intent intent);
59
60 boolean shouldShowErrorConsole();
61
62 void removeComboView();
63
64 void hideCustomView();
65
66 void attachSubWindow(Tab tab);
67
68 void removeSubWindow(Tab tab);
69
70 boolean isInCustomActionMode();
71
72 void endActionMode();
73
74}