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