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

Side by Side Diff: content/common/swapped_out_messages.cc

Issue 15741009: Native Android accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 6 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
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 #include "content/common/swapped_out_messages.h" 5 #include "content/common/swapped_out_messages.h"
6 6
7 #include "content/common/accessibility_messages.h" 7 #include "content/common/accessibility_messages.h"
8 #include "content/common/input_messages.h" 8 #include "content/common/input_messages.h"
9 #include "content/common/view_messages.h" 9 #include "content/common/view_messages.h"
10 #include "content/public/common/content_client.h" 10 #include "content/public/common/content_client.h"
(...skipping 14 matching lines...) Expand all
25 case ViewHostMsg_Focus::ID: 25 case ViewHostMsg_Focus::ID:
26 // Handled by RenderView. 26 // Handled by RenderView.
27 case ViewHostMsg_RenderViewGone::ID: 27 case ViewHostMsg_RenderViewGone::ID:
28 case ViewHostMsg_ShouldClose_ACK::ID: 28 case ViewHostMsg_ShouldClose_ACK::ID:
29 case ViewHostMsg_SwapOut_ACK::ID: 29 case ViewHostMsg_SwapOut_ACK::ID:
30 case ViewHostMsg_ClosePage_ACK::ID: 30 case ViewHostMsg_ClosePage_ACK::ID:
31 case ViewHostMsg_DomOperationResponse::ID: 31 case ViewHostMsg_DomOperationResponse::ID:
32 // Allow cross-process JavaScript calls. 32 // Allow cross-process JavaScript calls.
33 case ViewHostMsg_RouteCloseEvent::ID: 33 case ViewHostMsg_RouteCloseEvent::ID:
34 case ViewHostMsg_RouteMessageEvent::ID: 34 case ViewHostMsg_RouteMessageEvent::ID:
35 case AccessibilityHostMsg_Notifications::ID:
35 return true; 36 return true;
36 default: 37 default:
37 break; 38 break;
38 } 39 }
39 40
40 // Check with the embedder as well. 41 // Check with the embedder as well.
41 ContentClient* client = GetContentClient(); 42 ContentClient* client = GetContentClient();
42 return client->CanSendWhileSwappedOut(msg); 43 return client->CanSendWhileSwappedOut(msg);
43 } 44 }
44 45
(...skipping 20 matching lines...) Expand all
65 case ViewHostMsg_RenderViewReady::ID: 66 case ViewHostMsg_RenderViewReady::ID:
66 // Updates the previous navigation entry. 67 // Updates the previous navigation entry.
67 case ViewHostMsg_UpdateState::ID: 68 case ViewHostMsg_UpdateState::ID:
68 // Sends an ACK. 69 // Sends an ACK.
69 case ViewHostMsg_UpdateTargetURL::ID: 70 case ViewHostMsg_UpdateTargetURL::ID:
70 // We allow closing even if we are in the process of swapping out. 71 // We allow closing even if we are in the process of swapping out.
71 case ViewHostMsg_Close::ID: 72 case ViewHostMsg_Close::ID:
72 // Sends an ACK. 73 // Sends an ACK.
73 case ViewHostMsg_RequestMove::ID: 74 case ViewHostMsg_RequestMove::ID:
74 // Sends an ACK. 75 // Sends an ACK.
75 case AccessibilityHostMsg_Notifications::ID:
76 #if defined(USE_X11) 76 #if defined(USE_X11)
77 // Synchronous message when leaving a page with plugin. In this case, 77 // Synchronous message when leaving a page with plugin. In this case,
78 // we want to destroy the plugin rather than return an error message. 78 // we want to destroy the plugin rather than return an error message.
79 case ViewHostMsg_DestroyPluginContainer::ID: 79 case ViewHostMsg_DestroyPluginContainer::ID:
80 #endif 80 #endif
81 return true; 81 return true;
82 default: 82 default:
83 break; 83 break;
84 } 84 }
85 85
86 // Check with the embedder as well. 86 // Check with the embedder as well.
87 ContentClient* client = GetContentClient(); 87 ContentClient* client = GetContentClient();
88 return client->CanHandleWhileSwappedOut(msg); 88 return client->CanHandleWhileSwappedOut(msg);
89 } 89 }
90 90
91 } // namespace content 91 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698