diff --git a/README_zh.md b/README_zh.md index 595bb6bb13868a8f73780f138640126ec3d1e897..4f12044fc8ba2443dea6f5ce76d86b29c444a684 100644 --- a/README_zh.md +++ b/README_zh.md @@ -10,7 +10,7 @@ ## 简介 -图形服务采用C/S架构,内部分为窗口管理(WMS: Window Manager Service)和输入事件管理(IMS: Input Manger Service)两个子服务。APP调用客户端接口完成窗口状态获取、事件处理等操作,服务端与硬件交互实现送显、输入事件分发等。 +图形服务采用C/S架构,内部分为窗口管理(WMS: Window Manager Service)和输入事件管理(IMS: Input Manager Service)两个子服务。APP调用客户端接口完成窗口状态获取、事件处理等操作,服务端与硬件交互实现送显、输入事件分发等。 - WMS:窗口管理服务对不同APP的窗口进行统一管理、合成。窗口与UI组件中的RootView呈一一对应的关系; - IMS:输入事件管理服务对接底层输入事件驱动框架,对输入事件进行监听和分发。 diff --git a/frameworks/ims/input_event_client_proxy.h b/frameworks/ims/input_event_client_proxy.h index 610280c1cbecb8a7e35b41e6d95c0075c3e7ac3d..29fc3cbaf227db687c0b72f573f9133da86954d3 100755 --- a/frameworks/ims/input_event_client_proxy.h +++ b/frameworks/ims/input_event_client_proxy.h @@ -13,8 +13,8 @@ * limitations under the License. */ -#ifndef GRAPHIC_LITE_IMS_LISTERNER_PROXY_H -#define GRAPHIC_LITE_IMS_LISTERNER_PROXY_H +#ifndef GRAPHIC_LITE_INPUT_EVENT_PROXY_H +#define GRAPHIC_LITE_INPUT_EVENT_PROXY_H #include "input_event_distributer.h" #include "gfx_utils/input_event_info.h" diff --git a/interfaces/innerkits/lite_wm_type.h b/interfaces/innerkits/lite_wm_type.h index 33bba79b0a05d315b6c0595c113002f5958d4d75..41640d464de9a3b05f7487b432488fb69845b3a0 100755 --- a/interfaces/innerkits/lite_wm_type.h +++ b/interfaces/innerkits/lite_wm_type.h @@ -67,7 +67,7 @@ typedef enum { typedef enum { LiteWMS_EOK = 0, - LiteWMS_EUNKONW + LiteWMS_EUNKNOWN } LiteWMSErrorCode; struct CallBackPara { diff --git a/services/ims/input_event_distributer.h b/services/ims/input_event_distributer.h index 1bb659626492ad179286e540feade1b487e407ea..5b83133118c0949e0bcf757a67d8322a0702713a 100755 --- a/services/ims/input_event_distributer.h +++ b/services/ims/input_event_distributer.h @@ -32,7 +32,7 @@ public: * @brief Distribute input events. * * @param [in] events events waiting for distribution. - * @param [in] size totoal size of events. + * @param [in] size total size of events. * */ void Distribute(const RawEvent* events, int32_t size); diff --git a/services/ims/input_event_hub.h b/services/ims/input_event_hub.h index 784e6ec668b0ee67c6a0599157b97f0d367504a4..76008e0df432c5d5883129b3a7c57055c659a8a6 100644 --- a/services/ims/input_event_hub.h +++ b/services/ims/input_event_hub.h @@ -48,7 +48,7 @@ public: * * @param [in] callback callback of read callback. * - * @returns return -1: register callbacke failed; return 0: register success. + * @returns return -1: register callback failed; return 0: register success. */ int32_t RegisterReadCallback(ReadCallback callback) { diff --git a/services/wms/lite_win.cpp b/services/wms/lite_win.cpp index d8b842c7a293615642436ae01baf8f99bc9a4bbb..2164d27edded1017300816f3f0fff33634bde1da 100644 --- a/services/wms/lite_win.cpp +++ b/services/wms/lite_win.cpp @@ -196,7 +196,7 @@ void LiteWindow::FlushWithModeBlend(const Rect& srcRect, const LiteSurfaceData* PF_ARGB1555* dst = reinterpret_cast(tmpDst); if (dst->alpha == 0) { if (alpha) { - // ARGB8888 to ARGB1555, R/G/B shoud right shift 3 bits + // ARGB8888 to ARGB1555, R/G/B should right shift 3 bits dst->red = (tmpSrc->red * alpha / OPA_OPAQUE) >> 3; dst->green = (tmpSrc->green * alpha / OPA_OPAQUE) >> 3; dst->blue = (tmpSrc->blue * alpha / OPA_OPAQUE) >> 3; diff --git a/services/wms/lite_wms.cpp b/services/wms/lite_wms.cpp index 83452ddde95bda3220129d1b878400ef89fa5706..5dc6bef71ab40d8a35904e4997a19bdaedacb1f4 100755 --- a/services/wms/lite_wms.cpp +++ b/services/wms/lite_wms.cpp @@ -201,7 +201,7 @@ void LiteWMS::Screenshot(IpcIo* req, IpcIo* reply) { Surface* surface = SurfaceImpl::GenericSurfaceByIpcIo(*req); bool ret = LiteWM::GetInstance()->OnScreenshot(surface); - IpcIoPushInt32(reply, ret ? LiteWMS_EOK : LiteWMS_EUNKONW); + IpcIoPushInt32(reply, ret ? LiteWMS_EOK : LiteWMS_EUNKNOWN); } void LiteWMS::ClientRegister(const void* origin, IpcIo* req, IpcIo* reply)