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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
// 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.
#ifndef CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_
#define CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_
#include "ipc/ipc_message_macros.h"
// Values that may be OR'd together to form the 'flags' parameter of a
// ViewHostMsg_UpdateRect_Params structure.
struct ViewHostMsg_UpdateRect_Flags {
enum {
IS_RESIZE_ACK = 1 << 0,
IS_RESTORE_ACK = 1 << 1,
IS_REPAINT_ACK = 1 << 2,
};
static bool is_resize_ack(int flags) {
return (flags & IS_RESIZE_ACK) != 0;
}
static bool is_restore_ack(int flags) {
return (flags & IS_RESTORE_ACK) != 0;
}
static bool is_repaint_ack(int flags) {
return (flags & IS_REPAINT_ACK) != 0;
}
};
struct ViewMsg_Navigate_Type {
public:
enum Value {
// Reload the page.
RELOAD,
// Reload the page, ignoring any cache entries.
RELOAD_IGNORING_CACHE,
// Reload the page using the original request URL.
RELOAD_ORIGINAL_REQUEST_URL,
// The navigation is the result of session restore and should honor the
// page's cache policy while restoring form state. This is set to true if
// restoring a tab/session from the previous session and the previous
// session did not crash. If this is not set and the page was restored then
// the page's cache policy is ignored and we load from the cache.
RESTORE,
// Like RESTORE, except that the navigation contains POST data.
RESTORE_WITH_POST,
// Navigation type not categorized by the other types.
NORMAL
};
};
enum AccessibilityModeFlag {
// Accessibility updates are processed to create platform trees and events are
// passed to platform APIs in the browser.
AccessibilityModeFlagPlatform = 1 << 0,
// Accessibility is on, and the full tree is computed. If this flag is off,
// only limited information about editable text nodes is sent to the browser
// process. Useful for implementing limited UIA on tablets.
AccessibilityModeFlagPlatformFullTree = 1 << 1,
};
enum AccessibilityMode {
// All accessibility is off.
AccessibilityModeOff = 0,
// Renderer accessibility is on, and platform APIs are called. Note that this
// is different to AccessibilityModeAll, which is defined to be all bits on.
AccessibilityModeComplete =
AccessibilityModeFlagPlatform | AccessibilityModeFlagPlatformFullTree,
// Renderer accessibility is on, platform APIs are called, but only limited
// information is available (see AccessibilityModeFlagEditableTextOnly).
AccessibilityModeEditableTextOnly = AccessibilityModeFlagPlatform
};
#endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_
|