1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Constants for the event names sent to extensions. 6 7 #ifndef CHROME_BROWSER_EXTENSIONS_EVENT_NAMES_H_ 8 #define CHROME_BROWSER_EXTENSIONS_EVENT_NAMES_H_ 9 10 namespace extensions { 11 12 namespace event_names { 13 14 // Tabs. 15 extern const char kOnTabActivated[]; 16 extern const char kOnTabActiveChanged[]; 17 extern const char kOnTabAttached[]; 18 extern const char kOnTabCreated[]; 19 extern const char kOnTabDetached[]; 20 extern const char kOnTabHighlightChanged[]; 21 extern const char kOnTabHighlighted[]; 22 extern const char kOnTabMoved[]; 23 extern const char kOnTabRemoved[]; 24 extern const char kOnTabReplaced[]; 25 extern const char kOnTabSelectionChanged[]; 26 extern const char kOnTabUpdated[]; 27 28 // Windows. 29 extern const char kOnWindowCreated[]; 30 extern const char kOnWindowFocusedChanged[]; 31 extern const char kOnWindowRemoved[]; 32 33 // Management. 34 extern const char kOnExtensionInstalled[]; 35 extern const char kOnExtensionUninstalled[]; 36 extern const char kOnExtensionEnabled[]; 37 extern const char kOnExtensionDisabled[]; 38 39 // FileBrowser. 40 extern const char kOnDirectoryChanged[]; 41 extern const char kOnFileBrowserMountCompleted[]; 42 extern const char kOnFileTransfersUpdated[]; 43 extern const char kOnDocumentFeedFetched[]; 44 extern const char kOnFileBrowserPreferencesChanged[]; 45 extern const char kOnFileBrowserDriveConnectionStatusChanged[]; 46 47 // InputMethod. 48 extern const char kOnInputMethodChanged[]; 49 50 // Context menus. 51 extern const char kOnContextMenus[]; 52 extern const char kOnContextMenuClicked[]; 53 54 // DIAL. 55 extern const char kOnDialDeviceList[]; 56 extern const char kOnDialError[]; 57 58 // Downloads. 59 extern const char kOnDownloadCreated[]; 60 extern const char kOnDownloadChanged[]; 61 extern const char kOnDownloadErased[]; 62 extern const char kOnDownloadDeterminingFilename[]; 63 64 // Settings. 65 extern const char kOnSettingsChanged[]; 66 67 // TerminalPrivate. 68 extern const char kOnTerminalProcessOutput[]; 69 70 // OffscreenTabs. 71 extern const char kOnOffscreenTabUpdated[]; 72 73 // Tab content capture. 74 extern const char kOnTabCaptureStatusChanged[]; 75 76 // Bluetooth. 77 extern const char kBluetoothOnAdapterStateChanged[]; 78 extern const char kBluetoothOnConnection[]; 79 extern const char kBluetoothOnDeviceDiscovered[]; 80 extern const char kBluetoothOnDeviceSearchFinished[]; 81 extern const char kBluetoothOnDeviceSearchResult[]; 82 83 // Push messaging. 84 extern const char kOnPushMessage[]; 85 86 // systemInfo event names. 87 extern const char kOnDisplayChanged[]; 88 extern const char kOnStorageAvailableCapacityChanged[]; 89 extern const char kOnStorageAttached[]; 90 extern const char kOnStorageDetached[]; 91 92 // System Indicator icon. 93 extern const char kOnSystemIndicatorClicked[]; 94 95 // SyncFileSystem. 96 extern const char kOnServiceStatusChanged[]; 97 extern const char kOnFileStatusChanged[]; 98 99 // MediaGalleriesPrivate. 100 extern const char kOnAttachEventName[]; 101 extern const char kOnDetachEventName[]; 102 extern const char kOnGalleryChangedEventName[]; 103 104 // Notifications. 105 extern const char kOnNotificationDisplayed[]; 106 extern const char kOnNotificationError[]; 107 extern const char kOnNotificationClosed[]; 108 extern const char kOnNotificationClicked[]; 109 extern const char kOnNotificationButtonClicked[]; 110 111 // NetworkingPrivate 112 extern const char kOnNetworksChanged[]; 113 extern const char kOnNetworkListChanged[]; 114 115 // Audio 116 extern const char kOnAudioDeviceChanged[]; 117 118 // Runtime. 119 extern const char kOnLaunched[]; 120 extern const char kOnRestarted[]; 121 122 // FeedbackPrivate 123 extern const char kOnFeedbackRequested[]; 124 125 // DeveloperPrivate. 126 extern const char kDeveloperPrivateOnItemStateChanged[]; 127 128 // ImageWriter 129 extern const char kRecoveryOnWriteProgress[]; 130 extern const char kRecoveryOnWriteComplete[]; 131 extern const char kRecoveryOnWriteError[]; 132 133 } // namespace event_names 134 135 } // namespace extensions 136 137 #endif // CHROME_BROWSER_EXTENSIONS_EVENT_NAMES_H_ 138