Passing the context to a frame title function.