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

Side by Side Diff: chrome/browser/accessibility/browser_accessibility_manager_win.cc

Issue 6713084: Move the rest of the renderer->browser messages that belong in content. Also do a bunch of cleanup: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/accessibility/browser_accessibility_manager_win.h" 5 #include "chrome/browser/accessibility/browser_accessibility_manager_win.h"
6 6
7 #include "chrome/browser/accessibility/browser_accessibility_win.h" 7 #include "chrome/browser/accessibility/browser_accessibility_win.h"
8 #include "chrome/common/render_messages_params.h" 8 #include "content/common/view_messages.h"
9 9
10 using webkit_glue::WebAccessibility; 10 using webkit_glue::WebAccessibility;
11 11
12 // static 12 // static
13 BrowserAccessibilityManager* BrowserAccessibilityManager::Create( 13 BrowserAccessibilityManager* BrowserAccessibilityManager::Create(
14 gfx::NativeView parent_view, 14 gfx::NativeView parent_view,
15 const WebAccessibility& src, 15 const WebAccessibility& src,
16 BrowserAccessibilityDelegate* delegate, 16 BrowserAccessibilityDelegate* delegate,
17 BrowserAccessibilityFactory* factory) { 17 BrowserAccessibilityFactory* factory) {
18 return new BrowserAccessibilityManagerWin( 18 return new BrowserAccessibilityManagerWin(
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 IAccessible* BrowserAccessibilityManagerWin::GetParentWindowIAccessible() { 51 IAccessible* BrowserAccessibilityManagerWin::GetParentWindowIAccessible() {
52 return window_iaccessible_; 52 return window_iaccessible_;
53 } 53 }
54 54
55 void BrowserAccessibilityManagerWin::NotifyAccessibilityEvent( 55 void BrowserAccessibilityManagerWin::NotifyAccessibilityEvent(
56 int type, 56 int type,
57 BrowserAccessibility* node) { 57 BrowserAccessibility* node) {
58 LONG event_id; 58 LONG event_id;
59 switch (type) { 59 switch (type) {
60 case ViewHostMsg_AccessibilityNotification_Params:: 60 case ViewHostMsg_AccessibilityNotification_Type::
61 NOTIFICATION_TYPE_CHECK_STATE_CHANGED: 61 NOTIFICATION_TYPE_CHECK_STATE_CHANGED:
62 event_id = EVENT_OBJECT_STATECHANGE; 62 event_id = EVENT_OBJECT_STATECHANGE;
63 break; 63 break;
64 case ViewHostMsg_AccessibilityNotification_Params:: 64 case ViewHostMsg_AccessibilityNotification_Type::
65 NOTIFICATION_TYPE_CHILDREN_CHANGED: 65 NOTIFICATION_TYPE_CHILDREN_CHANGED:
66 event_id = EVENT_OBJECT_REORDER; 66 event_id = EVENT_OBJECT_REORDER;
67 break; 67 break;
68 case ViewHostMsg_AccessibilityNotification_Params:: 68 case ViewHostMsg_AccessibilityNotification_Type::
69 NOTIFICATION_TYPE_FOCUS_CHANGED: 69 NOTIFICATION_TYPE_FOCUS_CHANGED:
70 event_id = EVENT_OBJECT_FOCUS; 70 event_id = EVENT_OBJECT_FOCUS;
71 break; 71 break;
72 case ViewHostMsg_AccessibilityNotification_Params:: 72 case ViewHostMsg_AccessibilityNotification_Type::
73 NOTIFICATION_TYPE_LOAD_COMPLETE: 73 NOTIFICATION_TYPE_LOAD_COMPLETE:
74 event_id = IA2_EVENT_DOCUMENT_LOAD_COMPLETE; 74 event_id = IA2_EVENT_DOCUMENT_LOAD_COMPLETE;
75 break; 75 break;
76 case ViewHostMsg_AccessibilityNotification_Params:: 76 case ViewHostMsg_AccessibilityNotification_Type::
77 NOTIFICATION_TYPE_VALUE_CHANGED: 77 NOTIFICATION_TYPE_VALUE_CHANGED:
78 event_id = EVENT_OBJECT_VALUECHANGE; 78 event_id = EVENT_OBJECT_VALUECHANGE;
79 break; 79 break;
80 case ViewHostMsg_AccessibilityNotification_Params:: 80 case ViewHostMsg_AccessibilityNotification_Type::
81 NOTIFICATION_TYPE_SELECTED_TEXT_CHANGED: 81 NOTIFICATION_TYPE_SELECTED_TEXT_CHANGED:
82 event_id = IA2_EVENT_TEXT_CARET_MOVED; 82 event_id = IA2_EVENT_TEXT_CARET_MOVED;
83 } 83 }
84 84
85 NotifyWinEvent(event_id, GetParentView(), OBJID_CLIENT, node->child_id()); 85 NotifyWinEvent(event_id, GetParentView(), OBJID_CLIENT, node->child_id());
86 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698