Code Review
/
apps
/
agl-service-windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add configuration file over-ride mechanism
[apps/agl-service-windowmanager.git]
/
src
/
layers.hpp
diff --git
a/src/layers.hpp
b/src/layers.hpp
index
6ecf2e7
..
f52886e
100644
(file)
--- a/
src/layers.hpp
+++ b/
src/layers.hpp
@@
-17,12
+17,9
@@
#ifndef TMCAGLWM_LAYERS_H
#define TMCAGLWM_LAYERS_H
#ifndef TMCAGLWM_LAYERS_H
#define TMCAGLWM_LAYERS_H
-#include <json.hpp>
-
-#include <regex>
-#include <set>
#include <string>
#include <string>
+#include "../include/json.hpp"
#include "layout.hpp"
#include "result.hpp"
#include "wayland_ivi_wm.hpp"
#include "layout.hpp"
#include "result.hpp"
#include "wayland_ivi_wm.hpp"
@@
-117,6
+114,14
@@
struct layer_map
}
json to_json() const;
}
json to_json() const;
+ void setupArea(double scaling);
+ compositor::rect getAreaSize(const std::string &area);
+ int loadAreaDb();
+
+ private:
+ std::unordered_map<std::string, compositor::rect> area2size;
+
+ static const char *kDefaultAreaDb;
};
struct result<struct layer_map> to_layer_map(nlohmann::json const &j);
};
struct result<struct layer_map> to_layer_map(nlohmann::json const &j);