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