diff options
Diffstat (limited to 'chrome/renderer/render_view.cc')
-rw-r--r-- | chrome/renderer/render_view.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index ac008c1..0f88427 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -333,6 +333,7 @@ void RenderView::OnMessageReceived(const IPC::Message& message) { IPC_MESSAGE_HANDLER(ViewMsg_ShouldClose, OnMsgShouldClose) IPC_MESSAGE_HANDLER(ViewMsg_ClosePage, OnClosePage) IPC_MESSAGE_HANDLER(ViewMsg_ThemeChanged, OnThemeChanged) + IPC_MESSAGE_HANDLER(ViewMsg_PersonalizationEvent, OnPersonalizationEvent) IPC_MESSAGE_HANDLER(ViewMsg_HandleMessageFromExternalHost, OnMessageFromExternalHost) // Have the super handle all other messages. @@ -2480,6 +2481,18 @@ void RenderView::OnThemeChanged() { DidInvalidateRect(webwidget_, view_rect); } +void RenderView::OnPersonalizationEvent(std::string event_name, + std::string event_args) { + Personalization::HandleViewMsgPersonalizationEvent(personalization_, + webview(), + event_name, + event_args); +} + +void RenderView::TransitionToCommittedForNewPage() { + Personalization::HandleTransitionToCommittedForNewPage(personalization_); +} + void RenderView::OnMessageFromExternalHost( const std::string& target, const std::string& message) { if (message.empty()) |