blob: e68985d01ce2851ea25ce98a4e381ca4ddc6c0b4 [file] [log] [blame]
[email protected]19176d472012-09-03 06:39:011// 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.
4
5// IPC messages for hyphenation.
6// Message definition file, included multiple times, hence no include guard.
7
8#include "ipc/ipc_message_macros.h"
9#include "ipc/ipc_platform_file.h"
10
11#define IPC_MESSAGE_START HyphenatorMsgStart
12
13// Opens the specified hyphenation dictionary. This message is expected to be
14// sent when WebKit calls the canHyphenate function, i.e. when it starts
15// layouting text. At this time, WebKit does not actually need this dictionary
16// to hyphenate words. Therefore, a renderer does not need to wait for a browser
17// to open the specified dictionary.
18IPC_MESSAGE_CONTROL1(HyphenatorHostMsg_OpenDictionary,
19 string16 /* locale */)
20
21// Sends the hyphenation dictionary to the renderer. This messages is sent in
22// response to a HyphenatorHostMsg_OpenDictionary message.
23IPC_MESSAGE_CONTROL1(HyphenatorMsg_SetDictionary,
24 IPC::PlatformFileForTransit /* dict_file */)