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

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

Issue 2656043002: Use explicit WebString conversions in remaining content files (Closed)
Patch Set: build fix Created 3 years, 11 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 WebPoint(data.target_point.x(), data.target_point.y())); 497 WebPoint(data.target_point.x(), data.target_point.y()));
498 break; 498 break;
499 case ui::AX_ACTION_SET_SELECTION: 499 case ui::AX_ACTION_SET_SELECTION:
500 anchor.setSelection(anchor, data.anchor_offset, focus, data.focus_offset); 500 anchor.setSelection(anchor, data.anchor_offset, focus, data.focus_offset);
501 HandleAXEvent(root, ui::AX_EVENT_LAYOUT_COMPLETE); 501 HandleAXEvent(root, ui::AX_EVENT_LAYOUT_COMPLETE);
502 break; 502 break;
503 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT: 503 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT:
504 target.setSequentialFocusNavigationStartingPoint(); 504 target.setSequentialFocusNavigationStartingPoint();
505 break; 505 break;
506 case ui::AX_ACTION_SET_VALUE: 506 case ui::AX_ACTION_SET_VALUE:
507 target.setValue(data.value); 507 target.setValue(blink::WebString::fromUTF16(data.value));
508 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); 508 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED);
509 break; 509 break;
510 case ui::AX_ACTION_SHOW_CONTEXT_MENU: 510 case ui::AX_ACTION_SHOW_CONTEXT_MENU:
511 target.showContextMenu(); 511 target.showContextMenu();
512 break; 512 break;
513 case ui::AX_ACTION_REPLACE_SELECTED_TEXT: 513 case ui::AX_ACTION_REPLACE_SELECTED_TEXT:
514 case ui::AX_ACTION_NONE: 514 case ui::AX_ACTION_NONE:
515 NOTREACHED(); 515 NOTREACHED();
516 break; 516 break;
517 } 517 }
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 662
663 const WebDocument& document = GetMainDocument(); 663 const WebDocument& document = GetMainDocument();
664 if (document.isNull()) 664 if (document.isNull())
665 return; 665 return;
666 666
667 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( 667 document.accessibilityObject().scrollToMakeVisibleWithSubFocus(
668 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); 668 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height()));
669 } 669 }
670 670
671 } // namespace content 671 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698