Change-Id: I6e3c7f2c69654e709e016c4e8578a374af689606
This commit is contained in:
renhw
2022-01-24 10:47:06 +08:00
parent 2fbc967f2b
commit 151db7080f
10 changed files with 12 additions and 17 deletions
@@ -31,7 +31,6 @@ public:
int height_;
float xDpi_;
float yDpi_;
// Surface surface_;
};
} // namespace OHOS::Rosen
-2
View File
@@ -16,8 +16,6 @@
#ifndef OHOS_ROSEN_WM_COMMON_H
#define OHOS_ROSEN_WM_COMMON_H
#include <cstdint>
namespace OHOS {
namespace Rosen {
enum class WindowType : uint32_t {
+1 -2
View File
@@ -20,8 +20,7 @@ extern const char _binary_window_stage_js_end[];
extern const char _binary_window_stage_abc_start[];
extern const char _binary_window_stage_abc_end[];
extern "C" __attribute__((constructor))
void NAPI_application_WindowStage_AutoRegister()
extern "C" __attribute__((constructor)) void NAPI_application_WindowStage_AutoRegister()
{
auto moduleManager = NativeModuleManager::GetInstance();
NativeModule newModuleInfo = {
+1 -1
View File
@@ -37,7 +37,7 @@ class WindowImpl : public Window {
if (uiContent_ != nullptr) { \
uiContent_->uiContentCb(); \
} \
} while (0);
} while (0)
public:
WindowImpl(const sptr<WindowOption>& option);
+2 -2
View File
@@ -12,14 +12,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_WINDOW_INPUT_CHANNEL
#define OHOS_WINDOW_INPUT_CHANNEL
#include <window.h>
#include <i_input_event_consumer.h>
#include <key_event.h>
#include "refbase.h"
#include "vsync_station.h"
#ifndef OHOS_WINDOW_INPUT_CHANNEL
#define OHOS_WINDOW_INPUT_CHANNEL
namespace OHOS {
namespace Rosen {
+1 -1
View File
@@ -36,7 +36,7 @@ int WindowStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParce
break;
}
case TRANS_ID_UPDATE_WINDOW_RECT: {
struct Rect rect{ data.ReadInt32(), data.ReadInt32(), data.ReadUint32(), data.ReadUint32() };
struct Rect rect { data.ReadInt32(), data.ReadInt32(), data.ReadUint32(), data.ReadUint32() };
UpdateWindowRect(rect);
break;
}
+1 -1
View File
@@ -16,8 +16,8 @@
#ifndef OHOS_WINDOW_MANAGER_PROXY_H
#define OHOS_WINDOW_MANAGER_PROXY_H
#include "window_manager_interface.h"
#include <iremote_proxy.h>
#include "window_manager_interface.h"
namespace OHOS {
namespace Rosen {
+2 -1
View File
@@ -16,8 +16,9 @@
#ifndef OHOS_WINDOW_MANAGER_STUB_H
#define OHOS_WINDOW_MANAGER_STUB_H
#include "window_manager_interface.h"
#include <iremote_stub.h>
#include "window_manager_interface.h"
namespace OHOS {
namespace Rosen {
class WindowManagerStub : public IRemoteStub<IWindowManager> {
-2
View File
@@ -16,10 +16,8 @@
#ifndef OHOS_ROSEN_INATIVE_TEST_H
#define OHOS_ROSEN_INATIVE_TEST_H
#include <cstdint>
#include <functional>
#include <string>
#include <vector>
namespace OHOS::Rosen {
class INativeTest;
+4 -4
View File
@@ -17,7 +17,7 @@
#include <cstdio>
#include <unistd.h>
#include <signal.h>
#include <csignal>
#include "window.h"
#include "window_life_cycle_interface.h"
#include "window_option.h"
@@ -65,10 +65,10 @@ void WMNativeTest::Run(int32_t argc, const char **argv)
return;
}
while(true) {
while (true) {
scene->GoForeground();
sleep(3);
sleep(3); // Sleep for 3 seconds
scene->GoBackground();
sleep(3);
sleep(3); // Sleep for 3 seconds
}
}