2000-08-04 01:32:54 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code is RaptorCanvas.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Kirk Baker and
|
|
|
|
* Ian Wilkinson. Portions created by Kirk Baker and Ian Wilkinson are
|
|
|
|
* Copyright (C) 1999 Kirk Baker and Ian Wilkinson. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s): Kirk Baker <kbaker@eb.com>
|
|
|
|
* Ian Wilkinson <iw@ennoble.com>
|
|
|
|
* Mark Lin <mark.lin@eng.sun.com>
|
|
|
|
* Mark Goddard
|
|
|
|
* Ed Burns <edburns@acm.org>
|
|
|
|
* Ashutosh Kulkarni <ashuk@eng.sun.com>
|
|
|
|
* Ann Sunhachawee
|
2000-09-19 04:18:18 +04:00
|
|
|
* Jason Mawdsley <jason@macadamian.com>
|
|
|
|
* Louis-Philippe Gagnon <louisphilippe@macadamian.com>
|
2000-08-04 01:32:54 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Util methods
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef jni_util_h
|
|
|
|
#define jni_util_h
|
|
|
|
|
|
|
|
#include <jni.h>
|
|
|
|
|
2000-09-19 04:18:18 +04:00
|
|
|
|
|
|
|
//
|
|
|
|
// added for 1.1.x compatibility
|
|
|
|
//
|
|
|
|
#ifdef JNI_VERSION_1_2
|
|
|
|
|
|
|
|
#ifndef JNI_VERSION
|
|
|
|
#define JNI_VERSION JNI_VERSION_1_2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#ifndef JNI_VERSION_1_1
|
|
|
|
#define JNI_VERSION_1_1 0x00010001
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef JNI_VERSION
|
|
|
|
#define JNI_VERSION JNI_VERSION_1_1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // END: JNI_VERSION_1_2
|
|
|
|
|
2000-08-04 01:32:54 +04:00
|
|
|
//
|
2000-08-17 22:29:18 +04:00
|
|
|
// String constants, defined in jni_util.cpp
|
|
|
|
//
|
|
|
|
|
|
|
|
extern jobject SCREEN_X_KEY;
|
|
|
|
extern jobject SCREEN_Y_KEY;
|
|
|
|
extern jobject CLIENT_X_KEY;
|
|
|
|
extern jobject CLIENT_Y_KEY;
|
2004-12-01 06:21:23 +03:00
|
|
|
extern jobject CHAR_CODE;
|
|
|
|
extern jobject KEY_CODE;
|
2000-08-17 22:29:18 +04:00
|
|
|
extern jobject ALT_KEY;
|
|
|
|
extern jobject CTRL_KEY;
|
|
|
|
extern jobject SHIFT_KEY;
|
|
|
|
extern jobject META_KEY;
|
|
|
|
extern jobject BUTTON_KEY;
|
|
|
|
extern jobject CLICK_COUNT_KEY;
|
2001-04-03 01:18:06 +04:00
|
|
|
extern jobject USER_NAME_KEY;
|
|
|
|
extern jobject PASSWORD_KEY;
|
|
|
|
extern jobject EDIT_FIELD_1_KEY;
|
|
|
|
extern jobject EDIT_FIELD_2_KEY;
|
|
|
|
extern jobject CHECKBOX_STATE_KEY;
|
|
|
|
extern jobject BUTTON_PRESSED_KEY;
|
2000-08-17 22:29:18 +04:00
|
|
|
extern jobject TRUE_VALUE;
|
|
|
|
extern jobject FALSE_VALUE;
|
|
|
|
extern jobject ONE_VALUE;
|
|
|
|
extern jobject TWO_VALUE;
|
2004-09-10 00:17:18 +04:00
|
|
|
extern jobject URI_VALUE;
|
|
|
|
extern jobject HEADERS_VALUE;
|
|
|
|
extern jobject MESSAGE_VALUE;
|
2001-04-03 01:18:06 +04:00
|
|
|
extern jobject BM_ADD_DATE_VALUE;
|
|
|
|
extern jobject BM_LAST_MODIFIED_DATE_VALUE;
|
|
|
|
extern jobject BM_LAST_VISIT_DATE_VALUE;
|
|
|
|
extern jobject BM_NAME_VALUE;
|
|
|
|
extern jobject BM_URL_VALUE;
|
|
|
|
extern jobject BM_DESCRIPTION_VALUE;
|
|
|
|
extern jobject BM_IS_FOLDER_VALUE;
|
|
|
|
|
2000-08-17 22:29:18 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* How to create a new listener type on the native side: <P>
|
|
|
|
|
|
|
|
* 1. add an entry in the gSupportedListenerInterfaces array defined in
|
|
|
|
* ns_util.cpp or ie_util.cpp <P>
|
|
|
|
|
|
|
|
* 2. add a corresponding entry in the LISTENER_CLASSES enum in
|
|
|
|
* jni_util.h <P>
|
|
|
|
|
|
|
|
* 3. add a jstring to the string constant list in
|
|
|
|
* jni_util.cpp, below.
|
|
|
|
|
|
|
|
* 4. Initialize this jstring constant in jni_util.cpp
|
|
|
|
* util_InitStringConstants() <P>
|
|
|
|
|
|
|
|
* 5. add an entry to the switch statement in NativeEventThread.cpp
|
|
|
|
* native{add,remove}Listener <P>
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* We need one of these for each of the classes in
|
|
|
|
* gSupportedListenerInterfaces, defined in ns_util.cpp
|
|
|
|
|
|
|
|
*/
|
|
|
|
extern jstring DOCUMENT_LOAD_LISTENER_CLASSNAME;
|
|
|
|
extern jstring MOUSE_LISTENER_CLASSNAME;
|
2004-12-01 06:21:23 +03:00
|
|
|
extern jstring KEY_LISTENER_CLASSNAME;
|
2003-04-24 09:55:22 +04:00
|
|
|
extern jstring NEW_WINDOW_LISTENER_CLASSNAME;
|
2000-08-17 22:29:18 +04:00
|
|
|
|
|
|
|
|
2000-08-04 01:32:54 +04:00
|
|
|
//
|
2000-08-17 22:29:18 +04:00
|
|
|
// Listener support
|
|
|
|
//
|
|
|
|
|
|
|
|
// these index into the gSupportedListenerInterfaces array
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
DOCUMENT_LOAD_LISTENER = 0,
|
|
|
|
MOUSE_LISTENER,
|
2003-04-24 09:55:22 +04:00
|
|
|
NEW_WINDOW_LISTENER,
|
2000-08-17 22:29:18 +04:00
|
|
|
LISTENER_NOT_FOUND
|
|
|
|
} LISTENER_CLASSES;
|
|
|
|
|
|
|
|
// listener names and values, tightly correspond to java listener interfaces
|
|
|
|
|
|
|
|
#define DOCUMENT_LOAD_LISTENER_CLASSNAME_VALUE "org.mozilla.webclient.DocumentLoadListener"
|
|
|
|
#define MOUSE_LISTENER_CLASSNAME_VALUE "java.awt.event.MouseListener"
|
2004-12-01 06:21:23 +03:00
|
|
|
#define KEY_LISTENER_CLASSNAME_VALUE "java.awt.event.KeyListener"
|
2003-04-24 09:55:22 +04:00
|
|
|
#define NEW_WINDOW_LISTENER_CLASSNAME_VALUE "org.mozilla.webclient.NewWindowListener"
|
2000-08-17 22:29:18 +04:00
|
|
|
|
|
|
|
|
|
|
|
#define START_DOCUMENT_LOAD_EVENT_MASK_VALUE "START_DOCUMENT_LOAD_EVENT_MASK"
|
|
|
|
#define END_DOCUMENT_LOAD_EVENT_MASK_VALUE "END_DOCUMENT_LOAD_EVENT_MASK"
|
|
|
|
#define START_URL_LOAD_EVENT_MASK_VALUE "START_URL_LOAD_EVENT_MASK"
|
|
|
|
#define END_URL_LOAD_EVENT_MASK_VALUE "END_URL_LOAD_EVENT_MASK"
|
|
|
|
#define PROGRESS_URL_LOAD_EVENT_MASK_VALUE "PROGRESS_URL_LOAD_EVENT_MASK"
|
|
|
|
#define STATUS_URL_LOAD_EVENT_MASK_VALUE "STATUS_URL_LOAD_EVENT_MASK"
|
|
|
|
#define UNKNOWN_CONTENT_EVENT_MASK_VALUE "UNKNOWN_CONTENT_EVENT_MASK"
|
|
|
|
#define FETCH_INTERRUPT_EVENT_MASK_VALUE "FETCH_INTERRUPT_EVENT_MASK"
|
|
|
|
|
|
|
|
#define MOUSE_DOWN_EVENT_MASK_VALUE "MOUSE_DOWN_EVENT_MASK"
|
|
|
|
#define MOUSE_UP_EVENT_MASK_VALUE "MOUSE_UP_EVENT_MASK"
|
|
|
|
#define MOUSE_CLICK_EVENT_MASK_VALUE "MOUSE_CLICK_EVENT_MASK"
|
|
|
|
#define MOUSE_DOUBLE_CLICK_EVENT_MASK_VALUE "MOUSE_DOUBLE_CLICK_EVENT_MASK"
|
|
|
|
#define MOUSE_OVER_EVENT_MASK_VALUE "MOUSE_OVER_EVENT_MASK"
|
|
|
|
#define MOUSE_OUT_EVENT_MASK_VALUE "MOUSE_OUT_EVENT_MASK"
|
|
|
|
|
2004-12-01 06:21:23 +03:00
|
|
|
#define KEY_PRESSED_EVENT_MASK_VALUE "KEY_PRESSED"
|
|
|
|
#define KEY_RELEASED_EVENT_MASK_VALUE "KEY_RELEASED"
|
|
|
|
#define KEY_TYPED_EVENT_MASK_VALUE "KEY_TYPED"
|
|
|
|
|
|
|
|
|
2000-08-17 22:29:18 +04:00
|
|
|
typedef enum {
|
|
|
|
START_DOCUMENT_LOAD_EVENT_MASK = 0,
|
|
|
|
END_DOCUMENT_LOAD_EVENT_MASK,
|
|
|
|
START_URL_LOAD_EVENT_MASK,
|
|
|
|
END_URL_LOAD_EVENT_MASK,
|
|
|
|
PROGRESS_URL_LOAD_EVENT_MASK,
|
|
|
|
STATUS_URL_LOAD_EVENT_MASK,
|
|
|
|
UNKNOWN_CONTENT_EVENT_MASK,
|
|
|
|
FETCH_INTERRUPT_EVENT_MASK,
|
|
|
|
NUMBER_OF_DOCUMENT_LOADER_MASK_NAMES
|
|
|
|
} DOCUMENT_LOADER_EVENT_MASK_NAMES;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
MOUSE_DOWN_EVENT_MASK = 0,
|
|
|
|
MOUSE_UP_EVENT_MASK,
|
|
|
|
MOUSE_CLICK_EVENT_MASK,
|
|
|
|
MOUSE_DOUBLE_CLICK_EVENT_MASK,
|
|
|
|
MOUSE_OVER_EVENT_MASK,
|
|
|
|
MOUSE_OUT_EVENT_MASK,
|
|
|
|
NUMBER_OF_DOM_MOUSE_LISTENER_MASK_NAMES
|
|
|
|
} DOM_MOUSE_LISTENER_EVENT_MASK_NAMES;
|
|
|
|
|
2004-12-01 06:21:23 +03:00
|
|
|
typedef enum {
|
|
|
|
KEY_PRESSED_EVENT_MASK = 0,
|
|
|
|
KEY_RELEASED_EVENT_MASK,
|
|
|
|
KEY_TYPED_EVENT_MASK,
|
|
|
|
NUMBER_OF_DOM_KEY_LISTENER_MASK_NAMES
|
|
|
|
} DOM_KEY_LISTENER_EVENT_MASK_NAMES;
|
|
|
|
|
2001-04-03 01:18:06 +04:00
|
|
|
// BookmarkEntry string constants, must coincide with java
|
|
|
|
#define BM_ADD_DATE "AddDate"
|
|
|
|
#define BM_LAST_MODIFIED_DATE "LastModifiedDate"
|
|
|
|
#define BM_LAST_VISIT_DATE "LastVisitDate"
|
|
|
|
#define BM_NAME "Name"
|
|
|
|
#define BM_URL "URL"
|
|
|
|
#define BM_DESCRIPTION "Description"
|
|
|
|
#define BM_IS_FOLDER "IsFolder"
|
|
|
|
|
2000-08-17 22:29:18 +04:00
|
|
|
extern jlong DocumentLoader_maskValues [NUMBER_OF_DOCUMENT_LOADER_MASK_NAMES];
|
|
|
|
extern char *DocumentLoader_maskNames [NUMBER_OF_DOCUMENT_LOADER_MASK_NAMES + 1];
|
|
|
|
|
|
|
|
extern jlong DOMMouseListener_maskValues [NUMBER_OF_DOM_MOUSE_LISTENER_MASK_NAMES];
|
|
|
|
extern char *DOMMouseListener_maskNames [NUMBER_OF_DOM_MOUSE_LISTENER_MASK_NAMES + 1];
|
2000-08-04 01:32:54 +04:00
|
|
|
|
2004-12-01 06:21:23 +03:00
|
|
|
|
|
|
|
extern jint DOMKeyListener_maskValues [NUMBER_OF_DOM_KEY_LISTENER_MASK_NAMES];
|
|
|
|
extern char *DOMKeyListener_maskNames [NUMBER_OF_DOM_KEY_LISTENER_MASK_NAMES + 1];
|
|
|
|
|
2000-08-04 01:32:54 +04:00
|
|
|
/**
|
|
|
|
|
|
|
|
* This struct contains all non browser specific per-window data. The
|
|
|
|
* WebShellInitContext struct, in the src_moz and src_ie directories
|
|
|
|
* contains a pointer to a ShareInitContext struct.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct ShareInitContext {
|
|
|
|
jclass propertiesClass;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern JavaVM *gVm; // defined in jni_util.cpp
|
|
|
|
|
|
|
|
#ifndef nsnull
|
|
|
|
#define nsnull 0
|
|
|
|
#endif
|
|
|
|
|
This is a checkpoint milestone for webclient 2.0. Webclient currently
doesn't run, but several unit tests for webclient do.
I'll be proceeding through the rest of the webclient interfaces,
building junit tests as I go, in the coming months. I hope to flesh out
the basic framework, then publish build instructions, and hopefully I
can get some contributions from the community.
M util/classes/org/mozilla/util/Utilities.java
new method: getImplFromServices:
+ *
+ * <p>This method tries to load the resource
+ * <code>META-INF/services/>interfaceClassName></code>, where
+ * <code>>interfaceClassName<</code> is the argument to this
+ * method. If the resource is found, interpret it as a
+ * <code>Properties</code> file and read out its first line.
+ * Interpret the first line as the fully qualified class name of a
+ * class that implements <code></code>. The named class must have a
+ * public no-arg constructor.</p>
M webclient/build-tests.xml
- junit testcases for Webclient APIs, developed using test-first.
M webclient/build.xml
- changes for new package name structure:
packages org.mozilla.webclient.{wrapper_native, wrapper_non_native} have gone away. Replaced with org.mozilla.webclient.impl.{wrapper_native, wrapper_non_native}
- changes to accomodate "Services" based approach for pluggable
webclient implementation.
- don't bother re-naming the javah generated files, just let javah pick
the names.
- pass debugging args from build.properties
- changed name of junit test target to "test".
M webclient/classes_spec/org/mozilla/webclient/BrowserControl.java
- got rid of BROWSER_TYPE. No longer necessary due to the new
pluggability mechanism.
M webclient/classes_spec/org/mozilla/webclient/BrowserControlFactory.java
- Leverage the org.mozilla.util.Utilities.getImplFromServices()
mechanism to allow a vendor-pluggable webclient implementation of the
new "WebclientFactory" interface, which is method for method
compatible with BrowserControlFactory. Make all BrowserControlFactory
methods call through to methods on the vendor provided
WebclientFactory implementation.
R webclient/classes_spec/org/mozilla/webclient/BrowserControlFactoryInterface.java
A webclient/classes_spec/org/mozilla/webclient/BrowserControlICE.java
R webclient/classes_spec/org/mozilla/webclient/BrowserControlImpl.java
R webclient/classes_spec/org/mozilla/webclient/BrowserType.java
- move all implementation specific classe to the impl package.
M webclient/classes_spec/org/mozilla/webclient/ImplObject.java
- ImplObject shouldn't depend on vendor private classes.
M webclient/classes_spec/org/mozilla/webclient/Preferences.java
- new method
+ public void unregisterPrefChangedCallback(PrefChangedCallback cb,
+ String prefName, Object closure);
M webclient/classes_spec/org/mozilla/webclient/ProfileManager.java
- properly specify this interface.
A webclient/classes_spec/org/mozilla/webclient/WebclientFactory.java
* <p>This interface allows a pluggable webclient API implementation.
* The static methods in {@link BrowserControlFactory} call through to
* methods on this interface. Please see {@link BrowserControlFactory}
* for information on how to hook up your <code>WebclientFactory</code>
* implementation to the <code>BrowserControlFactory</code></p>
R webclient/classes_spec/org/mozilla/webclient/WrapperFactory.java
R webclient/classes_spec/org/mozilla/webclient/impl/BrowserControlFactoryImpl.java
- moved these to the impl class
A webclient/classes_spec/org/mozilla/webclient/impl/BrowserControlImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/Service.java
A webclient/classes_spec/org/mozilla/webclient/impl/WebclientFactoryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/WrapperFactory.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/BookmarkEntryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/BookmarksImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/CurrentPageImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/EventRegistrationImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/HistoryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/ISupportsPeer.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/ImplObjectNative.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/NativeEventThread.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/NavigationImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/PreferencesImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/ProfileManagerImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/RDFEnumeration.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/RDFTreeNode.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/SelectionImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WCEventListenerWrapper.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WCMouseListenerImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WindowControlImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WrapperFactoryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/gtk/GtkBrowserControlCanvas.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/win32/Win32BrowserControlCanvas.java
- copied from old package naming scheme.
- lots and lots of cleanup.
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/BookmarkEntryImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/BookmarksImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/EventRegistrationImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/HistoryImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/ISupportsPeer.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/ImplObjectNative.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/NavigationImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/PreferencesImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/ProfileManagerImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/RDFEnumeration.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/RDFTreeNode.java
A webclient/classes_spec/org/mozilla/webclient/wrapper_native/README
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/SelectionImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WCEventListenerWrapper.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WCMouseListenerImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WindowControlImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WrapperFactoryImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/gtk/GtkBrowserControlCanvas.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/win32/Win32BrowserControlCanvas.java
- removed from old package naming scheme
M webclient/src_moz/BookmarksImpl.cpp
- remove dependency on RDFActionEvents by inlining all the code that
formerly was in the events.
- package name change
- JNI include file name change
M webclient/src_moz/CurrentPageImpl.cpp
M webclient/src_moz/HistoryImpl.cpp
M webclient/src_moz/ISupportsPeer.cpp
- package name change
- JNI include file name change
M webclient/src_moz/Makefile.in
- get rid of PreferencesActionEvents.cpp and RDFActionEvents.cpp
- add ProfileManagerImpl.cpp
M webclient/src_moz/NativeEventThread.cpp
- this file is not done yet. I've been pulling misplaced initialization
stuff out of here and putting it into WrapperFactoryImpl.cpp.
- got rid of gComponentManager, since we can use do_CreateInstance
instead.
- package name change
- JNI include file name change
M webclient/src_moz/NativeEventThreadActionEvents.h
- JNI include file name change
M webclient/src_moz/NavigationImpl.cpp
- package name change
- JNI include file name change
R webclient/src_moz/PreferencesActionEvents.cpp
R webclient/src_moz/PreferencesActionEvents.h
- don't need these anymore! woohoo!
M webclient/src_moz/PreferencesImpl.cpp
- remove dependency on PreferencesActionEvents by inlining code into the
methods that used to use the events.
A webclient/src_moz/ProfileManagerImpl.cpp
- new class, implementation of the ProfileManager interface.
M webclient/src_moz/PromptActionEvents.cpp
- change erroneous comment so my grep performed correctly.
R webclient/src_moz/RDFActionEvents.cpp
R webclient/src_moz/RDFActionEvents.h
- don't need these anymore! woohoo!
M webclient/src_moz/RDFEnumeration.cpp
M webclient/src_moz/RDFTreeNode.cpp
- remove dependency on RDFActionEvents by inlining code into the
methods that used to use the events.
M webclient/src_moz/WindowControlActionEvents.cpp
- deallocate shareInitiContext.
M webclient/src_moz/WindowControlImpl.cpp
- package name change
- JNI include file name change
- remove the "sleep so I can attach gdb" code. Moved to
WrapperFactoryImpl.cpp.
M webclient/src_moz/WrapperFactoryImpl.cpp
- lots of changes. This is now where the app initialization and
shutdown happens,
M webclient/src_moz/dom_util.cpp
- comment change
M webclient/src_moz/ns_globals.h
- get rid of inappropriate global usage.
M webclient/src_moz/ns_util.h
- new struct WebclientContext for singletons.
M webclient/src_moz/rdf_util.cpp
- new methods, rdf_startup and rdf_shutdown.
- replace calls to nsComponentManager::CreateInstance() with
do_CreateInstance().
M webclient/src_moz/rdf_util.h
- new methods, rdf_startup and rdf_shutdown.
M webclient/src_moz/gtk/GtkBrowserControlCanvas.cpp
- package name change
- JNI include file name change
M webclient/src_moz/gtk/GtkBrowserControlCanvasStub.cpp
- package name change
- JNI include file name change
- this file isn't needed anymore, thankfully! I'll remove it soon.
M webclient/src_moz/gtk/StubFunctions.h
- package name change
- JNI include file name change
- this file isn't needed anymore, thankfully! I'll remove it soon.
M webclient/src_moz/motif/BrowserControlNativeShimStub.cpp
M webclient/src_moz/motif/MotifBrowserControlCanvas.cpp
M webclient/src_moz/motif/MotifBrowserControlCanvasStub.cpp
M webclient/src_moz/motif/NativeLoaderStub.cpp
M webclient/src_moz/win32/Win32BrowserControlCanvas.cpp
- package name change
- JNI include file name change
M webclient/src_share/jni_util.cpp
M webclient/src_share/jni_util.h
- util_InitializeShareInitContext() takes a JNIEnv *.
- new methods
+void util_DeleteGlobalRef(JNIEnv *env, jobject toDeleteRef);
+void util_DeleteLocalRef(JNIEnv *env, jobject toDeleteRef);
+void util_getSystemProperty(JNIEnv *env,
+ const char *propName,
+ char *propValue,
+ jint propValueLen);
M webclient/src_share/jni_util_export.cpp
M webclient/src_share/jni_util_export.h
+JNIEXPORT jobjectArray util_GetJstringArrayFromJcharArray(JNIEnv *env,
+ jint len,
+ jchar **strings,
+ jint *stringLengths)
A webclient/test/automated/src/classes/org/mozilla/webclient/BookmarksTest.java
R webclient/test/automated/src/classes/org/mozilla/webclient/BrowserControlFactoryTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/PreferencesTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/ProfileManagerTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/impl/WebclientFactoryImplTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/impl/wrapper_native/WrapperFactoryImplTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/impl/wrapper_native/gtk/TestGtkBrowserControlCanvas.java
R webclient/test/automated/src/classes/org/mozilla/webclient/wrapper_native/gtk/TestGtkBrowserControlCanvas.java
A webclient/test/automated/src/test/BrowserControlFactoryTest_correct
- junit tests! TEST FIRST!
2003-09-28 10:29:22 +04:00
|
|
|
void util_InitializeShareInitContext(JNIEnv *env, void *initContext);
|
|
|
|
void util_DeallocateShareInitContext(JNIEnv *env, void *initContext);
|
2000-08-04 01:32:54 +04:00
|
|
|
|
2000-08-17 22:29:18 +04:00
|
|
|
/**
|
|
|
|
|
|
|
|
* Initialize the above extern jobject string constants as jstrings
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2001-04-03 01:18:06 +04:00
|
|
|
jboolean util_InitStringConstants();
|
2000-08-17 22:29:18 +04:00
|
|
|
jboolean util_StringConstantsAreInitialized();
|
|
|
|
|
2000-08-04 01:32:54 +04:00
|
|
|
void util_ThrowExceptionToJava (JNIEnv * env, const char * message);
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* simply call the java method nativeEventOccurred on
|
|
|
|
* eventRegistrationImpl, passing webclientEventListener and eventType
|
|
|
|
* as arguments.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
void util_SendEventToJava(JNIEnv *env, jobject eventRegistrationImpl,
|
2000-08-11 01:38:52 +04:00
|
|
|
jstring eventListenerClassName,
|
2000-08-04 01:32:54 +04:00
|
|
|
jlong eventType,
|
|
|
|
jobject eventData);
|
|
|
|
|
|
|
|
char *util_GetCurrentThreadName(JNIEnv *env);
|
|
|
|
|
|
|
|
void util_DumpJavaStack(JNIEnv *env);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Functions to wrap JNIEnv functions.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "jni_util_export.h"
|
|
|
|
|
|
|
|
jobject util_NewGlobalRef(JNIEnv *env, jobject toAddRef);
|
|
|
|
|
This is a checkpoint milestone for webclient 2.0. Webclient currently
doesn't run, but several unit tests for webclient do.
I'll be proceeding through the rest of the webclient interfaces,
building junit tests as I go, in the coming months. I hope to flesh out
the basic framework, then publish build instructions, and hopefully I
can get some contributions from the community.
M util/classes/org/mozilla/util/Utilities.java
new method: getImplFromServices:
+ *
+ * <p>This method tries to load the resource
+ * <code>META-INF/services/>interfaceClassName></code>, where
+ * <code>>interfaceClassName<</code> is the argument to this
+ * method. If the resource is found, interpret it as a
+ * <code>Properties</code> file and read out its first line.
+ * Interpret the first line as the fully qualified class name of a
+ * class that implements <code></code>. The named class must have a
+ * public no-arg constructor.</p>
M webclient/build-tests.xml
- junit testcases for Webclient APIs, developed using test-first.
M webclient/build.xml
- changes for new package name structure:
packages org.mozilla.webclient.{wrapper_native, wrapper_non_native} have gone away. Replaced with org.mozilla.webclient.impl.{wrapper_native, wrapper_non_native}
- changes to accomodate "Services" based approach for pluggable
webclient implementation.
- don't bother re-naming the javah generated files, just let javah pick
the names.
- pass debugging args from build.properties
- changed name of junit test target to "test".
M webclient/classes_spec/org/mozilla/webclient/BrowserControl.java
- got rid of BROWSER_TYPE. No longer necessary due to the new
pluggability mechanism.
M webclient/classes_spec/org/mozilla/webclient/BrowserControlFactory.java
- Leverage the org.mozilla.util.Utilities.getImplFromServices()
mechanism to allow a vendor-pluggable webclient implementation of the
new "WebclientFactory" interface, which is method for method
compatible with BrowserControlFactory. Make all BrowserControlFactory
methods call through to methods on the vendor provided
WebclientFactory implementation.
R webclient/classes_spec/org/mozilla/webclient/BrowserControlFactoryInterface.java
A webclient/classes_spec/org/mozilla/webclient/BrowserControlICE.java
R webclient/classes_spec/org/mozilla/webclient/BrowserControlImpl.java
R webclient/classes_spec/org/mozilla/webclient/BrowserType.java
- move all implementation specific classe to the impl package.
M webclient/classes_spec/org/mozilla/webclient/ImplObject.java
- ImplObject shouldn't depend on vendor private classes.
M webclient/classes_spec/org/mozilla/webclient/Preferences.java
- new method
+ public void unregisterPrefChangedCallback(PrefChangedCallback cb,
+ String prefName, Object closure);
M webclient/classes_spec/org/mozilla/webclient/ProfileManager.java
- properly specify this interface.
A webclient/classes_spec/org/mozilla/webclient/WebclientFactory.java
* <p>This interface allows a pluggable webclient API implementation.
* The static methods in {@link BrowserControlFactory} call through to
* methods on this interface. Please see {@link BrowserControlFactory}
* for information on how to hook up your <code>WebclientFactory</code>
* implementation to the <code>BrowserControlFactory</code></p>
R webclient/classes_spec/org/mozilla/webclient/WrapperFactory.java
R webclient/classes_spec/org/mozilla/webclient/impl/BrowserControlFactoryImpl.java
- moved these to the impl class
A webclient/classes_spec/org/mozilla/webclient/impl/BrowserControlImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/Service.java
A webclient/classes_spec/org/mozilla/webclient/impl/WebclientFactoryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/WrapperFactory.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/BookmarkEntryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/BookmarksImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/CurrentPageImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/EventRegistrationImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/HistoryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/ISupportsPeer.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/ImplObjectNative.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/NativeEventThread.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/NavigationImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/PreferencesImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/ProfileManagerImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/RDFEnumeration.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/RDFTreeNode.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/SelectionImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WCEventListenerWrapper.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WCMouseListenerImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WindowControlImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WrapperFactoryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/gtk/GtkBrowserControlCanvas.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/win32/Win32BrowserControlCanvas.java
- copied from old package naming scheme.
- lots and lots of cleanup.
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/BookmarkEntryImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/BookmarksImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/EventRegistrationImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/HistoryImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/ISupportsPeer.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/ImplObjectNative.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/NavigationImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/PreferencesImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/ProfileManagerImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/RDFEnumeration.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/RDFTreeNode.java
A webclient/classes_spec/org/mozilla/webclient/wrapper_native/README
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/SelectionImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WCEventListenerWrapper.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WCMouseListenerImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WindowControlImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WrapperFactoryImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/gtk/GtkBrowserControlCanvas.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/win32/Win32BrowserControlCanvas.java
- removed from old package naming scheme
M webclient/src_moz/BookmarksImpl.cpp
- remove dependency on RDFActionEvents by inlining all the code that
formerly was in the events.
- package name change
- JNI include file name change
M webclient/src_moz/CurrentPageImpl.cpp
M webclient/src_moz/HistoryImpl.cpp
M webclient/src_moz/ISupportsPeer.cpp
- package name change
- JNI include file name change
M webclient/src_moz/Makefile.in
- get rid of PreferencesActionEvents.cpp and RDFActionEvents.cpp
- add ProfileManagerImpl.cpp
M webclient/src_moz/NativeEventThread.cpp
- this file is not done yet. I've been pulling misplaced initialization
stuff out of here and putting it into WrapperFactoryImpl.cpp.
- got rid of gComponentManager, since we can use do_CreateInstance
instead.
- package name change
- JNI include file name change
M webclient/src_moz/NativeEventThreadActionEvents.h
- JNI include file name change
M webclient/src_moz/NavigationImpl.cpp
- package name change
- JNI include file name change
R webclient/src_moz/PreferencesActionEvents.cpp
R webclient/src_moz/PreferencesActionEvents.h
- don't need these anymore! woohoo!
M webclient/src_moz/PreferencesImpl.cpp
- remove dependency on PreferencesActionEvents by inlining code into the
methods that used to use the events.
A webclient/src_moz/ProfileManagerImpl.cpp
- new class, implementation of the ProfileManager interface.
M webclient/src_moz/PromptActionEvents.cpp
- change erroneous comment so my grep performed correctly.
R webclient/src_moz/RDFActionEvents.cpp
R webclient/src_moz/RDFActionEvents.h
- don't need these anymore! woohoo!
M webclient/src_moz/RDFEnumeration.cpp
M webclient/src_moz/RDFTreeNode.cpp
- remove dependency on RDFActionEvents by inlining code into the
methods that used to use the events.
M webclient/src_moz/WindowControlActionEvents.cpp
- deallocate shareInitiContext.
M webclient/src_moz/WindowControlImpl.cpp
- package name change
- JNI include file name change
- remove the "sleep so I can attach gdb" code. Moved to
WrapperFactoryImpl.cpp.
M webclient/src_moz/WrapperFactoryImpl.cpp
- lots of changes. This is now where the app initialization and
shutdown happens,
M webclient/src_moz/dom_util.cpp
- comment change
M webclient/src_moz/ns_globals.h
- get rid of inappropriate global usage.
M webclient/src_moz/ns_util.h
- new struct WebclientContext for singletons.
M webclient/src_moz/rdf_util.cpp
- new methods, rdf_startup and rdf_shutdown.
- replace calls to nsComponentManager::CreateInstance() with
do_CreateInstance().
M webclient/src_moz/rdf_util.h
- new methods, rdf_startup and rdf_shutdown.
M webclient/src_moz/gtk/GtkBrowserControlCanvas.cpp
- package name change
- JNI include file name change
M webclient/src_moz/gtk/GtkBrowserControlCanvasStub.cpp
- package name change
- JNI include file name change
- this file isn't needed anymore, thankfully! I'll remove it soon.
M webclient/src_moz/gtk/StubFunctions.h
- package name change
- JNI include file name change
- this file isn't needed anymore, thankfully! I'll remove it soon.
M webclient/src_moz/motif/BrowserControlNativeShimStub.cpp
M webclient/src_moz/motif/MotifBrowserControlCanvas.cpp
M webclient/src_moz/motif/MotifBrowserControlCanvasStub.cpp
M webclient/src_moz/motif/NativeLoaderStub.cpp
M webclient/src_moz/win32/Win32BrowserControlCanvas.cpp
- package name change
- JNI include file name change
M webclient/src_share/jni_util.cpp
M webclient/src_share/jni_util.h
- util_InitializeShareInitContext() takes a JNIEnv *.
- new methods
+void util_DeleteGlobalRef(JNIEnv *env, jobject toDeleteRef);
+void util_DeleteLocalRef(JNIEnv *env, jobject toDeleteRef);
+void util_getSystemProperty(JNIEnv *env,
+ const char *propName,
+ char *propValue,
+ jint propValueLen);
M webclient/src_share/jni_util_export.cpp
M webclient/src_share/jni_util_export.h
+JNIEXPORT jobjectArray util_GetJstringArrayFromJcharArray(JNIEnv *env,
+ jint len,
+ jchar **strings,
+ jint *stringLengths)
A webclient/test/automated/src/classes/org/mozilla/webclient/BookmarksTest.java
R webclient/test/automated/src/classes/org/mozilla/webclient/BrowserControlFactoryTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/PreferencesTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/ProfileManagerTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/impl/WebclientFactoryImplTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/impl/wrapper_native/WrapperFactoryImplTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/impl/wrapper_native/gtk/TestGtkBrowserControlCanvas.java
R webclient/test/automated/src/classes/org/mozilla/webclient/wrapper_native/gtk/TestGtkBrowserControlCanvas.java
A webclient/test/automated/src/test/BrowserControlFactoryTest_correct
- junit tests! TEST FIRST!
2003-09-28 10:29:22 +04:00
|
|
|
void util_DeleteGlobalRef(JNIEnv *env, jobject toDeleteRef);
|
|
|
|
|
|
|
|
void util_DeleteLocalRef(JNIEnv *env, jobject toDeleteRef);
|
2000-08-04 01:32:54 +04:00
|
|
|
|
|
|
|
jthrowable util_ExceptionOccurred(JNIEnv *env);
|
|
|
|
|
|
|
|
jint util_GetJavaVM(JNIEnv *env, JavaVM **vm);
|
|
|
|
|
|
|
|
jclass util_FindClass(JNIEnv *env, const char *fullyQualifiedClassName);
|
|
|
|
|
2001-04-03 01:18:06 +04:00
|
|
|
jobject util_CallStaticObjectMethodlongArg(JNIEnv *env, jclass clazz,
|
|
|
|
jmethodID methodID, jlong longArg);
|
|
|
|
|
2000-08-04 01:32:54 +04:00
|
|
|
jfieldID util_GetStaticFieldID(JNIEnv *env, jclass clazz,
|
|
|
|
const char *fieldName,
|
|
|
|
const char *signature);
|
|
|
|
|
|
|
|
jlong util_GetStaticLongField(JNIEnv *env, jclass clazz, jfieldID id);
|
|
|
|
|
2004-12-01 06:21:23 +03:00
|
|
|
jint util_GetStaticIntField(JNIEnv *env, jclass clazz, jfieldID id);
|
|
|
|
|
2000-08-04 01:32:54 +04:00
|
|
|
jboolean util_IsInstanceOf(JNIEnv *env, jobject obj, jclass clazz);
|
|
|
|
|
|
|
|
jint util_GetIntValueFromInstance(JNIEnv *env, jobject instance,
|
|
|
|
const char *fieldName);
|
|
|
|
|
|
|
|
void util_SetIntValueForInstance(JNIEnv *env, jobject instance,
|
|
|
|
const char *fieldName, jint newValue);
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* A JNI wrapper to create a java.util.Properties object, or the
|
|
|
|
* equivalent object in the BAL case.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
jobject util_CreatePropertiesObject(JNIEnv *env, jobject reserved_NotUsed);
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* A JNI wrapper to destroy the object from CreatePropertiesObject
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
void util_DestroyPropertiesObject(JNIEnv *env, jobject propertiesObject,
|
|
|
|
jobject reserved_NotUsed);
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* A JNI wrapper to clear the object from CreatePropertiesObject
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
void util_ClearPropertiesObject(JNIEnv *env, jobject propertiesObject,
|
|
|
|
jobject reserved_NotUsed);
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* A JNI wrapper for storing a name/value pair into the Properties
|
|
|
|
* object created by CreatePropertiesObject
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
void util_StoreIntoPropertiesObject(JNIEnv *env, jobject propertiesObject,
|
|
|
|
jobject name, jobject value,
|
|
|
|
jobject reserved);
|
|
|
|
|
2001-04-03 01:18:06 +04:00
|
|
|
/**
|
|
|
|
|
|
|
|
* A JNI wrapper to get a value for a name out of a PropertiesObject
|
|
|
|
* created by CreatePropertiesObject
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
jobject util_GetFromPropertiesObject(JNIEnv *, jobject propertiesObject,
|
|
|
|
jobject name, jobject reserved);
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* A JNI wrapper to get a boolean value for a name out of a PropertiesObject
|
|
|
|
* created by CreatePropertiesObject
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
jboolean util_GetBoolFromPropertiesObject(JNIEnv *, jobject propertiesObject,
|
|
|
|
jobject name, jobject reserved);
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* A JNI wrapper to get an int value for a name out of a PropertiesObject
|
|
|
|
* created by CreatePropertiesObject
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
jint util_GetIntFromPropertiesObject(JNIEnv *, jobject propertiesObject,
|
|
|
|
jobject name, jobject reserved);
|
2000-08-04 01:32:54 +04:00
|
|
|
|
This is a checkpoint milestone for webclient 2.0. Webclient currently
doesn't run, but several unit tests for webclient do.
I'll be proceeding through the rest of the webclient interfaces,
building junit tests as I go, in the coming months. I hope to flesh out
the basic framework, then publish build instructions, and hopefully I
can get some contributions from the community.
M util/classes/org/mozilla/util/Utilities.java
new method: getImplFromServices:
+ *
+ * <p>This method tries to load the resource
+ * <code>META-INF/services/>interfaceClassName></code>, where
+ * <code>>interfaceClassName<</code> is the argument to this
+ * method. If the resource is found, interpret it as a
+ * <code>Properties</code> file and read out its first line.
+ * Interpret the first line as the fully qualified class name of a
+ * class that implements <code></code>. The named class must have a
+ * public no-arg constructor.</p>
M webclient/build-tests.xml
- junit testcases for Webclient APIs, developed using test-first.
M webclient/build.xml
- changes for new package name structure:
packages org.mozilla.webclient.{wrapper_native, wrapper_non_native} have gone away. Replaced with org.mozilla.webclient.impl.{wrapper_native, wrapper_non_native}
- changes to accomodate "Services" based approach for pluggable
webclient implementation.
- don't bother re-naming the javah generated files, just let javah pick
the names.
- pass debugging args from build.properties
- changed name of junit test target to "test".
M webclient/classes_spec/org/mozilla/webclient/BrowserControl.java
- got rid of BROWSER_TYPE. No longer necessary due to the new
pluggability mechanism.
M webclient/classes_spec/org/mozilla/webclient/BrowserControlFactory.java
- Leverage the org.mozilla.util.Utilities.getImplFromServices()
mechanism to allow a vendor-pluggable webclient implementation of the
new "WebclientFactory" interface, which is method for method
compatible with BrowserControlFactory. Make all BrowserControlFactory
methods call through to methods on the vendor provided
WebclientFactory implementation.
R webclient/classes_spec/org/mozilla/webclient/BrowserControlFactoryInterface.java
A webclient/classes_spec/org/mozilla/webclient/BrowserControlICE.java
R webclient/classes_spec/org/mozilla/webclient/BrowserControlImpl.java
R webclient/classes_spec/org/mozilla/webclient/BrowserType.java
- move all implementation specific classe to the impl package.
M webclient/classes_spec/org/mozilla/webclient/ImplObject.java
- ImplObject shouldn't depend on vendor private classes.
M webclient/classes_spec/org/mozilla/webclient/Preferences.java
- new method
+ public void unregisterPrefChangedCallback(PrefChangedCallback cb,
+ String prefName, Object closure);
M webclient/classes_spec/org/mozilla/webclient/ProfileManager.java
- properly specify this interface.
A webclient/classes_spec/org/mozilla/webclient/WebclientFactory.java
* <p>This interface allows a pluggable webclient API implementation.
* The static methods in {@link BrowserControlFactory} call through to
* methods on this interface. Please see {@link BrowserControlFactory}
* for information on how to hook up your <code>WebclientFactory</code>
* implementation to the <code>BrowserControlFactory</code></p>
R webclient/classes_spec/org/mozilla/webclient/WrapperFactory.java
R webclient/classes_spec/org/mozilla/webclient/impl/BrowserControlFactoryImpl.java
- moved these to the impl class
A webclient/classes_spec/org/mozilla/webclient/impl/BrowserControlImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/Service.java
A webclient/classes_spec/org/mozilla/webclient/impl/WebclientFactoryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/WrapperFactory.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/BookmarkEntryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/BookmarksImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/CurrentPageImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/EventRegistrationImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/HistoryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/ISupportsPeer.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/ImplObjectNative.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/NativeEventThread.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/NavigationImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/PreferencesImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/ProfileManagerImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/RDFEnumeration.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/RDFTreeNode.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/SelectionImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WCEventListenerWrapper.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WCMouseListenerImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WindowControlImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WrapperFactoryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/gtk/GtkBrowserControlCanvas.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/win32/Win32BrowserControlCanvas.java
- copied from old package naming scheme.
- lots and lots of cleanup.
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/BookmarkEntryImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/BookmarksImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/EventRegistrationImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/HistoryImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/ISupportsPeer.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/ImplObjectNative.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/NavigationImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/PreferencesImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/ProfileManagerImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/RDFEnumeration.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/RDFTreeNode.java
A webclient/classes_spec/org/mozilla/webclient/wrapper_native/README
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/SelectionImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WCEventListenerWrapper.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WCMouseListenerImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WindowControlImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WrapperFactoryImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/gtk/GtkBrowserControlCanvas.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/win32/Win32BrowserControlCanvas.java
- removed from old package naming scheme
M webclient/src_moz/BookmarksImpl.cpp
- remove dependency on RDFActionEvents by inlining all the code that
formerly was in the events.
- package name change
- JNI include file name change
M webclient/src_moz/CurrentPageImpl.cpp
M webclient/src_moz/HistoryImpl.cpp
M webclient/src_moz/ISupportsPeer.cpp
- package name change
- JNI include file name change
M webclient/src_moz/Makefile.in
- get rid of PreferencesActionEvents.cpp and RDFActionEvents.cpp
- add ProfileManagerImpl.cpp
M webclient/src_moz/NativeEventThread.cpp
- this file is not done yet. I've been pulling misplaced initialization
stuff out of here and putting it into WrapperFactoryImpl.cpp.
- got rid of gComponentManager, since we can use do_CreateInstance
instead.
- package name change
- JNI include file name change
M webclient/src_moz/NativeEventThreadActionEvents.h
- JNI include file name change
M webclient/src_moz/NavigationImpl.cpp
- package name change
- JNI include file name change
R webclient/src_moz/PreferencesActionEvents.cpp
R webclient/src_moz/PreferencesActionEvents.h
- don't need these anymore! woohoo!
M webclient/src_moz/PreferencesImpl.cpp
- remove dependency on PreferencesActionEvents by inlining code into the
methods that used to use the events.
A webclient/src_moz/ProfileManagerImpl.cpp
- new class, implementation of the ProfileManager interface.
M webclient/src_moz/PromptActionEvents.cpp
- change erroneous comment so my grep performed correctly.
R webclient/src_moz/RDFActionEvents.cpp
R webclient/src_moz/RDFActionEvents.h
- don't need these anymore! woohoo!
M webclient/src_moz/RDFEnumeration.cpp
M webclient/src_moz/RDFTreeNode.cpp
- remove dependency on RDFActionEvents by inlining code into the
methods that used to use the events.
M webclient/src_moz/WindowControlActionEvents.cpp
- deallocate shareInitiContext.
M webclient/src_moz/WindowControlImpl.cpp
- package name change
- JNI include file name change
- remove the "sleep so I can attach gdb" code. Moved to
WrapperFactoryImpl.cpp.
M webclient/src_moz/WrapperFactoryImpl.cpp
- lots of changes. This is now where the app initialization and
shutdown happens,
M webclient/src_moz/dom_util.cpp
- comment change
M webclient/src_moz/ns_globals.h
- get rid of inappropriate global usage.
M webclient/src_moz/ns_util.h
- new struct WebclientContext for singletons.
M webclient/src_moz/rdf_util.cpp
- new methods, rdf_startup and rdf_shutdown.
- replace calls to nsComponentManager::CreateInstance() with
do_CreateInstance().
M webclient/src_moz/rdf_util.h
- new methods, rdf_startup and rdf_shutdown.
M webclient/src_moz/gtk/GtkBrowserControlCanvas.cpp
- package name change
- JNI include file name change
M webclient/src_moz/gtk/GtkBrowserControlCanvasStub.cpp
- package name change
- JNI include file name change
- this file isn't needed anymore, thankfully! I'll remove it soon.
M webclient/src_moz/gtk/StubFunctions.h
- package name change
- JNI include file name change
- this file isn't needed anymore, thankfully! I'll remove it soon.
M webclient/src_moz/motif/BrowserControlNativeShimStub.cpp
M webclient/src_moz/motif/MotifBrowserControlCanvas.cpp
M webclient/src_moz/motif/MotifBrowserControlCanvasStub.cpp
M webclient/src_moz/motif/NativeLoaderStub.cpp
M webclient/src_moz/win32/Win32BrowserControlCanvas.cpp
- package name change
- JNI include file name change
M webclient/src_share/jni_util.cpp
M webclient/src_share/jni_util.h
- util_InitializeShareInitContext() takes a JNIEnv *.
- new methods
+void util_DeleteGlobalRef(JNIEnv *env, jobject toDeleteRef);
+void util_DeleteLocalRef(JNIEnv *env, jobject toDeleteRef);
+void util_getSystemProperty(JNIEnv *env,
+ const char *propName,
+ char *propValue,
+ jint propValueLen);
M webclient/src_share/jni_util_export.cpp
M webclient/src_share/jni_util_export.h
+JNIEXPORT jobjectArray util_GetJstringArrayFromJcharArray(JNIEnv *env,
+ jint len,
+ jchar **strings,
+ jint *stringLengths)
A webclient/test/automated/src/classes/org/mozilla/webclient/BookmarksTest.java
R webclient/test/automated/src/classes/org/mozilla/webclient/BrowserControlFactoryTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/PreferencesTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/ProfileManagerTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/impl/WebclientFactoryImplTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/impl/wrapper_native/WrapperFactoryImplTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/impl/wrapper_native/gtk/TestGtkBrowserControlCanvas.java
R webclient/test/automated/src/classes/org/mozilla/webclient/wrapper_native/gtk/TestGtkBrowserControlCanvas.java
A webclient/test/automated/src/test/BrowserControlFactoryTest_correct
- junit tests! TEST FIRST!
2003-09-28 10:29:22 +04:00
|
|
|
void util_getSystemProperty(JNIEnv *env,
|
|
|
|
const char *propName,
|
|
|
|
char *propValue,
|
|
|
|
jint propValueLen);
|
|
|
|
|
2000-08-04 01:32:54 +04:00
|
|
|
//
|
|
|
|
// Functions provided by the browser specific native code
|
|
|
|
//
|
|
|
|
|
|
|
|
void util_LogMessage(int level, const char *fmt);
|
|
|
|
|
|
|
|
void util_Assert(void *test);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Functions from secret JDK files
|
|
|
|
//
|
|
|
|
|
|
|
|
JNIEXPORT jvalue JNICALL
|
|
|
|
JNU_CallMethodByName(JNIEnv *env,
|
|
|
|
jboolean *hasException,
|
|
|
|
jobject obj,
|
|
|
|
const char *name,
|
|
|
|
const char *signature,
|
|
|
|
...);
|
|
|
|
|
|
|
|
JNIEXPORT jvalue JNICALL
|
|
|
|
JNU_CallMethodByNameV(JNIEnv *env,
|
|
|
|
jboolean *hasException,
|
|
|
|
jobject obj,
|
|
|
|
const char *name,
|
|
|
|
const char *signature,
|
|
|
|
va_list args);
|
|
|
|
|
|
|
|
JNIEXPORT void * JNICALL
|
|
|
|
JNU_GetEnv(JavaVM *vm, jint version);
|
|
|
|
|
|
|
|
#endif // jni_util_h
|