1 package com.android.browser.stub;
2 
3 import android.content.Intent;
4 import android.content.res.Configuration;
5 import android.os.Bundle;
6 import android.view.ActionMode;
7 import android.view.ContextMenu;
8 import android.view.KeyEvent;
9 import android.view.Menu;
10 import android.view.MenuItem;
11 import android.view.MotionEvent;
12 import android.view.View;
13 import android.view.ContextMenu.ContextMenuInfo;
14 
15 import com.android.browser.ActivityController;
16 
17 
18 public class NullController implements ActivityController {
19 
20     public static NullController INSTANCE = new NullController();
21 
NullController()22     private NullController() {}
23 
24     @Override
start(Intent intent)25     public void start(Intent intent) {
26     }
27 
28     @Override
onSaveInstanceState(Bundle outState)29     public void onSaveInstanceState(Bundle outState) {
30     }
31 
32     @Override
handleNewIntent(Intent intent)33     public void handleNewIntent(Intent intent) {
34     }
35 
36     @Override
onResume()37     public void onResume() {
38     }
39 
40     @Override
onMenuOpened(int featureId, Menu menu)41     public boolean onMenuOpened(int featureId, Menu menu) {
42         return false;
43     }
44 
45     @Override
onOptionsMenuClosed(Menu menu)46     public void onOptionsMenuClosed(Menu menu) {
47     }
48 
49     @Override
onContextMenuClosed(Menu menu)50     public void onContextMenuClosed(Menu menu) {
51     }
52 
53     @Override
onPause()54     public void onPause() {
55     }
56 
57     @Override
onDestroy()58     public void onDestroy() {
59     }
60 
61     @Override
onConfgurationChanged(Configuration newConfig)62     public void onConfgurationChanged(Configuration newConfig) {
63     }
64 
65     @Override
onLowMemory()66     public void onLowMemory() {
67     }
68 
69     @Override
onCreateOptionsMenu(Menu menu)70     public boolean onCreateOptionsMenu(Menu menu) {
71         return false;
72     }
73 
74     @Override
onPrepareOptionsMenu(Menu menu)75     public boolean onPrepareOptionsMenu(Menu menu) {
76         return false;
77     }
78 
79     @Override
onOptionsItemSelected(MenuItem item)80     public boolean onOptionsItemSelected(MenuItem item) {
81         return false;
82     }
83 
84     @Override
onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo)85     public void onCreateContextMenu(ContextMenu menu, View v,
86             ContextMenuInfo menuInfo) {
87 
88     }
89 
90     @Override
onContextItemSelected(MenuItem item)91     public boolean onContextItemSelected(MenuItem item) {
92         return false;
93     }
94 
95     @Override
onKeyDown(int keyCode, KeyEvent event)96     public boolean onKeyDown(int keyCode, KeyEvent event) {
97         return false;
98     }
99 
100     @Override
onKeyLongPress(int keyCode, KeyEvent event)101     public boolean onKeyLongPress(int keyCode, KeyEvent event) {
102         return false;
103     }
104 
105     @Override
onKeyUp(int keyCode, KeyEvent event)106     public boolean onKeyUp(int keyCode, KeyEvent event) {
107         return false;
108     }
109 
110     @Override
onActionModeStarted(ActionMode mode)111     public void onActionModeStarted(ActionMode mode) {
112     }
113 
114     @Override
onActionModeFinished(ActionMode mode)115     public void onActionModeFinished(ActionMode mode) {
116     }
117 
118     @Override
onActivityResult(int requestCode, int resultCode, Intent intent)119     public void onActivityResult(int requestCode, int resultCode, Intent intent) {
120     }
121 
122     @Override
onSearchRequested()123     public boolean onSearchRequested() {
124         return false;
125     }
126 
127     @Override
dispatchKeyEvent(KeyEvent event)128     public boolean dispatchKeyEvent(KeyEvent event) {
129         return false;
130     }
131 
132     @Override
dispatchKeyShortcutEvent(KeyEvent event)133     public boolean dispatchKeyShortcutEvent(KeyEvent event) {
134         return false;
135     }
136 
137     @Override
dispatchTouchEvent(MotionEvent ev)138     public boolean dispatchTouchEvent(MotionEvent ev) {
139         return false;
140     }
141 
142     @Override
dispatchTrackballEvent(MotionEvent ev)143     public boolean dispatchTrackballEvent(MotionEvent ev) {
144         return false;
145     }
146 
147     @Override
dispatchGenericMotionEvent(MotionEvent ev)148     public boolean dispatchGenericMotionEvent(MotionEvent ev) {
149         return false;
150     }
151 
152 }
153