blob: 149fe4efbbd845d02ff49d91e480384121491d4e (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
package com.android.browser.stub;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.ActionMode;
import android.view.ContextMenu;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.ContextMenu.ContextMenuInfo;
import com.android.browser.ActivityController;
public class NullController implements ActivityController {
public static NullController INSTANCE = new NullController();
private NullController() {}
@Override
public void start(Intent intent) {
}
@Override
public void onSaveInstanceState(Bundle outState) {
}
@Override
public void handleNewIntent(Intent intent) {
}
@Override
public void onResume() {
}
@Override
public boolean onMenuOpened(int featureId, Menu menu) {
return false;
}
@Override
public void onOptionsMenuClosed(Menu menu) {
}
@Override
public void onContextMenuClosed(Menu menu) {
}
@Override
public void onPause() {
}
@Override
public void onDestroy() {
}
@Override
public void onConfgurationChanged(Configuration newConfig) {
}
@Override
public void onLowMemory() {
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
return false;
}
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
return false;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
return false;
}
@Override
public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenuInfo menuInfo) {
}
@Override
public boolean onContextItemSelected(MenuItem item) {
return false;
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
return false;
}
@Override
public boolean onKeyLongPress(int keyCode, KeyEvent event) {
return false;
}
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
return false;
}
@Override
public void onActionModeStarted(ActionMode mode) {
}
@Override
public void onActionModeFinished(ActionMode mode) {
}
@Override
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
}
@Override
public boolean onSearchRequested() {
return false;
}
@Override
public boolean dispatchKeyEvent(KeyEvent event) {
return false;
}
@Override
public boolean dispatchKeyShortcutEvent(KeyEvent event) {
return false;
}
@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
return false;
}
@Override
public boolean dispatchTrackballEvent(MotionEvent ev) {
return false;
}
@Override
public boolean dispatchGenericMotionEvent(MotionEvent ev) {
return false;
}
}
|