summaryrefslogtreecommitdiffstats
path: root/content/common/hyphenator_messages.h
blob: e68985d01ce2851ea25ce98a4e381ca4ddc6c0b4 (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
// 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.

// IPC messages for hyphenation.
// Message definition file, included multiple times, hence no include guard.

#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_platform_file.h"

#define IPC_MESSAGE_START HyphenatorMsgStart

// Opens the specified hyphenation dictionary. This message is expected to be
// sent when WebKit calls the canHyphenate function, i.e. when it starts
// layouting text. At this time, WebKit does not actually need this dictionary
// to hyphenate words. Therefore, a renderer does not need to wait for a browser
// to open the specified dictionary.
IPC_MESSAGE_CONTROL1(HyphenatorHostMsg_OpenDictionary,
                     string16 /* locale */)

// Sends the hyphenation dictionary to the renderer. This messages is sent in
// response to a HyphenatorHostMsg_OpenDictionary message.
IPC_MESSAGE_CONTROL1(HyphenatorMsg_SetDictionary,
                     IPC::PlatformFileForTransit /* dict_file */)