diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-05-30 19:06:32 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-05-30 19:06:32 +0900 |
commit | dfe4aee045113eceaeabd327291f94583e7b13d3 (patch) | |
tree | 745826e7154c4d08606456dcef68716e64c70b81 /src/windowmanager-client.cpp | |
parent | 5d91a5ffe0bc614ee79a18818dadf5836ce038d7 (diff) |
Format source codes
Change-Id: I28e99487b814b23fe99aa6bc8ec4538af3940acf
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/windowmanager-client.cpp')
-rw-r--r-- | src/windowmanager-client.cpp | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/src/windowmanager-client.cpp b/src/windowmanager-client.cpp index bc24978..55d9864 100644 --- a/src/windowmanager-client.cpp +++ b/src/windowmanager-client.cpp @@ -14,29 +14,30 @@ * limitations under the License. */ #include <iostream> // for debug -using std::cerr;//debug -using std::cout;//debug -using std::endl;//debug +using std::cerr; //debug +using std::cout; //debug +using std::endl; //debug #include "windowmanager-client.hpp" -namespace wm { +namespace wm +{ using std::string; const std::vector<std::string> wm_events = { // Private event for applications - "syncDraw", "flushDraw", "visible", "invisible", "active", "inactive" -}; + "syncDraw", "flushDraw", "visible", "invisible", "active", "inactive"}; WMClient::WMClient(const string &appid, unsigned layerID, unsigned surfaceID, const string &role) - :id(appid), - layer(layerID), - roles(0), - surfaces(0) + : id(appid), + layer(layerID), + roles(0), + surfaces(0) { roles.push_back(role); surfaces.push_back(surfaceID); - for(auto x: wm_events){ + for (auto x : wm_events) + { #if GTEST_ENABLED string ev = x; #else @@ -54,7 +55,8 @@ WMClient::WMClient(const string &appid, const string &role) event_list(0) { roles.push_back(role); - for(auto x: wm_events){ + for (auto x : wm_events) + { #if GTEST_ENABLED string ev = x; #else @@ -64,11 +66,13 @@ WMClient::WMClient(const string &appid, const string &role) } } -WMClient::~WMClient(){ +WMClient::~WMClient() +{ } -string WMClient::appID(){ +string WMClient::appID() +{ return this->id; } -}
\ No newline at end of file +} // namespace wm
\ No newline at end of file |