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

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

Issue 2537953003: WebString: makes string16 conversions explicit (part 1: blink, content) (Closed)
Patch Set: fix Created 4 years 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 WebPoint(data.target_point.x(), data.target_point.y())); 493 WebPoint(data.target_point.x(), data.target_point.y()));
494 break; 494 break;
495 case ui::AX_ACTION_SET_SELECTION: 495 case ui::AX_ACTION_SET_SELECTION:
496 anchor.setSelection(anchor, data.anchor_offset, focus, data.focus_offset); 496 anchor.setSelection(anchor, data.anchor_offset, focus, data.focus_offset);
497 HandleAXEvent(root, ui::AX_EVENT_LAYOUT_COMPLETE); 497 HandleAXEvent(root, ui::AX_EVENT_LAYOUT_COMPLETE);
498 break; 498 break;
499 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT: 499 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT:
500 target.setSequentialFocusNavigationStartingPoint(); 500 target.setSequentialFocusNavigationStartingPoint();
501 break; 501 break;
502 case ui::AX_ACTION_SET_VALUE: 502 case ui::AX_ACTION_SET_VALUE:
503 target.setValue(data.value); 503 target.setValue(blink::WebString::fromUTF16(data.value));
504 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); 504 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED);
505 break; 505 break;
506 case ui::AX_ACTION_SHOW_CONTEXT_MENU: 506 case ui::AX_ACTION_SHOW_CONTEXT_MENU:
507 target.showContextMenu(); 507 target.showContextMenu();
508 break; 508 break;
509 case ui::AX_ACTION_REPLACE_SELECTED_TEXT: 509 case ui::AX_ACTION_REPLACE_SELECTED_TEXT:
510 case ui::AX_ACTION_NONE: 510 case ui::AX_ACTION_NONE:
511 NOTREACHED(); 511 NOTREACHED();
512 break; 512 break;
513 } 513 }
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 658
659 const WebDocument& document = GetMainDocument(); 659 const WebDocument& document = GetMainDocument();
660 if (document.isNull()) 660 if (document.isNull())
661 return; 661 return;
662 662
663 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( 663 document.accessibilityObject().scrollToMakeVisibleWithSubFocus(
664 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); 664 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height()));
665 } 665 }
666 666
667 } // namespace content 667 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698