Extension Support and UI Optimisation #151
pandey019
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Key Files and Changes
Browser Startup:
src/chrome/browser/chrome_browser_main.cc
Modifications are made to initialize the extension systems as part of Chromium's startup process.
void ChromeBrowserMainParts::PostBrowserStart()
Extensions-related services are initialized after the browser startup, including API hooks for extensions to interact with the Android environment. Here, a test extension is loaded from disk as part of the startup process.
Main Classes in Chromium Codebase:
JNI Wrapper and Java Part:
src/chrome/browser/extensions/extensions_android.cc
src/chrome/android/java/src/org/chromium/chrome/browser/extensions/Extensions.java
This file provides the Java interface to interact with Chrome extensions on Android. It facilitates communication between the native extension system and the Java components on Android.
src/chrome/android/java/src/org/chromium/chrome/browser/extensions/ExtensionsConfirmationDialog.java
This Java class handles UI dialogs for extension installation confirmation, using the Java interface to connect to native C++.
Extension Installation:
src/chrome/browser/download/chrome_download_manager_delegate.cc
This file was updated to check if a downloaded file is a
.crx
(Chrome extension) file, and if so, to handle its installation directly within Android Chromium.Wootz API:
src/chrome/common/extensions/api/wootz.json
src/chrome/browser/extensions/api/wootz/wootz_api.h
For now, the
chrome.wootz.info()
function is implemented, which provides detailed information about the device.Extending
chrome.wootz
API:The
chrome.wootz
API was extended to provide access to specific browser internals. A correspondingwootz.json
file defines the API, while the C++ implementation handles API requests from JavaScript. This allows extensions to interact with Android Chromium’s environment seamlessly.This discussion was created from the release Extension Support and UI Optimisation .
Beta Was this translation helpful? Give feedback.
All reactions