[content shell] implement testRunner.overridePreference
[chromium-blink-merge.git] / android_webview / common / render_view_messages.h
blob76f877939ecdb1d34d911b368bb28bbac410a184
1 // Copyright (c) 2012 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 // Multiply-included file, no traditional include guard.
6 #include "android_webview/common/aw_hit_test_data.h"
7 #include "content/public/common/common_param_traits.h"
8 #include "ipc/ipc_channel_handle.h"
9 #include "ipc/ipc_message_macros.h"
10 #include "ipc/ipc_platform_file.h"
12 // Singly-included section for enums and custom IPC traits.
13 #ifndef ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_
14 #define ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_
16 namespace IPC {
18 // TODO - add enums and custom IPC traits here when needed.
20 } // namespace IPC
22 #endif // ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_
24 IPC_STRUCT_TRAITS_BEGIN(android_webview::AwHitTestData)
25 IPC_STRUCT_TRAITS_MEMBER(type)
26 IPC_STRUCT_TRAITS_MEMBER(extra_data_for_type)
27 IPC_STRUCT_TRAITS_MEMBER(href)
28 IPC_STRUCT_TRAITS_MEMBER(anchor_text)
29 IPC_STRUCT_TRAITS_MEMBER(img_src)
30 IPC_STRUCT_TRAITS_END()
32 #define IPC_MESSAGE_START AndroidWebViewMsgStart
34 //-----------------------------------------------------------------------------
35 // RenderView messages
36 // These are messages sent from the browser to the renderer process.
38 // Tells the renderer to drop all WebCore memory cache.
39 IPC_MESSAGE_CONTROL0(AwViewMsg_ClearCache)
41 // Request for the renderer to determine if the document contains any image
42 // elements. The id should be passed in the response message so the response
43 // can be associated with the request.
44 IPC_MESSAGE_ROUTED1(AwViewMsg_DocumentHasImages,
45 int /* id */)
47 // Do hit test at the given webview coordinate. "Webview" coordinates are
48 // physical pixel values with the 0,0 at the top left of the current displayed
49 // view (ie 0,0 is not the top left of the page if the page is scrolled).
50 IPC_MESSAGE_ROUTED2(AwViewMsg_DoHitTest,
51 int /* view_x */,
52 int /* view_y */)
54 //-----------------------------------------------------------------------------
55 // RenderView messages
56 // These are messages sent from the renderer to the browser process.
58 // Response to AwViewMsg_DocumentHasImages request.
59 IPC_MESSAGE_ROUTED2(AwViewHostMsg_DocumentHasImagesResponse,
60 int, /* id */
61 bool /* has_images */)
63 // Response to AwViewMsg_DoHitTest.
64 IPC_MESSAGE_ROUTED1(AwViewHostMsg_UpdateHitTestData,
65 android_webview::AwHitTestData)