srctree

Robin Linden parent 3f5e93b8 8af130a6
engine: Get rid of unnecessary templates to get nicer error messages

Now, instead of getting an error in the setter when we try to assign tothe mismatching type, we get an error in the code calling the setterwith the wrong type.

inlinesplit
engine/engine.h added: 4, removed: 4, total 0
@@ -31,9 +31,9 @@ public:
 
void set_layout_width(int width);
 
void set_on_navigation_failure(auto cb) { on_navigation_failure_ = std::move(cb); }
void set_on_page_loaded(auto cb) { on_page_loaded_ = std::move(cb); }
void set_on_layout_updated(auto cb) { on_layout_update_ = std::move(cb); }
void set_on_navigation_failure(std::function<void(protocol::Error)> cb) { on_navigation_failure_ = std::move(cb); }
void set_on_page_loaded(std::function<void()> cb) { on_page_loaded_ = std::move(cb); }
void set_on_layout_updated(std::function<void()> cb) { on_layout_update_ = std::move(cb); }
 
uri::Uri const &uri() const { return uri_; }
protocol::Response const &response() const { return response_; }