blob: ac248b8d8fa78cd7c526c70cc6321b48f2a27559 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
package com.android.browser;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.ActionMode;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
public interface ActivityController {
void start(Intent intent);
void onSaveInstanceState(Bundle outState);
void handleNewIntent(Intent intent);
void onResume();
boolean onMenuOpened(int featureId, Menu menu);
void onOptionsMenuClosed(Menu menu);
void onContextMenuClosed(Menu menu);
void onPause();
void onDestroy();
void onConfgurationChanged(Configuration newConfig);
void onLowMemory();
boolean onCreateOptionsMenu(Menu menu);
boolean onPrepareOptionsMenu(Menu menu);
boolean onOptionsItemSelected(MenuItem item);
void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo);
boolean onContextItemSelected(MenuItem item);
boolean onKeyDown(int keyCode, KeyEvent event);
boolean onKeyLongPress(int keyCode, KeyEvent event);
boolean onKeyUp(int keyCode, KeyEvent event);
void onActionModeStarted(ActionMode mode);
void onActionModeFinished(ActionMode mode);
void onActivityResult(int requestCode, int resultCode, Intent intent);
boolean onSearchRequested();
boolean dispatchKeyEvent(KeyEvent event);
boolean dispatchKeyShortcutEvent(KeyEvent event);
boolean dispatchTouchEvent(MotionEvent ev);
boolean dispatchTrackballEvent(MotionEvent ev);
boolean dispatchGenericMotionEvent(MotionEvent ev);
}
|