Update V8 to version 4.7.42.
[chromium-blink-merge.git] / content / common / view_message_enums.h
blobddff44a710e6c2fcd4617d837b06cfc54c30dbaf
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 #ifndef CONTENT_COMMON_VIEW_MESSAGE_ENUMS_H_
6 #define CONTENT_COMMON_VIEW_MESSAGE_ENUMS_H_
8 #include "ipc/ipc_message_macros.h"
10 // Values that may be OR'd together to form the 'flags' parameter of a
11 // ViewHostMsg_UpdateRect_Params structure.
12 struct ViewHostMsg_UpdateRect_Flags {
13 enum {
14 IS_RESIZE_ACK = 1 << 0,
15 IS_REPAINT_ACK = 1 << 2,
17 static bool is_resize_ack(int flags) {
18 return (flags & IS_RESIZE_ACK) != 0;
20 static bool is_repaint_ack(int flags) {
21 return (flags & IS_REPAINT_ACK) != 0;
25 #endif // CONTENT_COMMON_VIEW_MESSAGE_ENUMS_H_