Move views event targeting into ViewTargeterDelegate::TargetForRect()
[chromium-blink-merge.git] / content / shell / browser / notify_done_forwarder.cc
blob6d8f10419652acd42753f1649ca42ea9478bd20d
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/shell/browser/notify_done_forwarder.h"
7 #include "content/shell/browser/webkit_test_controller.h"
8 #include "content/shell/common/shell_messages.h"
10 namespace content {
12 DEFINE_WEB_CONTENTS_USER_DATA_KEY(NotifyDoneForwarder);
14 NotifyDoneForwarder::NotifyDoneForwarder(WebContents* web_contents)
15 : WebContentsObserver(web_contents) {}
17 NotifyDoneForwarder::~NotifyDoneForwarder() {}
19 bool NotifyDoneForwarder::OnMessageReceived(const IPC::Message& message) {
20 bool handled = true;
21 IPC_BEGIN_MESSAGE_MAP(NotifyDoneForwarder, message)
22 IPC_MESSAGE_HANDLER(ShellViewHostMsg_TestFinishedInSecondaryWindow,
23 OnTestFinishedInSecondaryWindow)
24 IPC_MESSAGE_UNHANDLED(handled = false)
25 IPC_END_MESSAGE_MAP()
26 return handled;
29 void NotifyDoneForwarder::OnTestFinishedInSecondaryWindow() {
30 WebKitTestController::Get()->TestFinishedInSecondaryWindow();
33 } // namespace content