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

Side by Side Diff: content/renderer/accessibility/render_accessibility_impl.cc

Issue 2873373005: Add custom action support (Closed)
Patch Set: Migrate to DataObjectBuilder. Created 3 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/renderer/accessibility/render_accessibility_impl.h" 5 #include "content/renderer/accessibility/render_accessibility_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT: 557 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT:
558 target.SetSequentialFocusNavigationStartingPoint(); 558 target.SetSequentialFocusNavigationStartingPoint();
559 break; 559 break;
560 case ui::AX_ACTION_SET_VALUE: 560 case ui::AX_ACTION_SET_VALUE:
561 target.SetValue(blink::WebString::FromUTF16(data.value)); 561 target.SetValue(blink::WebString::FromUTF16(data.value));
562 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); 562 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED);
563 break; 563 break;
564 case ui::AX_ACTION_SHOW_CONTEXT_MENU: 564 case ui::AX_ACTION_SHOW_CONTEXT_MENU:
565 target.ShowContextMenu(); 565 target.ShowContextMenu();
566 break; 566 break;
567 case ui::AX_ACTION_CUSTOM_ACTION:
567 case ui::AX_ACTION_REPLACE_SELECTED_TEXT: 568 case ui::AX_ACTION_REPLACE_SELECTED_TEXT:
568 case ui::AX_ACTION_NONE: 569 case ui::AX_ACTION_NONE:
569 NOTREACHED(); 570 NOTREACHED();
570 break; 571 break;
571 } 572 }
572 } 573 }
573 574
574 void RenderAccessibilityImpl::OnEventsAck(int ack_token) { 575 void RenderAccessibilityImpl::OnEventsAck(int ack_token) {
575 // Ignore acks intended for a different or previous instance. 576 // Ignore acks intended for a different or previous instance.
576 if (ack_token_ != ack_token) 577 if (ack_token_ != ack_token)
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 719
719 const WebDocument& document = GetMainDocument(); 720 const WebDocument& document = GetMainDocument();
720 if (document.IsNull()) 721 if (document.IsNull())
721 return; 722 return;
722 723
723 WebAXObject::FromWebDocument(document).ScrollToMakeVisibleWithSubFocus( 724 WebAXObject::FromWebDocument(document).ScrollToMakeVisibleWithSubFocus(
724 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); 725 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height()));
725 } 726 }
726 727
727 } // namespace content 728 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | third_party/closure_compiler/externs/automation.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698