Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / content / shell / browser / notify_done_forwarder.cc
blob35757b7069eef7a34770f407ea145e9493d8b28d
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/blink_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 BlinkTestController::Get()->TestFinishedInSecondaryWindow();
33 } // namespace content