summaryrefslogtreecommitdiffstats
path: root/content/shell/shell_messages.h
blob: 53840c50581f4eea5e92f4b7dd69d8b5e19f43f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Multiply-included file, no traditional include guard.
#include <string>

#include "content/public/common/common_param_traits.h"
#include "ipc/ipc_message_macros.h"
#include "third_party/skia/include/core/SkBitmap.h"

#define IPC_MESSAGE_START ShellMsgStart

// Tells the render view to capture a text dump of the page. The render view
// responds with a ShellViewHostMsg_TextDump.
IPC_MESSAGE_ROUTED3(ShellViewMsg_CaptureTextDump,
                    bool /* as_text */,
                    bool /* printing */,
                    bool /* recursive */)

// Tells the render view to capture an image of the page. The render view
// responds with a ShellViewHostMsg_ImageDump.
IPC_MESSAGE_ROUTED1(ShellViewMsg_CaptureImageDump,
                    std::string /* expected pixel hash */)

// Send a text dump of the WebContents to the render host.
IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump,
                    std::string /* dump */)

// Send an image dump of the WebContents to the render host.
IPC_MESSAGE_ROUTED2(ShellViewHostMsg_ImageDump,
                    std::string /* actual pixel hash */,
                    SkBitmap /* image */)

// The main frame of the render view finished loading.
IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DidFinishLoad)

// The following messages correspond to methods of the testRunner.
IPC_MESSAGE_ROUTED0(ShellViewHostMsg_NotifyDone)
IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpAsText)
IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpChildFramesAsText)
IPC_MESSAGE_ROUTED0(ShellViewHostMsg_SetPrinting)
IPC_MESSAGE_ROUTED1(
    ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload,
    bool /* should_stay_on_page */)
IPC_MESSAGE_ROUTED0(ShellViewHostMsg_WaitUntilDone)

IPC_MESSAGE_ROUTED2(ShellViewHostMsg_NotImplemented,
                    std::string /* object_name */,
                    std::string /* property_name */)