diff --git a/.clang-format b/.clang-format index 82a7135f..d4faf2af 100644 --- a/.clang-format +++ b/.clang-format @@ -1,7 +1,7 @@ --- BasedOnStyle: LLVM -SortIncludes: false +SortIncludes: true BreakBeforeBraces: Custom BraceWrapping: diff --git a/bauer/templates/app/source/AppController.h b/bauer/templates/app/source/AppController.h index e567543a..96921fc6 100644 --- a/bauer/templates/app/source/AppController.h +++ b/bauer/templates/app/source/AppController.h @@ -1,7 +1,7 @@ #pragma once -#include #include "MainViewController.h" +#include using namespace bdn; diff --git a/examples/reddit/src/reddit.cpp b/examples/reddit/src/reddit.cpp index de909568..a4cbb957 100644 --- a/examples/reddit/src/reddit.cpp +++ b/examples/reddit/src/reddit.cpp @@ -1,7 +1,7 @@ #include -#include -#include #include +#include +#include #include diff --git a/framework/foundation/include/bdn/AbortedError.h b/framework/foundation/include/bdn/AbortedError.h index 229180cc..b3921dac 100644 --- a/framework/foundation/include/bdn/AbortedError.h +++ b/framework/foundation/include/bdn/AbortedError.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/foundation/include/bdn/AppLaunchInfo.h b/framework/foundation/include/bdn/AppLaunchInfo.h index ca4b1931..eb0ff888 100644 --- a/framework/foundation/include/bdn/AppLaunchInfo.h +++ b/framework/foundation/include/bdn/AppLaunchInfo.h @@ -2,8 +2,8 @@ #include -#include #include +#include namespace bdn { diff --git a/framework/foundation/include/bdn/AppRunnerBase.h b/framework/foundation/include/bdn/AppRunnerBase.h index 7261835b..951e84f0 100644 --- a/framework/foundation/include/bdn/AppRunnerBase.h +++ b/framework/foundation/include/bdn/AppRunnerBase.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include #include diff --git a/framework/foundation/include/bdn/Base.h b/framework/foundation/include/bdn/Base.h index c4cc1238..e3fab0ac 100644 --- a/framework/foundation/include/bdn/Base.h +++ b/framework/foundation/include/bdn/Base.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/foundation/include/bdn/Dip.h b/framework/foundation/include/bdn/Dip.h index cfc3e4dc..c2962aaa 100644 --- a/framework/foundation/include/bdn/Dip.h +++ b/framework/foundation/include/bdn/Dip.h @@ -2,8 +2,9 @@ #include -#include +#include #include +#include namespace bdn { diff --git a/framework/foundation/include/bdn/Factory.h b/framework/foundation/include/bdn/Factory.h index f28a2fd5..bc1b465f 100644 --- a/framework/foundation/include/bdn/Factory.h +++ b/framework/foundation/include/bdn/Factory.h @@ -2,8 +2,8 @@ #include -#include #include +#include #include namespace bdn diff --git a/framework/foundation/include/bdn/GenericDispatcher.h b/framework/foundation/include/bdn/GenericDispatcher.h index 617796c9..375676b2 100644 --- a/framework/foundation/include/bdn/GenericDispatcher.h +++ b/framework/foundation/include/bdn/GenericDispatcher.h @@ -1,13 +1,13 @@ #pragma once -#include #include +#include +#include #include +#include #include #include #include -#include -#include #include #include diff --git a/framework/foundation/include/bdn/IAsyncOp.h b/framework/foundation/include/bdn/IAsyncOp.h index 689d5a8f..f4be32b2 100644 --- a/framework/foundation/include/bdn/IAsyncOp.h +++ b/framework/foundation/include/bdn/IAsyncOp.h @@ -1,9 +1,9 @@ #pragma once -#include #include -#include #include +#include +#include namespace bdn { diff --git a/framework/foundation/include/bdn/IDispatcher.h b/framework/foundation/include/bdn/IDispatcher.h index 7dfe2636..59beb9e6 100644 --- a/framework/foundation/include/bdn/IDispatcher.h +++ b/framework/foundation/include/bdn/IDispatcher.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/foundation/include/bdn/Margin.h b/framework/foundation/include/bdn/Margin.h index 2bcf5146..0ca53e25 100644 --- a/framework/foundation/include/bdn/Margin.h +++ b/framework/foundation/include/bdn/Margin.h @@ -1,5 +1,7 @@ #pragma once +#include + namespace bdn { diff --git a/framework/foundation/include/bdn/NotifierBase.h b/framework/foundation/include/bdn/NotifierBase.h index 89436501..62573024 100644 --- a/framework/foundation/include/bdn/NotifierBase.h +++ b/framework/foundation/include/bdn/NotifierBase.h @@ -1,8 +1,8 @@ #pragma once +#include #include #include -#include #include #include diff --git a/framework/foundation/include/bdn/Number.h b/framework/foundation/include/bdn/Number.h index 2d99a4a6..01e1eb7c 100644 --- a/framework/foundation/include/bdn/Number.h +++ b/framework/foundation/include/bdn/Number.h @@ -3,8 +3,8 @@ #include // needed so that we can provide specializations for std::hash -#include #include +#include namespace bdn { diff --git a/framework/foundation/include/bdn/ProgrammingError.h b/framework/foundation/include/bdn/ProgrammingError.h index 576d3552..8b87a284 100644 --- a/framework/foundation/include/bdn/ProgrammingError.h +++ b/framework/foundation/include/bdn/ProgrammingError.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/foundation/include/bdn/Rect.h b/framework/foundation/include/bdn/Rect.h index 96dc6728..5d92f1f8 100644 --- a/framework/foundation/include/bdn/Rect.h +++ b/framework/foundation/include/bdn/Rect.h @@ -1,8 +1,8 @@ #pragma once #include -#include #include +#include namespace bdn { diff --git a/framework/foundation/include/bdn/Size.h b/framework/foundation/include/bdn/Size.h index d992aa99..df0b2efe 100644 --- a/framework/foundation/include/bdn/Size.h +++ b/framework/foundation/include/bdn/Size.h @@ -2,8 +2,8 @@ #include -#include #include +#include namespace bdn { diff --git a/framework/foundation/include/bdn/StopWatch.h b/framework/foundation/include/bdn/StopWatch.h index a2044f92..60b24d2b 100644 --- a/framework/foundation/include/bdn/StopWatch.h +++ b/framework/foundation/include/bdn/StopWatch.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/foundation/include/bdn/String.h b/framework/foundation/include/bdn/String.h index cc3458b9..2e3a10ed 100644 --- a/framework/foundation/include/bdn/String.h +++ b/framework/foundation/include/bdn/String.h @@ -1,10 +1,10 @@ #pragma once -#include -#include -#include #include #include +#include +#include +#include namespace bdn { diff --git a/framework/foundation/include/bdn/Switch.h b/framework/foundation/include/bdn/Switch.h index 69f393bc..4398da55 100644 --- a/framework/foundation/include/bdn/Switch.h +++ b/framework/foundation/include/bdn/Switch.h @@ -1,9 +1,9 @@ #pragma once -#include +#include #include +#include #include -#include #include diff --git a/framework/foundation/include/bdn/config.h b/framework/foundation/include/bdn/config.h index ab7089cf..1227b6c6 100644 --- a/framework/foundation/include/bdn/config.h +++ b/framework/foundation/include/bdn/config.h @@ -1,8 +1,8 @@ #pragma once -#include #include #include +#include #include #include diff --git a/framework/foundation/include/bdn/errno.h b/framework/foundation/include/bdn/errno.h index da579502..f3c661df 100644 --- a/framework/foundation/include/bdn/errno.h +++ b/framework/foundation/include/bdn/errno.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include #include diff --git a/framework/foundation/include/bdn/func.h b/framework/foundation/include/bdn/func.h index cbd3a6ba..3a560b42 100644 --- a/framework/foundation/include/bdn/func.h +++ b/framework/foundation/include/bdn/func.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include diff --git a/framework/foundation/include/bdn/mainThread.h b/framework/foundation/include/bdn/mainThread.h index 99a9bb84..6133e977 100644 --- a/framework/foundation/include/bdn/mainThread.h +++ b/framework/foundation/include/bdn/mainThread.h @@ -1,9 +1,9 @@ #pragma once -#include -#include -#include #include +#include +#include +#include #include diff --git a/framework/foundation/include/bdn/property/Backing.h b/framework/foundation/include/bdn/property/Backing.h index f3780a6c..cd51d183 100644 --- a/framework/foundation/include/bdn/property/Backing.h +++ b/framework/foundation/include/bdn/property/Backing.h @@ -1,13 +1,12 @@ #pragma once -#include -#include #include - +#include #include namespace bdn { + template class Property; template class Backing : virtual public IValueAccessor { @@ -57,4 +56,4 @@ namespace bdn protected: mutable notifier_t_ptr _pOnChange; }; -} \ No newline at end of file +} diff --git a/framework/foundation/include/bdn/property/Property.h b/framework/foundation/include/bdn/property/Property.h index 1d16b96b..d3302d4a 100644 --- a/framework/foundation/include/bdn/property/Property.h +++ b/framework/foundation/include/bdn/property/Property.h @@ -3,12 +3,12 @@ #include #include -#include -#include -#include #include -#include +#include +#include #include +#include +#include #include diff --git a/framework/foundation/platforms/android/include/bdn/android/Dispatcher.h b/framework/foundation/platforms/android/include/bdn/android/Dispatcher.h index 1978a75b..1af23458 100644 --- a/framework/foundation/platforms/android/include/bdn/android/Dispatcher.h +++ b/framework/foundation/platforms/android/include/bdn/android/Dispatcher.h @@ -2,8 +2,8 @@ #include -#include #include +#include namespace bdn { diff --git a/framework/foundation/platforms/android/include/bdn/android/JBaseBundle.h b/framework/foundation/platforms/android/include/bdn/android/JBaseBundle.h index e55d9d30..a9a36d12 100644 --- a/framework/foundation/platforms/android/include/bdn/android/JBaseBundle.h +++ b/framework/foundation/platforms/android/include/bdn/android/JBaseBundle.h @@ -1,8 +1,8 @@ #pragma once +#include #include #include -#include namespace bdn { diff --git a/framework/foundation/platforms/android/include/bdn/android/JContext.h b/framework/foundation/platforms/android/include/bdn/android/JContext.h index 5faf768a..b02914ec 100644 --- a/framework/foundation/platforms/android/include/bdn/android/JContext.h +++ b/framework/foundation/platforms/android/include/bdn/android/JContext.h @@ -1,8 +1,8 @@ #pragma once -#include -#include #include +#include +#include namespace bdn { diff --git a/framework/foundation/platforms/android/include/bdn/android/JIntent.h b/framework/foundation/platforms/android/include/bdn/android/JIntent.h index 7f0b697e..940e7258 100644 --- a/framework/foundation/platforms/android/include/bdn/android/JIntent.h +++ b/framework/foundation/platforms/android/include/bdn/android/JIntent.h @@ -1,8 +1,8 @@ #pragma once -#include #include #include +#include namespace bdn { @@ -23,10 +23,10 @@ namespace bdn return javaClass().newInstance_(constructorId, string, uri); } - JIntent(String string, JUri uri) : JTObject(createIntentInstance(string, uri)) {} + JIntent(String string, JUri uri) : JTObject(createIntentInstance(string, uri)) {} public: - using java::JTObject::JTObject; + using JTObject::JTObject; java::Method getAction{this, "getAction"}; java::Method getExtras{this, "getExtras"}; diff --git a/framework/foundation/platforms/android/include/bdn/android/JResources.h b/framework/foundation/platforms/android/include/bdn/android/JResources.h index da3bab3b..e104a2e4 100644 --- a/framework/foundation/platforms/android/include/bdn/android/JResources.h +++ b/framework/foundation/platforms/android/include/bdn/android/JResources.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/foundation/platforms/android/include/bdn/java/ArrayOfObjects.h b/framework/foundation/platforms/android/include/bdn/java/ArrayOfObjects.h index 9b255503..3e7fc9c0 100644 --- a/framework/foundation/platforms/android/include/bdn/java/ArrayOfObjects.h +++ b/framework/foundation/platforms/android/include/bdn/java/ArrayOfObjects.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/foundation/platforms/android/include/bdn/java/Field.h b/framework/foundation/platforms/android/include/bdn/java/Field.h index bc6c6904..5158afea 100644 --- a/framework/foundation/platforms/android/include/bdn/java/Field.h +++ b/framework/foundation/platforms/android/include/bdn/java/Field.h @@ -1,8 +1,8 @@ #pragma once #include -#include #include +#include #include namespace bdn diff --git a/framework/foundation/platforms/android/include/bdn/java/JByteBuffer.h b/framework/foundation/platforms/android/include/bdn/java/JByteBuffer.h index 8612dd23..dfeaeb4c 100644 --- a/framework/foundation/platforms/android/include/bdn/java/JByteBuffer.h +++ b/framework/foundation/platforms/android/include/bdn/java/JByteBuffer.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/foundation/platforms/android/include/bdn/java/JClass.h b/framework/foundation/platforms/android/include/bdn/java/JClass.h index 6e803454..aa9f98f1 100644 --- a/framework/foundation/platforms/android/include/bdn/java/JClass.h +++ b/framework/foundation/platforms/android/include/bdn/java/JClass.h @@ -19,11 +19,11 @@ namespace bdn } } +#include #include #include -#include -#include #include +#include namespace bdn { diff --git a/framework/foundation/platforms/android/include/bdn/java/JNativeException.h b/framework/foundation/platforms/android/include/bdn/java/JNativeException.h index acd6638d..f4649fe4 100644 --- a/framework/foundation/platforms/android/include/bdn/java/JNativeException.h +++ b/framework/foundation/platforms/android/include/bdn/java/JNativeException.h @@ -1,11 +1,11 @@ #pragma once -#include #include +#include -#include -#include #include +#include +#include #include diff --git a/framework/foundation/platforms/android/include/bdn/java/JNativeRunnable.h b/framework/foundation/platforms/android/include/bdn/java/JNativeRunnable.h index 7084c8d6..6b58abc1 100644 --- a/framework/foundation/platforms/android/include/bdn/java/JNativeRunnable.h +++ b/framework/foundation/platforms/android/include/bdn/java/JNativeRunnable.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include diff --git a/framework/foundation/platforms/android/include/bdn/java/JNativeStrongPointer.h b/framework/foundation/platforms/android/include/bdn/java/JNativeStrongPointer.h index fd9df8a8..4a95bb5c 100644 --- a/framework/foundation/platforms/android/include/bdn/java/JNativeStrongPointer.h +++ b/framework/foundation/platforms/android/include/bdn/java/JNativeStrongPointer.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/foundation/platforms/android/include/bdn/java/JString.h b/framework/foundation/platforms/android/include/bdn/java/JString.h index e171bb17..045ddc49 100644 --- a/framework/foundation/platforms/android/include/bdn/java/JString.h +++ b/framework/foundation/platforms/android/include/bdn/java/JString.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/foundation/platforms/android/include/bdn/java/MethodId.h b/framework/foundation/platforms/android/include/bdn/java/MethodId.h index f9433534..899ca515 100644 --- a/framework/foundation/platforms/android/include/bdn/java/MethodId.h +++ b/framework/foundation/platforms/android/include/bdn/java/MethodId.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/foundation/platforms/android/include/bdn/java/NativeWeakPointer.h b/framework/foundation/platforms/android/include/bdn/java/NativeWeakPointer.h index 69669bbe..479432f1 100644 --- a/framework/foundation/platforms/android/include/bdn/java/NativeWeakPointer.h +++ b/framework/foundation/platforms/android/include/bdn/java/NativeWeakPointer.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include diff --git a/framework/foundation/platforms/android/src/Dispatcher.cpp b/framework/foundation/platforms/android/src/Dispatcher.cpp index ea383d2f..65e00fd0 100644 --- a/framework/foundation/platforms/android/src/Dispatcher.cpp +++ b/framework/foundation/platforms/android/src/Dispatcher.cpp @@ -1,5 +1,5 @@ -#include #include +#include #include diff --git a/framework/foundation/platforms/android/src/java/Env.cpp b/framework/foundation/platforms/android/src/java/Env.cpp index 2c64af7d..d982df3c 100644 --- a/framework/foundation/platforms/android/src/java/Env.cpp +++ b/framework/foundation/platforms/android/src/java/Env.cpp @@ -1,8 +1,8 @@ #include -#include #include +#include extern "C" JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { diff --git a/framework/foundation/platforms/android/src/java/JNativeRunnable.cpp b/framework/foundation/platforms/android/src/java/JNativeRunnable.cpp index ec0a1079..498d9c0e 100644 --- a/framework/foundation/platforms/android/src/java/JNativeRunnable.cpp +++ b/framework/foundation/platforms/android/src/java/JNativeRunnable.cpp @@ -1,8 +1,8 @@ #include -#include #include +#include extern "C" JNIEXPORT void JNICALL Java_io_boden_java_NativeRunnable_nativeRun(JNIEnv *pEnv, jobject rawSelf, jobject rawNativeObject) diff --git a/framework/foundation/platforms/android/src/java/JNativeStrongPointer.cpp b/framework/foundation/platforms/android/src/java/JNativeStrongPointer.cpp index ac97242e..8d885dc6 100644 --- a/framework/foundation/platforms/android/src/java/JNativeStrongPointer.cpp +++ b/framework/foundation/platforms/android/src/java/JNativeStrongPointer.cpp @@ -1,9 +1,9 @@ #include -#include -#include #include +#include +#include extern "C" JNIEXPORT void JNICALL Java_io_boden_java_NativeStrongPointer_disposed(JNIEnv *pEnv, jobject rawSelf, jobject rawByteBuffer) diff --git a/framework/foundation/platforms/android/src/platform/androidplatform.cpp b/framework/foundation/platforms/android/src/platform/androidplatform.cpp index fbffbf88..f38e7735 100644 --- a/framework/foundation/platforms/android/src/platform/androidplatform.cpp +++ b/framework/foundation/platforms/android/src/platform/androidplatform.cpp @@ -1,7 +1,7 @@ -#include -#include #include +#include +#include #include #include diff --git a/framework/foundation/platforms/foundationkit/include/bdn/foundationkit/MainDispatcher.hh b/framework/foundation/platforms/foundationkit/include/bdn/foundationkit/MainDispatcher.hh index 3d260fd0..3c29dcf9 100644 --- a/framework/foundation/platforms/foundationkit/include/bdn/foundationkit/MainDispatcher.hh +++ b/framework/foundation/platforms/foundationkit/include/bdn/foundationkit/MainDispatcher.hh @@ -3,8 +3,8 @@ #include #include -#include #include +#include #import diff --git a/framework/foundation/platforms/foundationkit/src/MainDispatcher.mm b/framework/foundation/platforms/foundationkit/src/MainDispatcher.mm index 79a364c8..8ff42598 100644 --- a/framework/foundation/platforms/foundationkit/src/MainDispatcher.mm +++ b/framework/foundation/platforms/foundationkit/src/MainDispatcher.mm @@ -1,10 +1,10 @@ #import +#include +#include #include #include -#include -#include #include #import diff --git a/framework/foundation/platforms/foundationkit/src/exceptionUtil.mm b/framework/foundation/platforms/foundationkit/src/exceptionUtil.mm index 3f59629a..06094965 100644 --- a/framework/foundation/platforms/foundationkit/src/exceptionUtil.mm +++ b/framework/foundation/platforms/foundationkit/src/exceptionUtil.mm @@ -5,8 +5,8 @@ #import #import -#include #include +#include #import diff --git a/framework/foundation/platforms/ios/src/AppRunner.mm b/framework/foundation/platforms/ios/src/AppRunner.mm index 4380929f..ca46b524 100644 --- a/framework/foundation/platforms/ios/src/AppRunner.mm +++ b/framework/foundation/platforms/ios/src/AppRunner.mm @@ -5,8 +5,8 @@ #import #import -#include #include +#include #include diff --git a/framework/foundation/platforms/ios/src/platform/iosplatform.mm b/framework/foundation/platforms/ios/src/platform/iosplatform.mm index cc31f3a8..3dcb569b 100644 --- a/framework/foundation/platforms/ios/src/platform/iosplatform.mm +++ b/framework/foundation/platforms/ios/src/platform/iosplatform.mm @@ -1,14 +1,14 @@ -#include #include +#include #include #include +#include +#include #include #include -#include -#include #include diff --git a/framework/foundation/platforms/mac/include/bdn/mac/util.hh b/framework/foundation/platforms/mac/include/bdn/mac/util.hh index 9bc63b0d..91bf4e9b 100644 --- a/framework/foundation/platforms/mac/include/bdn/mac/util.hh +++ b/framework/foundation/platforms/mac/include/bdn/mac/util.hh @@ -1,8 +1,8 @@ #pragma once #import -#import #include +#import #include diff --git a/framework/foundation/platforms/mac/src/platform/macplatform.cpp b/framework/foundation/platforms/mac/src/platform/macplatform.cpp index ad733f78..3e2977f8 100644 --- a/framework/foundation/platforms/mac/src/platform/macplatform.cpp +++ b/framework/foundation/platforms/mac/src/platform/macplatform.cpp @@ -1,13 +1,13 @@ -#include #include +#include #include #include +#include #include #include -#include #include diff --git a/framework/foundation/src/AppRunnerBase.cpp b/framework/foundation/src/AppRunnerBase.cpp index 5326e4ba..dce4801c 100644 --- a/framework/foundation/src/AppRunnerBase.cpp +++ b/framework/foundation/src/AppRunnerBase.cpp @@ -2,8 +2,8 @@ #include #include -#include #include +#include namespace bdn { diff --git a/framework/foundation/src/GenericDispatcher.cpp b/framework/foundation/src/GenericDispatcher.cpp index 9da77502..526babe5 100644 --- a/framework/foundation/src/GenericDispatcher.cpp +++ b/framework/foundation/src/GenericDispatcher.cpp @@ -2,8 +2,8 @@ #include #include -#include #include +#include namespace bdn { diff --git a/framework/foundation/src/IDispatcher.cpp b/framework/foundation/src/IDispatcher.cpp index bab49b45..2a29448d 100644 --- a/framework/foundation/src/IDispatcher.cpp +++ b/framework/foundation/src/IDispatcher.cpp @@ -1,6 +1,6 @@ -#include #include +#include namespace bdn { diff --git a/framework/foundation/src/ProgrammingError.cpp b/framework/foundation/src/ProgrammingError.cpp index e8375c89..072e117d 100644 --- a/framework/foundation/src/ProgrammingError.cpp +++ b/framework/foundation/src/ProgrammingError.cpp @@ -1,8 +1,8 @@ #include -#include #include +#include #include diff --git a/framework/foundation/src/genericAppEntry.cpp b/framework/foundation/src/genericAppEntry.cpp index 26a1b92c..498ed844 100644 --- a/framework/foundation/src/genericAppEntry.cpp +++ b/framework/foundation/src/genericAppEntry.cpp @@ -1,8 +1,8 @@ #include -#include #include +#include namespace bdn { diff --git a/framework/foundation/src/localeUtil.cpp b/framework/foundation/src/localeUtil.cpp index 4d7c2aeb..b5e467f9 100644 --- a/framework/foundation/src/localeUtil.cpp +++ b/framework/foundation/src/localeUtil.cpp @@ -1,8 +1,8 @@ #include -#include #include +#include namespace bdn { diff --git a/framework/net/include/bdn/HTTPResponse.h b/framework/net/include/bdn/HTTPResponse.h index bf8cf27c..66d857bc 100644 --- a/framework/net/include/bdn/HTTPResponse.h +++ b/framework/net/include/bdn/HTTPResponse.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/net/platforms/android/include/HTTP.h b/framework/net/platforms/android/include/HTTP.h index 555410ec..30becd9d 100644 --- a/framework/net/platforms/android/include/HTTP.h +++ b/framework/net/platforms/android/include/HTTP.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include namespace bdn diff --git a/framework/net/platforms/android/include/VolleyAdapter.h b/framework/net/platforms/android/include/VolleyAdapter.h index f2f39e64..b1c3440e 100644 --- a/framework/net/platforms/android/include/VolleyAdapter.h +++ b/framework/net/platforms/android/include/VolleyAdapter.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include #include @@ -18,13 +18,12 @@ namespace bdn { constexpr char kVolleyAdapterClassName[] = "io/boden/java/VolleyAdapter"; - class JVolleyAdapter : public bdn::java::JTObject + class JVolleyAdapter : public java::JTObject { public: - using JTObject::JTObject; + using JTObject::JTObject; - bdn::java::Method)> request{this, - "request"}; + java::Method)> request{this, "request"}; static constexpr int toVolleyRequestMethod(bdn::net::http::Method bdnHttpMethod) { diff --git a/framework/net/platforms/android/src/HTTP.cpp b/framework/net/platforms/android/src/HTTP.cpp index 01a6e873..9d424bc1 100644 --- a/framework/net/platforms/android/src/HTTP.cpp +++ b/framework/net/platforms/android/src/HTTP.cpp @@ -1,14 +1,14 @@ -#include +#include #include #include #include -#include +#include #include #include #include -#include "VolleyAdapter.h" #include "../../../include/bdn/HTTPRequest.h" +#include "VolleyAdapter.h" namespace bdn { diff --git a/framework/net/platforms/mac/src/HTTP.mm b/framework/net/platforms/mac/src/HTTP.mm index c9d164a4..f747a856 100644 --- a/framework/net/platforms/mac/src/HTTP.mm +++ b/framework/net/platforms/mac/src/HTTP.mm @@ -1,8 +1,8 @@ -#include +#include #include #include #include -#include +#include #ifdef BDN_PLATFORM_OSX #import diff --git a/framework/testing/include/bdn/test.h b/framework/testing/include/bdn/test.h index 083edcda..13c1bd6c 100644 --- a/framework/testing/include/bdn/test.h +++ b/framework/testing/include/bdn/test.h @@ -102,19 +102,19 @@ #define INTERNAL_BDN_STRINGIFY2(expr) #expr #define INTERNAL_BDN_STRINGIFY(expr) INTERNAL_BDN_STRINGIFY2(expr) -#include -#include #include #include +#include +#include -#include -#include #include +#include +#include +#include #include #include #include #include -#include #include // #included from: catch_compiler_capabilities.h @@ -605,8 +605,8 @@ namespace bdn #endif #include -#include #include +#include namespace bdn { @@ -1664,11 +1664,11 @@ namespace bdn // #included from: catch_tostring.h #define TWOBLUECUBES_BDN_TOSTRING_H_INCLUDED -#include +#include #include #include +#include #include -#include #ifdef __OBJC__ // #included from: catch_objc_arc.hpp @@ -2198,8 +2198,8 @@ namespace bdn #include -#include #include +#include // #included from: catch_interfaces_runner.h #define TWOBLUECUBES_BDN_INTERFACES_RUNNER_H_INCLUDED diff --git a/framework/testing/include/bdn/test/MockButtonCore.h b/framework/testing/include/bdn/test/MockButtonCore.h index 8a03a0e0..0fcae597 100644 --- a/framework/testing/include/bdn/test/MockButtonCore.h +++ b/framework/testing/include/bdn/test/MockButtonCore.h @@ -2,8 +2,8 @@ #include -#include #include +#include namespace bdn { diff --git a/framework/testing/include/bdn/test/MockCheckboxCore.h b/framework/testing/include/bdn/test/MockCheckboxCore.h index 8c097a1a..420e60d9 100644 --- a/framework/testing/include/bdn/test/MockCheckboxCore.h +++ b/framework/testing/include/bdn/test/MockCheckboxCore.h @@ -2,8 +2,8 @@ #include -#include #include +#include namespace bdn { diff --git a/framework/testing/include/bdn/test/MockSwitchCore.h b/framework/testing/include/bdn/test/MockSwitchCore.h index 27650eb6..50796830 100644 --- a/framework/testing/include/bdn/test/MockSwitchCore.h +++ b/framework/testing/include/bdn/test/MockSwitchCore.h @@ -2,8 +2,8 @@ #include -#include #include +#include namespace bdn { diff --git a/framework/testing/include/bdn/test/MockUIProvider.h b/framework/testing/include/bdn/test/MockUIProvider.h index 188f7460..b00205b4 100644 --- a/framework/testing/include/bdn/test/MockUIProvider.h +++ b/framework/testing/include/bdn/test/MockUIProvider.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include diff --git a/framework/testing/include/bdn/test/MockViewCore.h b/framework/testing/include/bdn/test/MockViewCore.h index b6c73bda..477cb381 100644 --- a/framework/testing/include/bdn/test/MockViewCore.h +++ b/framework/testing/include/bdn/test/MockViewCore.h @@ -1,9 +1,9 @@ #pragma once -#include #include -#include +#include #include +#include #include diff --git a/framework/testing/include/bdn/test/ScrollViewLayoutTesterBase.h b/framework/testing/include/bdn/test/ScrollViewLayoutTesterBase.h index b45f15b8..8186e4ce 100644 --- a/framework/testing/include/bdn/test/ScrollViewLayoutTesterBase.h +++ b/framework/testing/include/bdn/test/ScrollViewLayoutTesterBase.h @@ -1,8 +1,8 @@ #pragma once #include -#include #include +#include namespace bdn { diff --git a/framework/testing/include/bdn/test/TestButtonCore.h b/framework/testing/include/bdn/test/TestButtonCore.h index e1041c36..6bd63789 100644 --- a/framework/testing/include/bdn/test/TestButtonCore.h +++ b/framework/testing/include/bdn/test/TestButtonCore.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/testing/include/bdn/test/TestCheckboxCore.h b/framework/testing/include/bdn/test/TestCheckboxCore.h index 487e9d8a..c79ff17e 100644 --- a/framework/testing/include/bdn/test/TestCheckboxCore.h +++ b/framework/testing/include/bdn/test/TestCheckboxCore.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/testing/include/bdn/test/TestContainerViewCore.h b/framework/testing/include/bdn/test/TestContainerViewCore.h index 6b2b217d..8cad6072 100644 --- a/framework/testing/include/bdn/test/TestContainerViewCore.h +++ b/framework/testing/include/bdn/test/TestContainerViewCore.h @@ -1,8 +1,8 @@ #pragma once -#include -#include #include +#include +#include namespace bdn { diff --git a/framework/testing/include/bdn/test/TestScrollViewCore.h b/framework/testing/include/bdn/test/TestScrollViewCore.h index c32c8e60..302d4bdc 100644 --- a/framework/testing/include/bdn/test/TestScrollViewCore.h +++ b/framework/testing/include/bdn/test/TestScrollViewCore.h @@ -1,8 +1,8 @@ #pragma once -#include -#include #include +#include +#include #include diff --git a/framework/testing/include/bdn/test/TestSwitchCore.h b/framework/testing/include/bdn/test/TestSwitchCore.h index 53cab23f..e3e061ed 100644 --- a/framework/testing/include/bdn/test/TestSwitchCore.h +++ b/framework/testing/include/bdn/test/TestSwitchCore.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/testing/include/bdn/test/TestTextFieldCore.h b/framework/testing/include/bdn/test/TestTextFieldCore.h index 6172a427..917da6fb 100644 --- a/framework/testing/include/bdn/test/TestTextFieldCore.h +++ b/framework/testing/include/bdn/test/TestTextFieldCore.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/testing/include/bdn/test/TestTextViewCore.h b/framework/testing/include/bdn/test/TestTextViewCore.h index a78b6477..976fe78b 100644 --- a/framework/testing/include/bdn/test/TestTextViewCore.h +++ b/framework/testing/include/bdn/test/TestTextViewCore.h @@ -2,7 +2,6 @@ #include #include -#include namespace bdn { diff --git a/framework/testing/include/bdn/test/TestViewCore.h b/framework/testing/include/bdn/test/TestViewCore.h index 2cb0b25c..efa9d8a8 100644 --- a/framework/testing/include/bdn/test/TestViewCore.h +++ b/framework/testing/include/bdn/test/TestViewCore.h @@ -1,12 +1,12 @@ #pragma once +#include +#include +#include #include #include #include #include -#include -#include -#include using namespace std::chrono_literals; diff --git a/framework/testing/include/bdn/test/TestWindowCore.h b/framework/testing/include/bdn/test/TestWindowCore.h index d6c2b718..cf30f02c 100644 --- a/framework/testing/include/bdn/test/TestWindowCore.h +++ b/framework/testing/include/bdn/test/TestWindowCore.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/testing/include/bdn/test/testCalcPreferredSize.h b/framework/testing/include/bdn/test/testCalcPreferredSize.h index 67f83bbd..d59d752e 100644 --- a/framework/testing/include/bdn/test/testCalcPreferredSize.h +++ b/framework/testing/include/bdn/test/testCalcPreferredSize.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/testing/include/bdn/test/testDispatcher.h b/framework/testing/include/bdn/test/testDispatcher.h index fffa1911..b1c6d6c6 100644 --- a/framework/testing/include/bdn/test/testDispatcher.h +++ b/framework/testing/include/bdn/test/testDispatcher.h @@ -3,8 +3,8 @@ #include #include -#include #include +#include using namespace std::chrono_literals; diff --git a/framework/testing/include/bdn/test/testView.h b/framework/testing/include/bdn/test/testView.h index fafec058..008f8abe 100644 --- a/framework/testing/include/bdn/test/testView.h +++ b/framework/testing/include/bdn/test/testView.h @@ -1,9 +1,9 @@ #pragma once #include +#include #include #include -#include namespace bdn { diff --git a/framework/testing/src/test.cpp b/framework/testing/src/test.cpp index d2bca6d3..b592fa0a 100644 --- a/framework/testing/src/test.cpp +++ b/framework/testing/src/test.cpp @@ -39,18 +39,18 @@ DEALINGS IN THE SOFTWARE. #include -#include #include -#include -#include +#include #include +#include +#include +#include #include -#include +#include +#include #include -#include +#include #include -#include -#include #include @@ -466,9 +466,9 @@ namespace bdn }; } -#include -#include #include +#include +#include namespace bdn { @@ -537,11 +537,11 @@ namespace bdn }; } +#include +#include #include -#include #include -#include -#include +#include #ifndef BDN_CONFIG_CONSOLE_WIDTH #define BDN_CONFIG_CONSOLE_WIDTH 80 @@ -719,9 +719,9 @@ namespace bdn #define TBC_TEXT_FORMAT_H_INCLUDED #endif +#include #include #include -#include // Use optional outer namespace #ifdef STITCH_TBC_TEXT_FORMAT_OUTER_NAMESPACE @@ -874,10 +874,10 @@ namespace STITCH_TBC_TEXT_FORMAT_OUTER_NAMESPACE #undef STITCH_TBC_TEXT_FORMAT_OPEN_NAMESPACE -#include #include -#include +#include #include +#include // Use optional outer namespace #ifdef STITCH_CLARA_OPEN_NAMESPACE @@ -1780,9 +1780,9 @@ namespace bdn #endif #endif #ifndef TWOBLUECUBES_TEXT_FORMAT_H_ALREADY_INCLUDED +#include #include #include -#include // Use optional outer namespace #ifdef CLICHE_TBC_TEXT_FORMAT_OUTER_NAMESPACE @@ -2000,10 +2000,10 @@ namespace bdn // #included from: catch_interfaces_reporter.h #define TWOBLUECUBES_BDN_INTERFACES_REPORTER_H_INCLUDED -#include -#include -#include #include +#include +#include +#include namespace bdn { @@ -2253,8 +2253,8 @@ namespace bdn Ptr const &additionalReporter); } -#include #include +#include namespace bdn { @@ -2415,9 +2415,9 @@ namespace bdn // #included from: catch_test_case_tracker.hpp #define TWOBLUECUBES_BDN_TEST_CASE_TRACKER_HPP_INCLUDED +#include #include #include -#include #include namespace bdn @@ -4000,8 +4000,8 @@ namespace bdn } #include -#include #include +#include namespace bdn { @@ -4307,12 +4307,12 @@ namespace bdn // #included from: catch_test_case_registry_impl.hpp #define TWOBLUECUBES_BDN_TEST_CASE_REGISTRY_IMPL_HPP_INCLUDED -#include -#include -#include -#include #include +#include #include +#include +#include +#include namespace bdn { @@ -4670,9 +4670,9 @@ namespace bdn // #included from: catch_stream.hpp #define TWOBLUECUBES_BDN_STREAM_HPP_INCLUDED -#include #include #include +#include namespace bdn { @@ -5047,9 +5047,9 @@ namespace bdn // #included from: catch_generators_impl.hpp #define TWOBLUECUBES_BDN_GENERATORS_IMPL_HPP_INCLUDED -#include -#include #include +#include +#include namespace bdn { @@ -6187,8 +6187,8 @@ namespace bdn } // end namespace bdn -#include #include +#include namespace bdn { @@ -6760,10 +6760,10 @@ namespace bdn // #included from: ../internal/catch_xmlwriter.hpp #define TWOBLUECUBES_BDN_XMLWRITER_HPP_INCLUDED +#include #include #include #include -#include namespace bdn { diff --git a/framework/testing/src/test/MockUIProvider.cpp b/framework/testing/src/test/MockUIProvider.cpp index bb34d39f..312725d1 100644 --- a/framework/testing/src/test/MockUIProvider.cpp +++ b/framework/testing/src/test/MockUIProvider.cpp @@ -1,15 +1,15 @@ -#include #include +#include -#include -#include #include #include +#include +#include #include -#include #include -#include +#include +#include namespace bdn { diff --git a/framework/ui/include/bdn/Button.h b/framework/ui/include/bdn/Button.h index be5d0c93..8ec8a46a 100644 --- a/framework/ui/include/bdn/Button.h +++ b/framework/ui/include/bdn/Button.h @@ -1,9 +1,9 @@ #pragma once -#include -#include #include +#include #include +#include namespace bdn { diff --git a/framework/ui/include/bdn/Checkbox.h b/framework/ui/include/bdn/Checkbox.h index 7592774b..8eb96408 100644 --- a/framework/ui/include/bdn/Checkbox.h +++ b/framework/ui/include/bdn/Checkbox.h @@ -1,10 +1,10 @@ #pragma once -#include -#include -#include #include +#include #include +#include +#include namespace bdn { diff --git a/framework/ui/include/bdn/CheckboxCore.h b/framework/ui/include/bdn/CheckboxCore.h index af220293..8e0184a8 100644 --- a/framework/ui/include/bdn/CheckboxCore.h +++ b/framework/ui/include/bdn/CheckboxCore.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/ui/include/bdn/IViewCore.h b/framework/ui/include/bdn/IViewCore.h index 79c38827..78ed0153 100644 --- a/framework/ui/include/bdn/IViewCore.h +++ b/framework/ui/include/bdn/IViewCore.h @@ -5,9 +5,9 @@ namespace bdn class View; } -#include #include #include +#include #include #include diff --git a/framework/ui/include/bdn/LayoutCoordinator.h b/framework/ui/include/bdn/LayoutCoordinator.h index 5fb70cab..ed4475e4 100644 --- a/framework/ui/include/bdn/LayoutCoordinator.h +++ b/framework/ui/include/bdn/LayoutCoordinator.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include diff --git a/framework/ui/include/bdn/LinearLayoutViewTypes.h b/framework/ui/include/bdn/LinearLayoutViewTypes.h index 842ee384..f78e29a8 100644 --- a/framework/ui/include/bdn/LinearLayoutViewTypes.h +++ b/framework/ui/include/bdn/LinearLayoutViewTypes.h @@ -1,9 +1,9 @@ #pragma once +#include #include -#include #include -#include +#include #include diff --git a/framework/ui/include/bdn/ListView.h b/framework/ui/include/bdn/ListView.h index f1faa160..a56e9ef0 100644 --- a/framework/ui/include/bdn/ListView.h +++ b/framework/ui/include/bdn/ListView.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/ui/include/bdn/ListViewDataSource.h b/framework/ui/include/bdn/ListViewDataSource.h index b1fbca07..bedb5504 100644 --- a/framework/ui/include/bdn/ListViewDataSource.h +++ b/framework/ui/include/bdn/ListViewDataSource.h @@ -1,6 +1,6 @@ #pragma once -#include +#include namespace bdn { @@ -12,4 +12,4 @@ namespace bdn virtual size_t numberOfRows() = 0; virtual String labelTextForRowIndex(size_t rowIndex) = 0; }; -} \ No newline at end of file +} diff --git a/framework/ui/include/bdn/PreferredViewSizeManager.h b/framework/ui/include/bdn/PreferredViewSizeManager.h index 3638a744..17cc04b8 100644 --- a/framework/ui/include/bdn/PreferredViewSizeManager.h +++ b/framework/ui/include/bdn/PreferredViewSizeManager.h @@ -1,5 +1,9 @@ #pragma once +#include +#include +#include + namespace bdn { diff --git a/framework/ui/include/bdn/ScrollViewLayoutHelper.h b/framework/ui/include/bdn/ScrollViewLayoutHelper.h index 6fff6217..5e97ddae 100644 --- a/framework/ui/include/bdn/ScrollViewLayoutHelper.h +++ b/framework/ui/include/bdn/ScrollViewLayoutHelper.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/ui/include/bdn/StackCore.h b/framework/ui/include/bdn/StackCore.h index 91f2a713..4c14ce2e 100644 --- a/framework/ui/include/bdn/StackCore.h +++ b/framework/ui/include/bdn/StackCore.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/ui/include/bdn/TextField.h b/framework/ui/include/bdn/TextField.h index c84de48e..057ab956 100644 --- a/framework/ui/include/bdn/TextField.h +++ b/framework/ui/include/bdn/TextField.h @@ -1,9 +1,9 @@ #pragma once -#include #include -#include #include +#include +#include namespace bdn { diff --git a/framework/ui/include/bdn/TextView.h b/framework/ui/include/bdn/TextView.h index 70fcb75b..c64a1970 100644 --- a/framework/ui/include/bdn/TextView.h +++ b/framework/ui/include/bdn/TextView.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/ui/include/bdn/UIProvider.h b/framework/ui/include/bdn/UIProvider.h index a772e8fb..a5ebd4e0 100644 --- a/framework/ui/include/bdn/UIProvider.h +++ b/framework/ui/include/bdn/UIProvider.h @@ -5,9 +5,9 @@ namespace bdn class UIProvider; } +#include #include #include -#include #include namespace bdn diff --git a/framework/ui/include/bdn/UISize.h b/framework/ui/include/bdn/UISize.h index 1c6d42a3..fb36fa33 100644 --- a/framework/ui/include/bdn/UISize.h +++ b/framework/ui/include/bdn/UISize.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/ui/include/bdn/View.h b/framework/ui/include/bdn/View.h index 8c9ce545..1cb4822f 100644 --- a/framework/ui/include/bdn/View.h +++ b/framework/ui/include/bdn/View.h @@ -7,13 +7,13 @@ namespace bdn class UIProvider; // included below } +#include +#include #include #include -#include -#include #include +#include #include -#include #include diff --git a/framework/ui/platforms/android/include/bdn/android/ButtonCore.h b/framework/ui/platforms/android/include/bdn/android/ButtonCore.h index 6515a841..29fe7142 100644 --- a/framework/ui/platforms/android/include/bdn/android/ButtonCore.h +++ b/framework/ui/platforms/android/include/bdn/android/ButtonCore.h @@ -1,9 +1,9 @@ #pragma once -#include -#include -#include #include +#include +#include +#include namespace bdn { diff --git a/framework/ui/platforms/android/include/bdn/android/CheckboxCore.h b/framework/ui/platforms/android/include/bdn/android/CheckboxCore.h index dfd6472b..a1cb86c0 100644 --- a/framework/ui/platforms/android/include/bdn/android/CheckboxCore.h +++ b/framework/ui/platforms/android/include/bdn/android/CheckboxCore.h @@ -1,10 +1,10 @@ #pragma once -#include -#include -#include #include +#include +#include #include +#include namespace bdn { diff --git a/framework/ui/platforms/android/include/bdn/android/ContainerViewCore.h b/framework/ui/platforms/android/include/bdn/android/ContainerViewCore.h index 0be3de5f..a56552b9 100644 --- a/framework/ui/platforms/android/include/bdn/android/ContainerViewCore.h +++ b/framework/ui/platforms/android/include/bdn/android/ContainerViewCore.h @@ -1,9 +1,9 @@ #pragma once #include -#include #include #include +#include namespace bdn { diff --git a/framework/ui/platforms/android/include/bdn/android/IParentViewCore.h b/framework/ui/platforms/android/include/bdn/android/IParentViewCore.h index 81965ef5..3b9cf194 100644 --- a/framework/ui/platforms/android/include/bdn/android/IParentViewCore.h +++ b/framework/ui/platforms/android/include/bdn/android/IParentViewCore.h @@ -1,5 +1,7 @@ #pragma once +#include + namespace bdn { namespace android diff --git a/framework/ui/platforms/android/include/bdn/android/JAdapterView.h b/framework/ui/platforms/android/include/bdn/android/JAdapterView.h index f7c483d5..27a6cc0e 100644 --- a/framework/ui/platforms/android/include/bdn/android/JAdapterView.h +++ b/framework/ui/platforms/android/include/bdn/android/JAdapterView.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { @@ -20,8 +20,8 @@ namespace bdn using JBaseViewGroup::JBaseViewGroup; using JAdapterView = JBaseViewGroup<>; - Method setAdapter{this, "setAdapter"}; - Method setOnItemClickListener{this, "setOnItemClickListener"}; + java::Method setAdapter{this, "setAdapter"}; + java::Method setOnItemClickListener{this, "setOnItemClickListener"}; }; } } diff --git a/framework/ui/platforms/android/include/bdn/android/JCheckBox.h b/framework/ui/platforms/android/include/bdn/android/JCheckBox.h index 6144df06..9ce0265a 100644 --- a/framework/ui/platforms/android/include/bdn/android/JCheckBox.h +++ b/framework/ui/platforms/android/include/bdn/android/JCheckBox.h @@ -16,7 +16,7 @@ namespace bdn using JBaseCompoundButton::JBaseCompoundButton; public: - Method setChecked{this, "setChecked"}; + java::Method setChecked{this, "setChecked"}; }; } } diff --git a/framework/ui/platforms/android/include/bdn/android/JCompoundButton.h b/framework/ui/platforms/android/include/bdn/android/JCompoundButton.h index 0ac9c79f..81b4a48a 100644 --- a/framework/ui/platforms/android/include/bdn/android/JCompoundButton.h +++ b/framework/ui/platforms/android/include/bdn/android/JCompoundButton.h @@ -16,7 +16,7 @@ namespace bdn using JBaseTextView::JBaseTextView; public: - Method isChecked{this, "isChecked"}; + java::Method isChecked{this, "isChecked"}; }; using JCompountButton = JBaseCompoundButton<>; diff --git a/framework/ui/platforms/android/include/bdn/android/JHorizontalScrollView.h b/framework/ui/platforms/android/include/bdn/android/JHorizontalScrollView.h index c099dece..2c08c50c 100644 --- a/framework/ui/platforms/android/include/bdn/android/JHorizontalScrollView.h +++ b/framework/ui/platforms/android/include/bdn/android/JHorizontalScrollView.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include namespace bdn diff --git a/framework/ui/platforms/android/include/bdn/android/JInputMethodManager.h b/framework/ui/platforms/android/include/bdn/android/JInputMethodManager.h index 6d7e08c7..bce1254e 100644 --- a/framework/ui/platforms/android/include/bdn/android/JInputMethodManager.h +++ b/framework/ui/platforms/android/include/bdn/android/JInputMethodManager.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/ui/platforms/android/include/bdn/android/JListAdapter.h b/framework/ui/platforms/android/include/bdn/android/JListAdapter.h index 64d08e5d..142c8ac7 100644 --- a/framework/ui/platforms/android/include/bdn/android/JListAdapter.h +++ b/framework/ui/platforms/android/include/bdn/android/JListAdapter.h @@ -12,7 +12,7 @@ namespace bdn class JListAdapterBase : public java::JTObject { public: - using JTObject::JTObject; + using java::JTObject::JTObject; public: java::Method areAllItemsEnabled{this, "areAllItemsEnabled"}; diff --git a/framework/ui/platforms/android/include/bdn/android/JListView.h b/framework/ui/platforms/android/include/bdn/android/JListView.h index 304951c6..1ba46066 100644 --- a/framework/ui/platforms/android/include/bdn/android/JListView.h +++ b/framework/ui/platforms/android/include/bdn/android/JListView.h @@ -15,9 +15,9 @@ namespace bdn public: using JBaseAdapterView::JBaseAdapterView; - Method setDescendantFocusability{this, "setDescendantFocusability"}; - Method setChoiceMode{this, "setChoiceMode"}; - Method setStackFromBottom{this, "setStackFromBottom"}; + java::Method setDescendantFocusability{this, "setDescendantFocusability"}; + java::Method setChoiceMode{this, "setChoiceMode"}; + java::Method setStackFromBottom{this, "setStackFromBottom"}; }; } } diff --git a/framework/ui/platforms/android/include/bdn/android/JNativeAdapterViewOnItemClickListener.h b/framework/ui/platforms/android/include/bdn/android/JNativeAdapterViewOnItemClickListener.h index 69bc87ba..cd931f37 100644 --- a/framework/ui/platforms/android/include/bdn/android/JNativeAdapterViewOnItemClickListener.h +++ b/framework/ui/platforms/android/include/bdn/android/JNativeAdapterViewOnItemClickListener.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/ui/platforms/android/include/bdn/android/JNativeEditTextTextWatcher.h b/framework/ui/platforms/android/include/bdn/android/JNativeEditTextTextWatcher.h index c41bfd75..4d4abba9 100644 --- a/framework/ui/platforms/android/include/bdn/android/JNativeEditTextTextWatcher.h +++ b/framework/ui/platforms/android/include/bdn/android/JNativeEditTextTextWatcher.h @@ -1,8 +1,8 @@ #pragma once -#include #include #include +#include namespace bdn { diff --git a/framework/ui/platforms/android/include/bdn/android/JNativeListAdapter.h b/framework/ui/platforms/android/include/bdn/android/JNativeListAdapter.h index 3d97d84f..aab746b7 100644 --- a/framework/ui/platforms/android/include/bdn/android/JNativeListAdapter.h +++ b/framework/ui/platforms/android/include/bdn/android/JNativeListAdapter.h @@ -1,8 +1,8 @@ #pragma once -#include -#include #include +#include +#include namespace bdn { diff --git a/framework/ui/platforms/android/include/bdn/android/JNativeRootView.h b/framework/ui/platforms/android/include/bdn/android/JNativeRootView.h index 671bccc3..0e498f53 100644 --- a/framework/ui/platforms/android/include/bdn/android/JNativeRootView.h +++ b/framework/ui/platforms/android/include/bdn/android/JNativeRootView.h @@ -16,8 +16,8 @@ namespace bdn using JBaseNativeViewGroup::JBaseNativeViewGroup; public: - Method setTitle{this, "setTitle"}; - Method enableBackButton{this, "enableBackButton"}; + java::Method setTitle{this, "setTitle"}; + java::Method enableBackButton{this, "enableBackButton"}; }; } } diff --git a/framework/ui/platforms/android/include/bdn/android/JNativeScrollView.h b/framework/ui/platforms/android/include/bdn/android/JNativeScrollView.h index e4b4a6c7..3561a5c4 100644 --- a/framework/ui/platforms/android/include/bdn/android/JNativeScrollView.h +++ b/framework/ui/platforms/android/include/bdn/android/JNativeScrollView.h @@ -8,10 +8,10 @@ namespace bdn { constexpr const char kNativeScrollViewClassName[] = "io/boden/android/NativeScrollView"; - class JNativeScrollView : public JTObject + class JNativeScrollView : public java::JTObject { public: - using JTObject::JTObject; + using java::JTObject::JTObject; /** Returns the outermost view object that wraps the whole scroll * view. @@ -20,31 +20,31 @@ namespace bdn * getContentParent() to get the view that acts as the parent for * the content view. * */ - Method getWrapperView{this, "getWrapperView"}; + java::Method getWrapperView{this, "getWrapperView"}; /** Returns the view group that is the parent of the scroll view's * content view. This NativeViewGroup acts as the glue between our * layout system and the scroll view's internal workings from * android.*/ - Method getContentParent{this, "getContentParent"}; + java::Method getContentParent{this, "getContentParent"}; /** Scrolls to the specified scroll position (without animation)*/ - Method scrollTo{this, "scrollTo"}; + java::Method scrollTo{this, "scrollTo"}; /** Scrolls to the specified scroll position with a smooth * animation*/ - Method smoothScrollTo{this, "smoothScrollTo"}; + java::Method smoothScrollTo{this, "smoothScrollTo"}; /** Returns the X coordinate of the scroll position.*/ - Method getScrollX{this, "getScrollX"}; + java::Method getScrollX{this, "getScrollX"}; /** Returns the Y coordinate of the scroll position.*/ - Method getScrollY{this, "getScrollY"}; + java::Method getScrollY{this, "getScrollY"}; /** Returns the width of the scroll view.*/ - Method getWidth{this, "getWidth"}; + java::Method getWidth{this, "getWidth"}; /** Returns the height of the scroll view.*/ - Method getHeight{this, "getHeight"}; + java::Method getHeight{this, "getHeight"}; }; } } diff --git a/framework/ui/platforms/android/include/bdn/android/JNativeTextViewOnEditorActionListener.h b/framework/ui/platforms/android/include/bdn/android/JNativeTextViewOnEditorActionListener.h index dc810539..fc94fedf 100644 --- a/framework/ui/platforms/android/include/bdn/android/JNativeTextViewOnEditorActionListener.h +++ b/framework/ui/platforms/android/include/bdn/android/JNativeTextViewOnEditorActionListener.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/ui/platforms/android/include/bdn/android/JNativeViewCoreClickListener.h b/framework/ui/platforms/android/include/bdn/android/JNativeViewCoreClickListener.h index ec284e9f..4caaba1a 100644 --- a/framework/ui/platforms/android/include/bdn/android/JNativeViewCoreClickListener.h +++ b/framework/ui/platforms/android/include/bdn/android/JNativeViewCoreClickListener.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/ui/platforms/android/include/bdn/android/JNativeViewGroup.h b/framework/ui/platforms/android/include/bdn/android/JNativeViewGroup.h index e7dfe6e9..66896f35 100644 --- a/framework/ui/platforms/android/include/bdn/android/JNativeViewGroup.h +++ b/framework/ui/platforms/android/include/bdn/android/JNativeViewGroup.h @@ -15,8 +15,8 @@ namespace bdn using JBaseViewGroup::JBaseViewGroup; public: - Method setSize{this, "setSize"}; - Method setChildBounds{this, "setChildBounds"}; + java::Method setSize{this, "setSize"}; + java::Method setChildBounds{this, "setChildBounds"}; }; using JNativeViewGroup = JBaseNativeViewGroup<>; diff --git a/framework/ui/platforms/android/include/bdn/android/JNestedScrollView.h b/framework/ui/platforms/android/include/bdn/android/JNestedScrollView.h index 3ae93e5e..5b2b0a56 100644 --- a/framework/ui/platforms/android/include/bdn/android/JNestedScrollView.h +++ b/framework/ui/platforms/android/include/bdn/android/JNestedScrollView.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include namespace bdn diff --git a/framework/ui/platforms/android/include/bdn/android/JScrollView.h b/framework/ui/platforms/android/include/bdn/android/JScrollView.h index 7e9ce80b..b38d9a19 100644 --- a/framework/ui/platforms/android/include/bdn/android/JScrollView.h +++ b/framework/ui/platforms/android/include/bdn/android/JScrollView.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include namespace bdn diff --git a/framework/ui/platforms/android/include/bdn/android/JSwitch.h b/framework/ui/platforms/android/include/bdn/android/JSwitch.h index b5334198..7ebd329c 100644 --- a/framework/ui/platforms/android/include/bdn/android/JSwitch.h +++ b/framework/ui/platforms/android/include/bdn/android/JSwitch.h @@ -15,7 +15,7 @@ namespace bdn using JBaseCompoundButton::JBaseCompoundButton; public: - Method setChecked{this, "setChecked"}; + java::Method setChecked{this, "setChecked"}; }; } } diff --git a/framework/ui/platforms/android/include/bdn/android/JTextView.h b/framework/ui/platforms/android/include/bdn/android/JTextView.h index eabc7220..3b53cb01 100644 --- a/framework/ui/platforms/android/include/bdn/android/JTextView.h +++ b/framework/ui/platforms/android/include/bdn/android/JTextView.h @@ -1,9 +1,9 @@ #pragma once -#include #include #include #include +#include #include namespace bdn @@ -45,30 +45,30 @@ namespace bdn public: using JBaseView::JBaseView; - Method getPaint{this, "getPaint"}; + java::Method getPaint{this, "getPaint"}; - Method setText{this, "setText"}; - Method getText{this, "getText"}; + java::Method setText{this, "setText"}; + java::Method getText{this, "getText"}; - Method setSingleLine{this, "setSingleLine"}; + java::Method setSingleLine{this, "setSingleLine"}; - Method setBreakStrategy{this, "setBreakStrategy"}; + java::Method setBreakStrategy{this, "setBreakStrategy"}; - Method setHorizontallyScrolling{this, "setHorizontallyScrolling"}; + java::Method setHorizontallyScrolling{this, "setHorizontallyScrolling"}; - Method setMaxLines{this, "setMaxLines"}; + java::Method setMaxLines{this, "setMaxLines"}; - Method setWidth{this, "setWidth"}; - Method setMaxWidth{this, "setMaxWidth"}; - Method setMaxHeight{this, "setMaxHeight"}; + java::Method setWidth{this, "setWidth"}; + java::Method setMaxWidth{this, "setMaxWidth"}; + java::Method setMaxHeight{this, "setMaxHeight"}; - Method getTextSize{this, "getTextSize"}; - Method setTextAppearance{this, "setTextAppearance"}; + java::Method getTextSize{this, "getTextSize"}; + java::Method setTextAppearance{this, "setTextAppearance"}; - Method addTextChangedListener{this, "addTextChangedListener"}; - Method removeTextChangedListener{this, "removeTextChangedListener"}; + java::Method addTextChangedListener{this, "addTextChangedListener"}; + java::Method removeTextChangedListener{this, "removeTextChangedListener"}; - Method setOnEditorActionListener{this, "setOnEditorActionListener"}; + java::Method setOnEditorActionListener{this, "setOnEditorActionListener"}; }; using JTextView = JBaseTextView<>; diff --git a/framework/ui/platforms/android/include/bdn/android/JTextWatcher.h b/framework/ui/platforms/android/include/bdn/android/JTextWatcher.h index 65298699..d521307a 100644 --- a/framework/ui/platforms/android/include/bdn/android/JTextWatcher.h +++ b/framework/ui/platforms/android/include/bdn/android/JTextWatcher.h @@ -12,7 +12,7 @@ namespace bdn class JBaseTextWatcher : public java::JTObject { public: - using JTObject::JTObject; + using java::JTObject::JTObject; }; using JTextWatcher = JBaseTextWatcher<>; diff --git a/framework/ui/platforms/android/include/bdn/android/JView.h b/framework/ui/platforms/android/include/bdn/android/JView.h index eb14b677..691396d8 100644 --- a/framework/ui/platforms/android/include/bdn/android/JView.h +++ b/framework/ui/platforms/android/include/bdn/android/JView.h @@ -1,9 +1,9 @@ #pragma once -#include #include #include #include +#include #include @@ -11,14 +11,12 @@ namespace bdn { namespace android { - using namespace java; - constexpr const char kOnClickListenerClassName[] = "android/view/View$OnClickListener"; template - class OnClickListenerBase : public JTObject + class OnClickListenerBase : public java::JTObject { public: - using JTObject::JTObject; + using java::JTObject::JTObject; template OnClickListenerBase(Other &other) : OnClickListenerBase(other.getRef_()) {} }; @@ -26,18 +24,18 @@ namespace bdn using OnClickListener = OnClickListenerBase<>; constexpr const char kOnScrollChangeListenerClassName[] = "android/view/View$OnScrollChangeListener"; - using OnScrollChangeListener = JTObject; + using OnScrollChangeListener = java::JTObject; constexpr const char kOnLayoutChangeListenerClassName[] = "android/view/View$OnLayoutChangeListener"; - using OnLayoutChangeListener = JTObject; + using OnLayoutChangeListener = java::JTObject; constexpr const char kViewClassName[] = "android/view/View"; template - class JBaseView : public JTObject + class JBaseView : public java::JTObject { public: - using JTObject::JTObject; + using java::JTObject::JTObject; public: enum Visibility @@ -90,51 +88,51 @@ namespace bdn }; public: - Method setSystemUiVisibility{this, "setSystemUiVisibility"}; - Method getSystemUiVisibility{this, "getSystemUiVisibility"}; + java::Method setSystemUiVisibility{this, "setSystemUiVisibility"}; + java::Method getSystemUiVisibility{this, "getSystemUiVisibility"}; - Method setVisibility{this, "setVisibility"}; - Method getVisibility{this, "getVisibility"}; + java::Method setVisibility{this, "setVisibility"}; + java::Method getVisibility{this, "getVisibility"}; - Method getLeft{this, "getLeft"}; - Method getTop{this, "getTop"}; - Method getWidth{this, "getWidth"}; - Method getHeight{this, "getHeight"}; + java::Method getLeft{this, "getLeft"}; + java::Method getTop{this, "getTop"}; + java::Method getWidth{this, "getWidth"}; + java::Method getHeight{this, "getHeight"}; - Method setPadding{this, "setPadding"}; + java::Method setPadding{this, "setPadding"}; - Method getPaddingLeft{this, "getPaddingLeft"}; - Method getPaddingTop{this, "getPaddingTop"}; - Method getPaddingRight{this, "getPaddingRight"}; - Method getPaddingBottom{this, "getPaddingBottom"}; + java::Method getPaddingLeft{this, "getPaddingLeft"}; + java::Method getPaddingTop{this, "getPaddingTop"}; + java::Method getPaddingRight{this, "getPaddingRight"}; + java::Method getPaddingBottom{this, "getPaddingBottom"}; - Method getParent{this, "getParent"}; - Method getContext{this, "getContext"}; + java::Method getParent{this, "getParent"}; + java::Method getContext{this, "getContext"}; - Method setTag{this, "setTag"}; - Method getTag{this, "getTag"}; + java::Method setTag{this, "setTag"}; + java::Method getTag{this, "getTag"}; - Method measure{this, "measure"}; + java::Method measure{this, "measure"}; - Method getMeasuredWidth{this, "getMeasuredWidth"}; - Method getMeasuredHeight{this, "getMeasuredHeight"}; + java::Method getMeasuredWidth{this, "getMeasuredWidth"}; + java::Method getMeasuredHeight{this, "getMeasuredHeight"}; - Method requestLayout{this, "requestLayout"}; - Method invalidate{this, "invalidate"}; + java::Method requestLayout{this, "requestLayout"}; + java::Method invalidate{this, "invalidate"}; - Method getSuggestedMinimumWidth{this, "getSuggestedMinimumWidth"}; - Method getSuggestedMinimumHeight{this, "getSuggestedMinimumHeight"}; + java::Method getSuggestedMinimumWidth{this, "getSuggestedMinimumWidth"}; + java::Method getSuggestedMinimumHeight{this, "getSuggestedMinimumHeight"}; - Method getScrollX{this, "getScrollX"}; - Method getScrollY{this, "getScrollY"}; + java::Method getScrollX{this, "getScrollX"}; + java::Method getScrollY{this, "getScrollY"}; - Method setOnClickListener{this, "setOnClickListener"}; - Method setOnScrollChangeListener{this, "setOnScrollChangeListener"}; - Method addOnLayoutChangeListener{this, "addOnLayoutChangeListener"}; + java::Method setOnClickListener{this, "setOnClickListener"}; + java::Method setOnScrollChangeListener{this, "setOnScrollChangeListener"}; + java::Method addOnLayoutChangeListener{this, "addOnLayoutChangeListener"}; - Method setLayoutParams{this, "setLayoutParams"}; + java::Method setLayoutParams{this, "setLayoutParams"}; - Method getWindowToken{this, "getWindowToken"}; + java::Method getWindowToken{this, "getWindowToken"}; }; using JView = JBaseView<>; diff --git a/framework/ui/platforms/android/include/bdn/android/JViewGroup.h b/framework/ui/platforms/android/include/bdn/android/JViewGroup.h index a116a47f..4d3b6ccb 100644 --- a/framework/ui/platforms/android/include/bdn/android/JViewGroup.h +++ b/framework/ui/platforms/android/include/bdn/android/JViewGroup.h @@ -17,12 +17,12 @@ namespace bdn public: using JBaseView::JBaseView; - Method addView{this, "addView"}; - Method removeView{this, "removeView"}; - Method removeAllViews{this, "removeAllViews"}; + java::Method addView{this, "addView"}; + java::Method removeView{this, "removeView"}; + java::Method removeAllViews{this, "removeAllViews"}; - Method getChildCount{this, "getChildCount"}; - Method getChildAt{this, "getChildAt"}; + java::Method getChildCount{this, "getChildCount"}; + java::Method getChildAt{this, "getChildAt"}; public: using JLayoutParams = JViewGroup__JLayoutParams; diff --git a/framework/ui/platforms/android/include/bdn/android/JWindow.h b/framework/ui/platforms/android/include/bdn/android/JWindow.h index 9239d123..a2f87b39 100644 --- a/framework/ui/platforms/android/include/bdn/android/JWindow.h +++ b/framework/ui/platforms/android/include/bdn/android/JWindow.h @@ -8,7 +8,7 @@ namespace bdn { constexpr const char kWindowClassName[] = "android/view/Window"; - class JWindow : public JTObject + class JWindow : public java::JTObject { public: using JTObject::JTObject; diff --git a/framework/ui/platforms/android/include/bdn/android/ListViewCore.h b/framework/ui/platforms/android/include/bdn/android/ListViewCore.h index 9ca3c97e..f9ed305e 100644 --- a/framework/ui/platforms/android/include/bdn/android/ListViewCore.h +++ b/framework/ui/platforms/android/include/bdn/android/ListViewCore.h @@ -1,9 +1,9 @@ #pragma once -#include -#include #include #include +#include +#include #include diff --git a/framework/ui/platforms/android/include/bdn/android/ScrollViewCore.h b/framework/ui/platforms/android/include/bdn/android/ScrollViewCore.h index 941a4d9d..93551496 100644 --- a/framework/ui/platforms/android/include/bdn/android/ScrollViewCore.h +++ b/framework/ui/platforms/android/include/bdn/android/ScrollViewCore.h @@ -1,14 +1,13 @@ #pragma once -#include #include +#include #include -#include -#include -#include #include -#include #include +#include +#include +#include namespace bdn { diff --git a/framework/ui/platforms/android/include/bdn/android/SwitchCore.h b/framework/ui/platforms/android/include/bdn/android/SwitchCore.h index efdbb291..98a5a579 100644 --- a/framework/ui/platforms/android/include/bdn/android/SwitchCore.h +++ b/framework/ui/platforms/android/include/bdn/android/SwitchCore.h @@ -1,10 +1,10 @@ #pragma once -#include -#include -#include #include +#include #include +#include +#include namespace bdn { diff --git a/framework/ui/platforms/android/include/bdn/android/TextFieldCore.h b/framework/ui/platforms/android/include/bdn/android/TextFieldCore.h index cc496b47..e7ad8dec 100644 --- a/framework/ui/platforms/android/include/bdn/android/TextFieldCore.h +++ b/framework/ui/platforms/android/include/bdn/android/TextFieldCore.h @@ -1,14 +1,14 @@ #pragma once #include -#include #include +#include #include #include -#include #include #include +#include #include namespace bdn diff --git a/framework/ui/platforms/android/include/bdn/android/TextViewCore.h b/framework/ui/platforms/android/include/bdn/android/TextViewCore.h index 2108079a..8e36f714 100644 --- a/framework/ui/platforms/android/include/bdn/android/TextViewCore.h +++ b/framework/ui/platforms/android/include/bdn/android/TextViewCore.h @@ -1,10 +1,10 @@ #pragma once -#include -#include -#include #include #include +#include +#include +#include namespace bdn { diff --git a/framework/ui/platforms/android/include/bdn/android/UIProvider.h b/framework/ui/platforms/android/include/bdn/android/UIProvider.h index 64f8f2a8..db3a1367 100644 --- a/framework/ui/platforms/android/include/bdn/android/UIProvider.h +++ b/framework/ui/platforms/android/include/bdn/android/UIProvider.h @@ -9,11 +9,11 @@ namespace bdn } } -#include #include +#include -#include #include +#include #include diff --git a/framework/ui/platforms/android/include/bdn/android/ViewCore.h b/framework/ui/platforms/android/include/bdn/android/ViewCore.h index 45a26eba..a77337cb 100644 --- a/framework/ui/platforms/android/include/bdn/android/ViewCore.h +++ b/framework/ui/platforms/android/include/bdn/android/ViewCore.h @@ -9,16 +9,16 @@ namespace bdn } } -#include #include +#include #include #include -#include +#include #include +#include #include -#include #include diff --git a/framework/ui/platforms/android/include/bdn/android/WindowCore.h b/framework/ui/platforms/android/include/bdn/android/WindowCore.h index ecfd8ffc..f3ad05f4 100644 --- a/framework/ui/platforms/android/include/bdn/android/WindowCore.h +++ b/framework/ui/platforms/android/include/bdn/android/WindowCore.h @@ -5,15 +5,15 @@ #include -#include -#include -#include -#include #include #include +#include +#include +#include +#include -#include #include "JWindow.h" +#include namespace bdn { @@ -61,15 +61,15 @@ namespace bdn void center() override; - static void _rootViewCreated(const bdn::java::Reference &javaRef); + static void _rootViewCreated(const java::Reference &javaRef); - static void _rootViewDisposed(const bdn::java::Reference &javaRef); + static void _rootViewDisposed(const java::Reference &javaRef); - static void _rootViewSizeChanged(const bdn::java::Reference &javaRef, int width, int height); + static void _rootViewSizeChanged(const java::Reference &javaRef, int width, int height); - static void _rootViewConfigurationChanged(const bdn::java::Reference &javaRef, JConfiguration config); + static void _rootViewConfigurationChanged(const java::Reference &javaRef, JConfiguration config); - static bool _handleBackPressed(const bdn::java::Reference &javaRef); + static bool _handleBackPressed(const java::Reference &javaRef); double getUIScaleFactor() const override { return ViewCore::getUIScaleFactor(); } @@ -107,7 +107,7 @@ namespace bdn * */ virtual void rootViewConfigurationChanged(JConfiguration config); - virtual void attachedToNewRootView(const bdn::java::Reference &javaRef); + virtual void attachedToNewRootView(const java::Reference &javaRef); virtual bool handleBackPressed(); @@ -116,7 +116,7 @@ namespace bdn void updateUIScaleFactor(JConfiguration config); - static void getWindowCoreListFromRootView(const bdn::java::Reference &javaRootViewRef, + static void getWindowCoreListFromRootView(const java::Reference &javaRootViewRef, std::list> &windowCoreList); /** Returns an accessible reference to the window's root view. @@ -129,9 +129,9 @@ namespace bdn class RootViewRegistry : public Base { public: - void add(const bdn::java::WeakReference &javaRef) { _rootViewList.push_back(javaRef); } + void add(const java::WeakReference &javaRef) { _rootViewList.push_back(javaRef); } - void remove(const bdn::java::Reference &javaRef) + void remove(const java::Reference &javaRef) { auto it = std::find(_rootViewList.begin(), _rootViewList.end(), javaRef); if (it != _rootViewList.end()) @@ -149,12 +149,12 @@ namespace bdn * Returns a null reference if not valid root view is found. * * */ - bdn::java::Reference getNewestValidRootView() + java::Reference getNewestValidRootView() { // So we can simply return the first root view from the // list. while (!_rootViewList.empty()) { - bdn::java::Reference javaRef = _rootViewList.back().toStrong(); + java::Reference javaRef = _rootViewList.back().toStrong(); if (!javaRef.isNull()) return javaRef; @@ -164,11 +164,11 @@ namespace bdn _rootViewList.pop_back(); } - return bdn::java::Reference(); + return java::Reference(); } private: - std::list _rootViewList; + std::list _rootViewList; }; public: @@ -182,7 +182,7 @@ namespace bdn private: mutable std::recursive_mutex _rootViewMutex; - bdn::java::WeakReference _weakRootViewRef; + java::WeakReference _weakRootViewRef; Rect _currentBounds; diff --git a/framework/ui/platforms/android/src/AppRunner.cpp b/framework/ui/platforms/android/src/AppRunner.cpp index b6e11a02..41bd3c2d 100644 --- a/framework/ui/platforms/android/src/AppRunner.cpp +++ b/framework/ui/platforms/android/src/AppRunner.cpp @@ -1,6 +1,6 @@ #include -#include #include +#include #include #include diff --git a/framework/ui/platforms/android/src/JNativeAdapterViewOnItemClickListener.cpp b/framework/ui/platforms/android/src/JNativeAdapterViewOnItemClickListener.cpp index 4aab254b..bf8017c6 100644 --- a/framework/ui/platforms/android/src/JNativeAdapterViewOnItemClickListener.cpp +++ b/framework/ui/platforms/android/src/JNativeAdapterViewOnItemClickListener.cpp @@ -1,10 +1,10 @@ #include -#include #include +#include -#include #include +#include extern "C" JNIEXPORT void JNICALL Java_io_boden_android_NativeAdapterViewOnItemClickListener_nativeOnItemClick( JNIEnv *env, jobject rawSelf, jobject rawAdapterView, jobject rawView, int position, long id) diff --git a/framework/ui/platforms/android/src/JNativeEditTextTextWatcher.cpp b/framework/ui/platforms/android/src/JNativeEditTextTextWatcher.cpp index 692db788..013b4ccf 100644 --- a/framework/ui/platforms/android/src/JNativeEditTextTextWatcher.cpp +++ b/framework/ui/platforms/android/src/JNativeEditTextTextWatcher.cpp @@ -1,8 +1,8 @@ #include -#include #include +#include #include diff --git a/framework/ui/platforms/android/src/JNativeListAdapter.cpp b/framework/ui/platforms/android/src/JNativeListAdapter.cpp index 76de8358..d334263c 100644 --- a/framework/ui/platforms/android/src/JNativeListAdapter.cpp +++ b/framework/ui/platforms/android/src/JNativeListAdapter.cpp @@ -2,8 +2,8 @@ #include #include -#include #include +#include extern "C" JNIEXPORT jint JNICALL Java_io_boden_android_NativeListAdapter_nativeGetCount(JNIEnv *env, jobject rawSelf, jobject rawView) diff --git a/framework/ui/platforms/android/src/JNativeRootView.cpp b/framework/ui/platforms/android/src/JNativeRootView.cpp index bae9b734..e5b5853a 100644 --- a/framework/ui/platforms/android/src/JNativeRootView.cpp +++ b/framework/ui/platforms/android/src/JNativeRootView.cpp @@ -1,11 +1,11 @@ #include -#include #include +#include -#include #include +#include extern "C" JNIEXPORT void JNICALL Java_io_boden_android_NativeRootView_created(JNIEnv *env, jobject rawSelf) { diff --git a/framework/ui/platforms/android/src/JNativeScrollView.cpp b/framework/ui/platforms/android/src/JNativeScrollView.cpp index 5a391c50..77527150 100644 --- a/framework/ui/platforms/android/src/JNativeScrollView.cpp +++ b/framework/ui/platforms/android/src/JNativeScrollView.cpp @@ -1,11 +1,11 @@ #include -#include #include +#include -#include #include +#include extern "C" JNIEXPORT void JNICALL Java_io_boden_android_NativeScrollView_scrollChange(JNIEnv *env, jobject rawCls, jobject rawWraperView, diff --git a/framework/ui/platforms/android/src/JNativeTextViewOnEditorActionListener.cpp b/framework/ui/platforms/android/src/JNativeTextViewOnEditorActionListener.cpp index df5d4741..e35ed1c9 100644 --- a/framework/ui/platforms/android/src/JNativeTextViewOnEditorActionListener.cpp +++ b/framework/ui/platforms/android/src/JNativeTextViewOnEditorActionListener.cpp @@ -1,9 +1,9 @@ -#include #include +#include -#include #include +#include #include diff --git a/framework/ui/platforms/android/src/JNativeViewCoreClickListener.cpp b/framework/ui/platforms/android/src/JNativeViewCoreClickListener.cpp index a1f848ee..fdbe1546 100644 --- a/framework/ui/platforms/android/src/JNativeViewCoreClickListener.cpp +++ b/framework/ui/platforms/android/src/JNativeViewCoreClickListener.cpp @@ -1,8 +1,8 @@ #include -#include #include +#include #include diff --git a/framework/ui/platforms/android/src/ListViewCore.cpp b/framework/ui/platforms/android/src/ListViewCore.cpp index 9387c6fe..33b56c39 100644 --- a/framework/ui/platforms/android/src/ListViewCore.cpp +++ b/framework/ui/platforms/android/src/ListViewCore.cpp @@ -1,6 +1,6 @@ -#include -#include #include +#include +#include namespace bdn { diff --git a/framework/ui/platforms/android/src/StackCore.cpp b/framework/ui/platforms/android/src/StackCore.cpp index be2956a2..3f0ade73 100644 --- a/framework/ui/platforms/android/src/StackCore.cpp +++ b/framework/ui/platforms/android/src/StackCore.cpp @@ -1,6 +1,6 @@ -#include -#include #include +#include +#include namespace bdn { diff --git a/framework/ui/platforms/android/src/UIProvider.cpp b/framework/ui/platforms/android/src/UIProvider.cpp index 74d0f535..1b1d5d64 100644 --- a/framework/ui/platforms/android/src/UIProvider.cpp +++ b/framework/ui/platforms/android/src/UIProvider.cpp @@ -1,16 +1,16 @@ #include -#include #include -#include #include -#include -#include -#include +#include #include #include #include +#include +#include +#include +#include #include diff --git a/framework/ui/platforms/android/src/WindowCore.cpp b/framework/ui/platforms/android/src/WindowCore.cpp index ea1661d2..9c169dd3 100644 --- a/framework/ui/platforms/android/src/WindowCore.cpp +++ b/framework/ui/platforms/android/src/WindowCore.cpp @@ -1,6 +1,6 @@ -#include #include "../include/bdn/android/JNativeRootView.h" +#include namespace bdn { @@ -161,14 +161,14 @@ namespace bdn // we cannot change our position. So, do nothing. } - void WindowCore::_rootViewCreated(const Reference &javaRef) + void WindowCore::_rootViewCreated(const java::Reference &javaRef) { // we store only a weak referene in the registry. We do not want // to keep the java-side root view object alive. getRootViewRegistryForCurrentThread().add(bdn::java::WeakReference(javaRef)); } - void WindowCore::_rootViewDisposed(const Reference &javaRef) + void WindowCore::_rootViewDisposed(const java::Reference &javaRef) { // this may be called by the garbage collector, so it might be // in an arbitrary thread. That means that the root view @@ -186,7 +186,7 @@ namespace bdn windowCore->rootViewDisposed(); } - void WindowCore::_rootViewSizeChanged(const Reference &javaRef, int width, int height) + void WindowCore::_rootViewSizeChanged(const java::Reference &javaRef, int width, int height) { std::list> windowCoreList; @@ -196,7 +196,7 @@ namespace bdn windowCore->rootViewSizeChanged(width, height); } - void WindowCore::_rootViewConfigurationChanged(const Reference &javaRef, JConfiguration config) + void WindowCore::_rootViewConfigurationChanged(const java::Reference &javaRef, JConfiguration config) { std::list> windowCoreList; @@ -206,9 +206,8 @@ namespace bdn windowCore->rootViewConfigurationChanged(config); } - bool WindowCore::_handleBackPressed(const Reference &javaRef) + bool WindowCore::_handleBackPressed(const java::Reference &javaRef) { - std::list> windowCoreList; getWindowCoreListFromRootView(javaRef, windowCoreList); @@ -280,7 +279,7 @@ namespace bdn void WindowCore::rootViewConfigurationChanged(JConfiguration config) { updateUIScaleFactor(config); } - void WindowCore::attachedToNewRootView(const Reference &javaRef) + void WindowCore::attachedToNewRootView(const java::Reference &javaRef) { // set the window's bounds to fill the root view completely. JNativeRootView rootView(javaRef); @@ -332,7 +331,7 @@ namespace bdn setUIScaleFactor(scaleFactor); } - void WindowCore::getWindowCoreListFromRootView(const Reference &javaRootViewRef, + void WindowCore::getWindowCoreListFromRootView(const java::Reference &javaRootViewRef, std::list> &windowCoreList) { JNativeRootView rootView(javaRootViewRef); @@ -350,9 +349,9 @@ namespace bdn } } - Reference WindowCore::tryGetAccessibleRootViewRef() const + java::Reference WindowCore::tryGetAccessibleRootViewRef() const { - bdn::java::Reference accessibleRef; + java::Reference accessibleRef; { std::unique_lock lock(_rootViewMutex); diff --git a/framework/ui/platforms/ios/include/bdn/ios/ButtonCore.hh b/framework/ui/platforms/ios/include/bdn/ios/ButtonCore.hh index 4f275d30..5bfc2c0c 100644 --- a/framework/ui/platforms/ios/include/bdn/ios/ButtonCore.hh +++ b/framework/ui/platforms/ios/include/bdn/ios/ButtonCore.hh @@ -1,8 +1,8 @@ #pragma once -#include -#include #include +#include +#include #import diff --git a/framework/ui/platforms/ios/include/bdn/ios/CheckboxCore.hh b/framework/ui/platforms/ios/include/bdn/ios/CheckboxCore.hh index b30a2a4e..3b277aa0 100644 --- a/framework/ui/platforms/ios/include/bdn/ios/CheckboxCore.hh +++ b/framework/ui/platforms/ios/include/bdn/ios/CheckboxCore.hh @@ -1,11 +1,11 @@ #pragma once -#include #include +#include #include -#import #import +#import @interface BdnIosCheckboxComposite : UIControl diff --git a/framework/ui/platforms/ios/include/bdn/ios/ListViewCore.hh b/framework/ui/platforms/ios/include/bdn/ios/ListViewCore.hh index 58c277c4..3340a9ad 100644 --- a/framework/ui/platforms/ios/include/bdn/ios/ListViewCore.hh +++ b/framework/ui/platforms/ios/include/bdn/ios/ListViewCore.hh @@ -1,8 +1,8 @@ #pragma once -#import -#include #include +#include +#import @class ListViewDelegateIOS; diff --git a/framework/ui/platforms/ios/include/bdn/ios/ScrollViewCore.hh b/framework/ui/platforms/ios/include/bdn/ios/ScrollViewCore.hh index c1827bf4..a998505d 100644 --- a/framework/ui/platforms/ios/include/bdn/ios/ScrollViewCore.hh +++ b/framework/ui/platforms/ios/include/bdn/ios/ScrollViewCore.hh @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include diff --git a/framework/ui/platforms/ios/include/bdn/ios/StackCore.hh b/framework/ui/platforms/ios/include/bdn/ios/StackCore.hh index 412811cb..fad8bf7e 100644 --- a/framework/ui/platforms/ios/include/bdn/ios/StackCore.hh +++ b/framework/ui/platforms/ios/include/bdn/ios/StackCore.hh @@ -1,8 +1,8 @@ #pragma once -#import -#include #include +#include +#import namespace bdn { diff --git a/framework/ui/platforms/ios/include/bdn/ios/SwitchCore.hh b/framework/ui/platforms/ios/include/bdn/ios/SwitchCore.hh index eb1f292d..8a50baf8 100644 --- a/framework/ui/platforms/ios/include/bdn/ios/SwitchCore.hh +++ b/framework/ui/platforms/ios/include/bdn/ios/SwitchCore.hh @@ -1,8 +1,8 @@ #pragma once -#include #include #include +#include #import diff --git a/framework/ui/platforms/ios/include/bdn/ios/TextViewCore.hh b/framework/ui/platforms/ios/include/bdn/ios/TextViewCore.hh index 6d14d790..b71a4fce 100644 --- a/framework/ui/platforms/ios/include/bdn/ios/TextViewCore.hh +++ b/framework/ui/platforms/ios/include/bdn/ios/TextViewCore.hh @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include #import diff --git a/framework/ui/platforms/ios/include/bdn/ios/UIProvider.hh b/framework/ui/platforms/ios/include/bdn/ios/UIProvider.hh index db33bfc8..5d14d3cf 100644 --- a/framework/ui/platforms/ios/include/bdn/ios/UIProvider.hh +++ b/framework/ui/platforms/ios/include/bdn/ios/UIProvider.hh @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/ui/platforms/ios/include/bdn/ios/ViewCore.hh b/framework/ui/platforms/ios/include/bdn/ios/ViewCore.hh index b69b87f6..c24172b3 100644 --- a/framework/ui/platforms/ios/include/bdn/ios/ViewCore.hh +++ b/framework/ui/platforms/ios/include/bdn/ios/ViewCore.hh @@ -3,8 +3,8 @@ #import #include -#include #include +#include #import #import diff --git a/framework/ui/platforms/ios/include/bdn/ios/WindowCore.hh b/framework/ui/platforms/ios/include/bdn/ios/WindowCore.hh index f35160d8..6f94d9aa 100644 --- a/framework/ui/platforms/ios/include/bdn/ios/WindowCore.hh +++ b/framework/ui/platforms/ios/include/bdn/ios/WindowCore.hh @@ -3,13 +3,13 @@ #import #include -#include #include +#include #include -#import #import +#import namespace bdn { diff --git a/framework/ui/platforms/ios/src/UIProvider.mm b/framework/ui/platforms/ios/src/UIProvider.mm index 80df3983..0181a632 100644 --- a/framework/ui/platforms/ios/src/UIProvider.mm +++ b/framework/ui/platforms/ios/src/UIProvider.mm @@ -1,17 +1,17 @@ #import -#import -#import -#import #import #import -#import -#import -#import -#import +#import #import +#import #import +#import +#import +#import +#import +#import #include diff --git a/framework/ui/platforms/mac/include/bdn/mac/ButtonCore.hh b/framework/ui/platforms/mac/include/bdn/mac/ButtonCore.hh index f316fcaf..959c872f 100644 --- a/framework/ui/platforms/mac/include/bdn/mac/ButtonCore.hh +++ b/framework/ui/platforms/mac/include/bdn/mac/ButtonCore.hh @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #import diff --git a/framework/ui/platforms/mac/include/bdn/mac/CheckboxCore.hh b/framework/ui/platforms/mac/include/bdn/mac/CheckboxCore.hh index e9645cd4..3fddb332 100644 --- a/framework/ui/platforms/mac/include/bdn/mac/CheckboxCore.hh +++ b/framework/ui/platforms/mac/include/bdn/mac/CheckboxCore.hh @@ -1,12 +1,12 @@ #pragma once +#include #include #include -#include #import -#import #import +#import namespace bdn { diff --git a/framework/ui/platforms/mac/include/bdn/mac/ChildViewCore.hh b/framework/ui/platforms/mac/include/bdn/mac/ChildViewCore.hh index ea9ddad3..abff452a 100644 --- a/framework/ui/platforms/mac/include/bdn/mac/ChildViewCore.hh +++ b/framework/ui/platforms/mac/include/bdn/mac/ChildViewCore.hh @@ -2,8 +2,8 @@ #include #include -#include #include +#include #import #import diff --git a/framework/ui/platforms/mac/include/bdn/mac/ListViewCore.hh b/framework/ui/platforms/mac/include/bdn/mac/ListViewCore.hh index 3cd7b2b8..d7b45920 100644 --- a/framework/ui/platforms/mac/include/bdn/mac/ListViewCore.hh +++ b/framework/ui/platforms/mac/include/bdn/mac/ListViewCore.hh @@ -1,8 +1,8 @@ #pragma once -#include -#include #include +#include +#include @class ListViewDelegateMac; diff --git a/framework/ui/platforms/mac/include/bdn/mac/ScrollViewCore.hh b/framework/ui/platforms/mac/include/bdn/mac/ScrollViewCore.hh index f2cdf0cf..b8f5feb4 100644 --- a/framework/ui/platforms/mac/include/bdn/mac/ScrollViewCore.hh +++ b/framework/ui/platforms/mac/include/bdn/mac/ScrollViewCore.hh @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include diff --git a/framework/ui/platforms/mac/include/bdn/mac/StackCore.hh b/framework/ui/platforms/mac/include/bdn/mac/StackCore.hh index 2be1073d..132e1de2 100644 --- a/framework/ui/platforms/mac/include/bdn/mac/StackCore.hh +++ b/framework/ui/platforms/mac/include/bdn/mac/StackCore.hh @@ -2,8 +2,8 @@ #import -#include #include +#include #include diff --git a/framework/ui/platforms/mac/include/bdn/mac/SwitchCore.hh b/framework/ui/platforms/mac/include/bdn/mac/SwitchCore.hh index 4e193ef9..aaff8c16 100644 --- a/framework/ui/platforms/mac/include/bdn/mac/SwitchCore.hh +++ b/framework/ui/platforms/mac/include/bdn/mac/SwitchCore.hh @@ -1,8 +1,8 @@ #pragma once #include -#include #include +#include #import #import diff --git a/framework/ui/platforms/mac/include/bdn/mac/TextFieldCore.hh b/framework/ui/platforms/mac/include/bdn/mac/TextFieldCore.hh index 630dcc6f..4426951d 100644 --- a/framework/ui/platforms/mac/include/bdn/mac/TextFieldCore.hh +++ b/framework/ui/platforms/mac/include/bdn/mac/TextFieldCore.hh @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include #include diff --git a/framework/ui/platforms/mac/include/bdn/mac/UIProvider.hh b/framework/ui/platforms/mac/include/bdn/mac/UIProvider.hh index 3b9be94e..10d608d3 100644 --- a/framework/ui/platforms/mac/include/bdn/mac/UIProvider.hh +++ b/framework/ui/platforms/mac/include/bdn/mac/UIProvider.hh @@ -1,7 +1,7 @@ #pragma once -#include #include +#include namespace bdn { diff --git a/framework/ui/platforms/mac/include/bdn/mac/WindowCore.hh b/framework/ui/platforms/mac/include/bdn/mac/WindowCore.hh index fdd14990..4fc91892 100644 --- a/framework/ui/platforms/mac/include/bdn/mac/WindowCore.hh +++ b/framework/ui/platforms/mac/include/bdn/mac/WindowCore.hh @@ -3,8 +3,8 @@ #include #include -#include #include +#include #include #import diff --git a/framework/ui/platforms/mac/include/bdn/mac/ui_util.hh b/framework/ui/platforms/mac/include/bdn/mac/ui_util.hh index 84417655..2ba4c7ed 100644 --- a/framework/ui/platforms/mac/include/bdn/mac/ui_util.hh +++ b/framework/ui/platforms/mac/include/bdn/mac/ui_util.hh @@ -1,8 +1,8 @@ #pragma once #import -#import #include +#import namespace bdn { diff --git a/framework/ui/platforms/mac/src/UIAppEntry.mm b/framework/ui/platforms/mac/src/UIAppEntry.mm index 773db217..9bb272d9 100644 --- a/framework/ui/platforms/mac/src/UIAppEntry.mm +++ b/framework/ui/platforms/mac/src/UIAppEntry.mm @@ -1,8 +1,8 @@ #include -#import #include +#import namespace bdn { diff --git a/framework/ui/platforms/mac/src/UIAppRunner.mm b/framework/ui/platforms/mac/src/UIAppRunner.mm index 4206927c..ecc42833 100644 --- a/framework/ui/platforms/mac/src/UIAppRunner.mm +++ b/framework/ui/platforms/mac/src/UIAppRunner.mm @@ -5,8 +5,8 @@ #import #import -#include #include +#include #import diff --git a/framework/ui/platforms/mac/src/UIProvider.mm b/framework/ui/platforms/mac/src/UIProvider.mm index 7bcc1b18..b43e3b50 100644 --- a/framework/ui/platforms/mac/src/UIProvider.mm +++ b/framework/ui/platforms/mac/src/UIProvider.mm @@ -6,19 +6,19 @@ #import -#include #include +#include -#import #import #import -#import -#import #import -#import #import -#import +#import #import +#import +#import +#import +#import namespace bdn { diff --git a/framework/ui/src/ScrollView.cpp b/framework/ui/src/ScrollView.cpp index 110c70f3..e8fd8cd8 100644 --- a/framework/ui/src/ScrollView.cpp +++ b/framework/ui/src/ScrollView.cpp @@ -1,9 +1,9 @@ #include -#include -#include #include +#include +#include namespace bdn { diff --git a/framework/ui/src/View.cpp b/framework/ui/src/View.cpp index 891424f1..18381673 100644 --- a/framework/ui/src/View.cpp +++ b/framework/ui/src/View.cpp @@ -2,8 +2,8 @@ #include #include -#include #include +#include namespace bdn { diff --git a/framework/ui/src/Window.cpp b/framework/ui/src/Window.cpp index cdbdf9ef..dc8de342 100644 --- a/framework/ui/src/Window.cpp +++ b/framework/ui/src/Window.cpp @@ -2,8 +2,8 @@ #include #include -#include #include +#include namespace bdn { diff --git a/tests/testboden/src/TestMockViewCoreMixin.h b/tests/testboden/src/TestMockViewCoreMixin.h index 3969e918..1b662d05 100644 --- a/tests/testboden/src/TestMockViewCoreMixin.h +++ b/tests/testboden/src/TestMockViewCoreMixin.h @@ -2,8 +2,8 @@ #define BDN_TEST_TestMockViewCoreMixin_H_ #include -#include #include +#include namespace bdn { diff --git a/tests/testboden/src/TestTextField.cpp b/tests/testboden/src/TestTextField.cpp index 5d71f399..0bc93a27 100644 --- a/tests/testboden/src/TestTextField.cpp +++ b/tests/testboden/src/TestTextField.cpp @@ -2,8 +2,8 @@ #include #include -#include #include +#include using namespace bdn; diff --git a/tests/testboden/src/main.cpp b/tests/testboden/src/main.cpp index 5f1fe198..82df616b 100644 --- a/tests/testboden/src/main.cpp +++ b/tests/testboden/src/main.cpp @@ -1,5 +1,5 @@ -#include #include +#include BDN_TEST_APP_INIT(); diff --git a/tests/testboden/src/testButton.cpp b/tests/testboden/src/testButton.cpp index 03806abd..5da5c53c 100644 --- a/tests/testboden/src/testButton.cpp +++ b/tests/testboden/src/testButton.cpp @@ -2,8 +2,8 @@ #include #include -#include #include +#include using namespace bdn; diff --git a/tests/testboden/src/testButtonCore_mock.cpp b/tests/testboden/src/testButtonCore_mock.cpp index 0bee78f8..699f785e 100644 --- a/tests/testboden/src/testButtonCore_mock.cpp +++ b/tests/testboden/src/testButtonCore_mock.cpp @@ -1,11 +1,11 @@ #include +#include "TestMockViewCoreMixin.h" #include #include -#include #include -#include "TestMockViewCoreMixin.h" +#include using namespace bdn; diff --git a/tests/testboden/src/testCheckbox.cpp b/tests/testboden/src/testCheckbox.cpp index fb953a6b..44a3f3f5 100644 --- a/tests/testboden/src/testCheckbox.cpp +++ b/tests/testboden/src/testCheckbox.cpp @@ -2,8 +2,8 @@ #include #include -#include #include +#include using namespace bdn; diff --git a/tests/testboden/src/testColumnView.cpp b/tests/testboden/src/testColumnView.cpp index e63c996e..353e3c57 100644 --- a/tests/testboden/src/testColumnView.cpp +++ b/tests/testboden/src/testColumnView.cpp @@ -1,11 +1,11 @@ #include -#include #include -#include -#include +#include #include +#include +#include using namespace bdn; diff --git a/tests/testboden/src/testConfig.cpp b/tests/testboden/src/testConfig.cpp index 5a3442a3..da59cbda 100644 --- a/tests/testboden/src/testConfig.cpp +++ b/tests/testboden/src/testConfig.cpp @@ -1,7 +1,7 @@ -#include #include +#include namespace bdn { diff --git a/tests/testboden/src/testContainerView.cpp b/tests/testboden/src/testContainerView.cpp index 48572e9b..1e9aff0d 100644 --- a/tests/testboden/src/testContainerView.cpp +++ b/tests/testboden/src/testContainerView.cpp @@ -1,11 +1,11 @@ #include -#include #include -#include -#include +#include #include +#include +#include using namespace bdn; diff --git a/tests/testboden/src/testContainerViewCore_mock.cpp b/tests/testboden/src/testContainerViewCore_mock.cpp index 977cdf30..7dfebdfa 100644 --- a/tests/testboden/src/testContainerViewCore_mock.cpp +++ b/tests/testboden/src/testContainerViewCore_mock.cpp @@ -3,8 +3,8 @@ #include -#include #include "TestMockViewCoreMixin.h" +#include using namespace bdn; diff --git a/tests/testboden/src/testDip.cpp b/tests/testboden/src/testDip.cpp index d5f6d8db..44f431f5 100644 --- a/tests/testboden/src/testDip.cpp +++ b/tests/testboden/src/testDip.cpp @@ -1,6 +1,6 @@ -#include #include +#include #include diff --git a/tests/testboden/src/testErrno.cpp b/tests/testboden/src/testErrno.cpp index 3c40a45f..92cffe5d 100644 --- a/tests/testboden/src/testErrno.cpp +++ b/tests/testboden/src/testErrno.cpp @@ -1,9 +1,9 @@ #include -#include #include #include +#include #include diff --git a/tests/testboden/src/testFloatArithmetic.cpp b/tests/testboden/src/testFloatArithmetic.cpp index 0d1a5471..1cf8f63f 100644 --- a/tests/testboden/src/testFloatArithmetic.cpp +++ b/tests/testboden/src/testFloatArithmetic.cpp @@ -1,6 +1,6 @@ -#include #include +#include using namespace bdn; diff --git a/tests/testboden/src/testLayoutCoordinator.cpp b/tests/testboden/src/testLayoutCoordinator.cpp index 0392bfc5..8a678235 100644 --- a/tests/testboden/src/testLayoutCoordinator.cpp +++ b/tests/testboden/src/testLayoutCoordinator.cpp @@ -1,8 +1,8 @@ #include -#include #include +#include #include #include diff --git a/tests/testboden/src/testRowView.cpp b/tests/testboden/src/testRowView.cpp index df3ed360..1b3ba390 100644 --- a/tests/testboden/src/testRowView.cpp +++ b/tests/testboden/src/testRowView.cpp @@ -1,11 +1,11 @@ #include -#include #include -#include -#include +#include #include +#include +#include using namespace bdn; diff --git a/tests/testboden/src/testScrollView.cpp b/tests/testboden/src/testScrollView.cpp index 1df078a0..ed2ab4d7 100644 --- a/tests/testboden/src/testScrollView.cpp +++ b/tests/testboden/src/testScrollView.cpp @@ -2,9 +2,9 @@ #include #include -#include -#include #include +#include +#include #include diff --git a/tests/testboden/src/testScrollViewCore_mock.cpp b/tests/testboden/src/testScrollViewCore_mock.cpp index b8c05bbe..80f20530 100644 --- a/tests/testboden/src/testScrollViewCore_mock.cpp +++ b/tests/testboden/src/testScrollViewCore_mock.cpp @@ -1,11 +1,11 @@ #include -#include +#include "TestMockViewCoreMixin.h" #include -#include +#include #include -#include "TestMockViewCoreMixin.h" +#include using namespace bdn; diff --git a/tests/testboden/src/testScrollViewLayoutHelper.cpp b/tests/testboden/src/testScrollViewLayoutHelper.cpp index 5afcf772..5dcb09e2 100644 --- a/tests/testboden/src/testScrollViewLayoutHelper.cpp +++ b/tests/testboden/src/testScrollViewLayoutHelper.cpp @@ -1,9 +1,9 @@ #include -#include -#include #include +#include +#include #include #include diff --git a/tests/testboden/src/testSignal.cpp b/tests/testboden/src/testSignal.cpp index 334f34d0..d9f34017 100644 --- a/tests/testboden/src/testSignal.cpp +++ b/tests/testboden/src/testSignal.cpp @@ -2,12 +2,12 @@ #include -#include #include #include +#include -#include #include +#include using namespace bdn; using namespace std::chrono_literals; diff --git a/tests/testboden/src/testSwitch.cpp b/tests/testboden/src/testSwitch.cpp index 2aa631c9..6ba0578b 100644 --- a/tests/testboden/src/testSwitch.cpp +++ b/tests/testboden/src/testSwitch.cpp @@ -2,8 +2,8 @@ #include #include -#include #include +#include using namespace bdn; diff --git a/tests/testboden/src/testTestFramework.cpp b/tests/testboden/src/testTestFramework.cpp index c61cac83..6ff60005 100644 --- a/tests/testboden/src/testTestFramework.cpp +++ b/tests/testboden/src/testTestFramework.cpp @@ -1,13 +1,13 @@ #include -#include #include #include +#include -#include #include #include +#include using namespace std::chrono_literals; using namespace bdn; diff --git a/tests/testboden/src/testTextView.cpp b/tests/testboden/src/testTextView.cpp index ea4e5372..08538aa0 100644 --- a/tests/testboden/src/testTextView.cpp +++ b/tests/testboden/src/testTextView.cpp @@ -2,8 +2,8 @@ #include #include -#include #include +#include using namespace bdn; diff --git a/tests/testboden/src/testTextViewCore_mock.cpp b/tests/testboden/src/testTextViewCore_mock.cpp index 1fde3670..a0174b1c 100644 --- a/tests/testboden/src/testTextViewCore_mock.cpp +++ b/tests/testboden/src/testTextViewCore_mock.cpp @@ -1,11 +1,11 @@ #include +#include "TestMockViewCoreMixin.h" #include #include -#include #include -#include "TestMockViewCoreMixin.h" +#include using namespace bdn; diff --git a/tests/testboden/src/testThreadSafeNotifier.cpp b/tests/testboden/src/testThreadSafeNotifier.cpp index 4a916e55..6268bdaf 100644 --- a/tests/testboden/src/testThreadSafeNotifier.cpp +++ b/tests/testboden/src/testThreadSafeNotifier.cpp @@ -1,8 +1,8 @@ #include -#include #include +#include using namespace bdn; diff --git a/tests/testboden/src/testWindow.cpp b/tests/testboden/src/testWindow.cpp index 2a7dcffa..dd143cbc 100644 --- a/tests/testboden/src/testWindow.cpp +++ b/tests/testboden/src/testWindow.cpp @@ -2,9 +2,9 @@ #include #include -#include #include #include +#include #include diff --git a/tests/testboden/src/testWindowCore_mock.cpp b/tests/testboden/src/testWindowCore_mock.cpp index b57cb846..f3552467 100644 --- a/tests/testboden/src/testWindowCore_mock.cpp +++ b/tests/testboden/src/testWindowCore_mock.cpp @@ -1,11 +1,11 @@ #include +#include "TestMockViewCoreMixin.h" #include -#include #include #include -#include "TestMockViewCoreMixin.h" +#include using namespace bdn; diff --git a/tests/testboden/src/win32/testHresultError.cpp b/tests/testboden/src/win32/testHresultError.cpp index d364b9ec..fd8fef91 100644 --- a/tests/testboden/src/win32/testHresultError.cpp +++ b/tests/testboden/src/win32/testHresultError.cpp @@ -1,8 +1,8 @@ #include #include -#include #include +#include #include diff --git a/tests/testboden/src/win32/testWin32Error.cpp b/tests/testboden/src/win32/testWin32Error.cpp index d94b1f61..0291b0a8 100644 --- a/tests/testboden/src/win32/testWin32Error.cpp +++ b/tests/testboden/src/win32/testWin32Error.cpp @@ -1,8 +1,8 @@ #include #include -#include #include +#include #include diff --git a/tests/testboden/src/winuwp/testPlatformError.cpp b/tests/testboden/src/winuwp/testPlatformError.cpp index bf2ecb43..c84107d6 100644 --- a/tests/testboden/src/winuwp/testPlatformError.cpp +++ b/tests/testboden/src/winuwp/testPlatformError.cpp @@ -1,8 +1,8 @@ #include #include -#include #include +#include using namespace bdn; using namespace bdn::winuwp; diff --git a/tests/testboden_common/src/testGenericDispatcher.cpp b/tests/testboden_common/src/testGenericDispatcher.cpp index bb05d077..9424f711 100644 --- a/tests/testboden_common/src/testGenericDispatcher.cpp +++ b/tests/testboden_common/src/testGenericDispatcher.cpp @@ -1,11 +1,11 @@ -#include -#include #include #include +#include +#include -#include #include +#include using namespace bdn; diff --git a/tests/testboden_common/src/testMainDispatcher.cpp b/tests/testboden_common/src/testMainDispatcher.cpp index 5e47e27f..9dad6cba 100644 --- a/tests/testboden_common/src/testMainDispatcher.cpp +++ b/tests/testboden_common/src/testMainDispatcher.cpp @@ -1,9 +1,9 @@ #include -#include #include #include +#include using namespace bdn; diff --git a/tests/testbodentiming/src/main.cpp b/tests/testbodentiming/src/main.cpp index 5f1fe198..82df616b 100644 --- a/tests/testbodentiming/src/main.cpp +++ b/tests/testbodentiming/src/main.cpp @@ -1,5 +1,5 @@ -#include #include +#include BDN_TEST_APP_INIT(); diff --git a/tests/testbodentiming/src/testCallFromMainThread.cpp b/tests/testbodentiming/src/testCallFromMainThread.cpp index dbf827a5..8fbc94a0 100644 --- a/tests/testbodentiming/src/testCallFromMainThread.cpp +++ b/tests/testbodentiming/src/testCallFromMainThread.cpp @@ -1,13 +1,13 @@ -#include #include #include +#include -#include #include +#include -#include #include +#include using namespace bdn; using namespace std::chrono_literals; diff --git a/tests/testbodentiming/src/testStopWatch.cpp b/tests/testbodentiming/src/testStopWatch.cpp index 18ab6c69..a851068e 100644 --- a/tests/testbodentiming/src/testStopWatch.cpp +++ b/tests/testbodentiming/src/testStopWatch.cpp @@ -3,8 +3,8 @@ #include -#include #include +#include using namespace bdn; using namespace std::chrono_literals; diff --git a/tests/testbodentiming/src/testTestFramework_Timing.cpp b/tests/testbodentiming/src/testTestFramework_Timing.cpp index cbe2dc79..634cc56b 100644 --- a/tests/testbodentiming/src/testTestFramework_Timing.cpp +++ b/tests/testbodentiming/src/testTestFramework_Timing.cpp @@ -1,9 +1,9 @@ -#include #include +#include -#include #include +#include #include diff --git a/tests/testbodenui/src/android/TestAndroidViewCoreMixin.h b/tests/testbodenui/src/android/TestAndroidViewCoreMixin.h index 6b9727a0..d5e7d2fd 100644 --- a/tests/testbodenui/src/android/TestAndroidViewCoreMixin.h +++ b/tests/testbodenui/src/android/TestAndroidViewCoreMixin.h @@ -2,8 +2,8 @@ #define BDN_TEST_TestAndroidViewCore_H_ #include -#include #include +#include namespace bdn { diff --git a/tests/testbodenui/src/android/testButtonCore_android.cpp b/tests/testbodenui/src/android/testButtonCore_android.cpp index 7bbd8927..2dcf4c05 100644 --- a/tests/testbodenui/src/android/testButtonCore_android.cpp +++ b/tests/testbodenui/src/android/testButtonCore_android.cpp @@ -1,11 +1,11 @@ #include +#include "TestAndroidViewCoreMixin.h" #include #include -#include #include -#include "TestAndroidViewCoreMixin.h" +#include using namespace bdn; diff --git a/tests/testbodenui/src/android/testCheckboxCore_android.cpp b/tests/testbodenui/src/android/testCheckboxCore_android.cpp index 6adda3d4..1f9c990e 100644 --- a/tests/testbodenui/src/android/testCheckboxCore_android.cpp +++ b/tests/testbodenui/src/android/testCheckboxCore_android.cpp @@ -1,12 +1,12 @@ #include +#include "TestAndroidViewCoreMixin.h" #include #include -#include #include #include -#include "TestAndroidViewCoreMixin.h" +#include using namespace bdn; diff --git a/tests/testbodenui/src/android/testContainerViewCore_android.cpp b/tests/testbodenui/src/android/testContainerViewCore_android.cpp index 1dac7d67..64550690 100644 --- a/tests/testbodenui/src/android/testContainerViewCore_android.cpp +++ b/tests/testbodenui/src/android/testContainerViewCore_android.cpp @@ -3,8 +3,8 @@ #include -#include #include "TestAndroidViewCoreMixin.h" +#include using namespace bdn; diff --git a/tests/testbodenui/src/android/testScrollViewCore_android.cpp b/tests/testbodenui/src/android/testScrollViewCore_android.cpp index a299b6df..a991b320 100644 --- a/tests/testbodenui/src/android/testScrollViewCore_android.cpp +++ b/tests/testbodenui/src/android/testScrollViewCore_android.cpp @@ -1,12 +1,12 @@ #include +#include "TestAndroidViewCoreMixin.h" #include -#include -#include -#include #include -#include "TestAndroidViewCoreMixin.h" +#include +#include +#include using namespace bdn; diff --git a/tests/testbodenui/src/android/testSwitchCore_android.cpp b/tests/testbodenui/src/android/testSwitchCore_android.cpp index 1efb14be..444f0990 100644 --- a/tests/testbodenui/src/android/testSwitchCore_android.cpp +++ b/tests/testbodenui/src/android/testSwitchCore_android.cpp @@ -1,11 +1,11 @@ #include +#include "TestAndroidViewCoreMixin.h" #include #include -#include #include -#include "TestAndroidViewCoreMixin.h" +#include using namespace bdn; diff --git a/tests/testbodenui/src/android/testTextViewCore_android.cpp b/tests/testbodenui/src/android/testTextViewCore_android.cpp index d3ee6d49..1645de0d 100644 --- a/tests/testbodenui/src/android/testTextViewCore_android.cpp +++ b/tests/testbodenui/src/android/testTextViewCore_android.cpp @@ -1,10 +1,10 @@ #include +#include "TestAndroidViewCoreMixin.h" #include #include #include -#include "TestAndroidViewCoreMixin.h" using namespace bdn; diff --git a/tests/testbodenui/src/android/testWindowCore_android.cpp b/tests/testbodenui/src/android/testWindowCore_android.cpp index 7eafbd03..6aa00104 100644 --- a/tests/testbodenui/src/android/testWindowCore_android.cpp +++ b/tests/testbodenui/src/android/testWindowCore_android.cpp @@ -1,11 +1,11 @@ #include +#include "TestAndroidViewCoreMixin.h" #include -#include #include #include -#include "TestAndroidViewCoreMixin.h" +#include using namespace bdn; diff --git a/tests/testbodenui/src/ios/TestIosViewCoreMixin.hh b/tests/testbodenui/src/ios/TestIosViewCoreMixin.hh index 3f7912ec..3bc8369d 100644 --- a/tests/testbodenui/src/ios/TestIosViewCoreMixin.hh +++ b/tests/testbodenui/src/ios/TestIosViewCoreMixin.hh @@ -2,8 +2,8 @@ #define BDN_TEST_TestIosViewCore_H_ #include -#import #import +#import #import namespace bdn diff --git a/tests/testbodenui/src/ios/testCheckboxCore_ios.mm b/tests/testbodenui/src/ios/testCheckboxCore_ios.mm index 91a7c4d2..276409d4 100644 --- a/tests/testbodenui/src/ios/testCheckboxCore_ios.mm +++ b/tests/testbodenui/src/ios/testCheckboxCore_ios.mm @@ -3,8 +3,8 @@ #include #include -#include #include +#include #import "TestIosViewCoreMixin.hh" diff --git a/tests/testbodenui/src/ios/testContainerViewCore_ios.mm b/tests/testbodenui/src/ios/testContainerViewCore_ios.mm index f1a8467b..aae60b01 100644 --- a/tests/testbodenui/src/ios/testContainerViewCore_ios.mm +++ b/tests/testbodenui/src/ios/testContainerViewCore_ios.mm @@ -3,8 +3,8 @@ #include -#import #import "TestIosViewCoreMixin.hh" +#import using namespace bdn; diff --git a/tests/testbodenui/src/ios/testScrollViewCore_ios.mm b/tests/testbodenui/src/ios/testScrollViewCore_ios.mm index 810f7c1f..5de45895 100644 --- a/tests/testbodenui/src/ios/testScrollViewCore_ios.mm +++ b/tests/testbodenui/src/ios/testScrollViewCore_ios.mm @@ -1,10 +1,10 @@ #include -#include +#import "TestIosViewCoreMixin.hh" #include +#include #include -#import "TestIosViewCoreMixin.hh" #import diff --git a/tests/testbodenui/src/ios/testSwitchCore_ios.mm b/tests/testbodenui/src/ios/testSwitchCore_ios.mm index f72e6e36..5b14d9e0 100644 --- a/tests/testbodenui/src/ios/testSwitchCore_ios.mm +++ b/tests/testbodenui/src/ios/testSwitchCore_ios.mm @@ -3,8 +3,8 @@ #include #include -#include #include +#include #import "TestIosViewCoreMixin.hh" diff --git a/tests/testbodenui/src/ios/testTextViewCore_ios.mm b/tests/testbodenui/src/ios/testTextViewCore_ios.mm index fa5a48e2..0608e71e 100644 --- a/tests/testbodenui/src/ios/testTextViewCore_ios.mm +++ b/tests/testbodenui/src/ios/testTextViewCore_ios.mm @@ -1,10 +1,10 @@ #include +#import "TestIosViewCoreMixin.hh" #include #include #include -#import "TestIosViewCoreMixin.hh" using namespace bdn; diff --git a/tests/testbodenui/src/ios/testWindowCore_ios.mm b/tests/testbodenui/src/ios/testWindowCore_ios.mm index c4827889..121a184c 100644 --- a/tests/testbodenui/src/ios/testWindowCore_ios.mm +++ b/tests/testbodenui/src/ios/testWindowCore_ios.mm @@ -2,10 +2,10 @@ #include #include -#include #import -#import #import +#import +#include #import "TestIosViewCoreMixin.hh" diff --git a/tests/testbodenui/src/mac/TestMacChildViewCoreMixin.hh b/tests/testbodenui/src/mac/TestMacChildViewCoreMixin.hh index 9679242b..02a26e5d 100644 --- a/tests/testbodenui/src/mac/TestMacChildViewCoreMixin.hh +++ b/tests/testbodenui/src/mac/TestMacChildViewCoreMixin.hh @@ -3,8 +3,8 @@ #include #import -#import #import +#import #import namespace bdn diff --git a/tests/testbodenui/src/mac/testCheckboxCore_mac.mm b/tests/testbodenui/src/mac/testCheckboxCore_mac.mm index a052695b..46c7a81b 100644 --- a/tests/testbodenui/src/mac/testCheckboxCore_mac.mm +++ b/tests/testbodenui/src/mac/testCheckboxCore_mac.mm @@ -1,12 +1,12 @@ #include -#include #include -#include +#include #include -#include #include +#include +#include #import "TestMacChildViewCoreMixin.hh" diff --git a/tests/testbodenui/src/mac/testContainerViewCore_mac.mm b/tests/testbodenui/src/mac/testContainerViewCore_mac.mm index 7150709c..ad2f5ec9 100644 --- a/tests/testbodenui/src/mac/testContainerViewCore_mac.mm +++ b/tests/testbodenui/src/mac/testContainerViewCore_mac.mm @@ -3,8 +3,8 @@ #include -#import #import "TestMacChildViewCoreMixin.hh" +#import using namespace bdn; diff --git a/tests/testbodenui/src/mac/testScrollViewCore_mac.mm b/tests/testbodenui/src/mac/testScrollViewCore_mac.mm index a5a03cd9..48947cb6 100644 --- a/tests/testbodenui/src/mac/testScrollViewCore_mac.mm +++ b/tests/testbodenui/src/mac/testScrollViewCore_mac.mm @@ -1,10 +1,10 @@ #include -#include +#import "TestMacChildViewCoreMixin.hh" #include +#include #include -#import "TestMacChildViewCoreMixin.hh" #import diff --git a/tests/testbodenui/src/mac/testTextViewCore_mac.mm b/tests/testbodenui/src/mac/testTextViewCore_mac.mm index 0cc81144..100cbffd 100644 --- a/tests/testbodenui/src/mac/testTextViewCore_mac.mm +++ b/tests/testbodenui/src/mac/testTextViewCore_mac.mm @@ -1,10 +1,10 @@ #include +#import "TestMacChildViewCoreMixin.hh" #include #include #include -#import "TestMacChildViewCoreMixin.hh" using namespace bdn; diff --git a/tests/testbodenui/src/mac/testWindowCore_mac.mm b/tests/testbodenui/src/mac/testWindowCore_mac.mm index 07a8e9cb..d572cdb3 100644 --- a/tests/testbodenui/src/mac/testWindowCore_mac.mm +++ b/tests/testbodenui/src/mac/testWindowCore_mac.mm @@ -2,10 +2,10 @@ #include #include -#include +#import #import #import -#import +#include using namespace bdn; diff --git a/tests/testbodenui/src/main.cpp b/tests/testbodenui/src/main.cpp index b22ffac9..d07b7a6d 100644 --- a/tests/testbodenui/src/main.cpp +++ b/tests/testbodenui/src/main.cpp @@ -1,5 +1,5 @@ -#include #include +#include BDN_TEST_APP_INIT()