Insulate ui::Context a bit from its clients.

Add accessor methods.
This commit is contained in:
Jared Boone
2015-11-09 11:56:40 -08:00
parent 85383e488b
commit 47a3ffb15a
9 changed files with 35 additions and 23 deletions

View File

@@ -38,7 +38,7 @@ BasebandStatsView::BasebandStatsView() {
}
void BasebandStatsView::on_show() {
context().message_map.register_handler(Message::ID::BasebandStatistics,
context().message_map().register_handler(Message::ID::BasebandStatistics,
[this](const Message* const p) {
this->on_statistics_update(static_cast<const BasebandStatisticsMessage*>(p)->statistics);
}
@@ -46,7 +46,7 @@ void BasebandStatsView::on_show() {
}
void BasebandStatsView::on_hide() {
context().message_map.unregister_handler(Message::ID::BasebandStatistics);
context().message_map().unregister_handler(Message::ID::BasebandStatistics);
}