Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: trunk/src/content/common/view_message_enums.h

Issue 177713006: Revert 251563 "Move browser initiated navigation from RenderView..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/src/content/common/frame_messages.h ('k') | trunk/src/content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ 5 #ifndef CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_
6 #define CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ 6 #define CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_
7 7
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 9
10 // Values that may be OR'd together to form the 'flags' parameter of a 10 // Values that may be OR'd together to form the 'flags' parameter of a
11 // ViewHostMsg_UpdateRect_Params structure. 11 // ViewHostMsg_UpdateRect_Params structure.
12 struct ViewHostMsg_UpdateRect_Flags { 12 struct ViewHostMsg_UpdateRect_Flags {
13 enum { 13 enum {
14 IS_RESIZE_ACK = 1 << 0, 14 IS_RESIZE_ACK = 1 << 0,
15 IS_RESTORE_ACK = 1 << 1, 15 IS_RESTORE_ACK = 1 << 1,
16 IS_REPAINT_ACK = 1 << 2, 16 IS_REPAINT_ACK = 1 << 2,
17 }; 17 };
18 static bool is_resize_ack(int flags) { 18 static bool is_resize_ack(int flags) {
19 return (flags & IS_RESIZE_ACK) != 0; 19 return (flags & IS_RESIZE_ACK) != 0;
20 } 20 }
21 static bool is_restore_ack(int flags) { 21 static bool is_restore_ack(int flags) {
22 return (flags & IS_RESTORE_ACK) != 0; 22 return (flags & IS_RESTORE_ACK) != 0;
23 } 23 }
24 static bool is_repaint_ack(int flags) { 24 static bool is_repaint_ack(int flags) {
25 return (flags & IS_REPAINT_ACK) != 0; 25 return (flags & IS_REPAINT_ACK) != 0;
26 } 26 }
27 }; 27 };
28 28
29 struct ViewMsg_Navigate_Type {
30 public:
31 enum Value {
32 // Reload the page.
33 RELOAD,
34
35 // Reload the page, ignoring any cache entries.
36 RELOAD_IGNORING_CACHE,
37
38 // Reload the page using the original request URL.
39 RELOAD_ORIGINAL_REQUEST_URL,
40
41 // The navigation is the result of session restore and should honor the
42 // page's cache policy while restoring form state. This is set to true if
43 // restoring a tab/session from the previous session and the previous
44 // session did not crash. If this is not set and the page was restored then
45 // the page's cache policy is ignored and we load from the cache.
46 RESTORE,
47
48 // Like RESTORE, except that the navigation contains POST data.
49 RESTORE_WITH_POST,
50
51 // Navigation type not categorized by the other types.
52 NORMAL
53 };
54 };
55
29 // Note: keep enums in content/browser/resources/accessibility/accessibility.js 56 // Note: keep enums in content/browser/resources/accessibility/accessibility.js
30 // in sync with these two enums. 57 // in sync with these two enums.
31 enum AccessibilityModeFlag { 58 enum AccessibilityModeFlag {
32 // Accessibility updates are processed to create platform trees and events are 59 // Accessibility updates are processed to create platform trees and events are
33 // passed to platform APIs in the browser. 60 // passed to platform APIs in the browser.
34 AccessibilityModeFlagPlatform = 1 << 0, 61 AccessibilityModeFlagPlatform = 1 << 0,
35 62
36 // Accessibility is on, and the full tree is computed. If this flag is off, 63 // Accessibility is on, and the full tree is computed. If this flag is off,
37 // only limited information about editable text nodes is sent to the browser 64 // only limited information about editable text nodes is sent to the browser
38 // process. Useful for implementing limited UIA on tablets. 65 // process. Useful for implementing limited UIA on tablets.
39 AccessibilityModeFlagPlatformFullTree = 1 << 1, 66 AccessibilityModeFlagPlatformFullTree = 1 << 1,
40 }; 67 };
41 68
42 enum AccessibilityMode { 69 enum AccessibilityMode {
43 // All accessibility is off. 70 // All accessibility is off.
44 AccessibilityModeOff = 0, 71 AccessibilityModeOff = 0,
45 72
46 // Renderer accessibility is on, and platform APIs are called. Note that this 73 // Renderer accessibility is on, and platform APIs are called. Note that this
47 // is different to AccessibilityModeAll, which is defined to be all bits on. 74 // is different to AccessibilityModeAll, which is defined to be all bits on.
48 AccessibilityModeComplete = 75 AccessibilityModeComplete =
49 AccessibilityModeFlagPlatform | AccessibilityModeFlagPlatformFullTree, 76 AccessibilityModeFlagPlatform | AccessibilityModeFlagPlatformFullTree,
50 77
51 // Renderer accessibility is on, platform APIs are called, but only limited 78 // Renderer accessibility is on, platform APIs are called, but only limited
52 // information is available (see AccessibilityModeFlagEditableTextOnly). 79 // information is available (see AccessibilityModeFlagEditableTextOnly).
53 AccessibilityModeEditableTextOnly = AccessibilityModeFlagPlatform 80 AccessibilityModeEditableTextOnly = AccessibilityModeFlagPlatform
54 }; 81 };
55 82
56 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ 83 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_
OLDNEW
« no previous file with comments | « trunk/src/content/common/frame_messages.h ('k') | trunk/src/content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698