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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 681503002: Add Android AX functions to set the value and selection of a text field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@link_text_from_image
Patch Set: Fix compile Created 6 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 Send(new AccessibilityMsg_ScrollToPoint( 427 Send(new AccessibilityMsg_ScrollToPoint(
428 routing_id_, acc_obj_id, point)); 428 routing_id_, acc_obj_id, point));
429 } 429 }
430 430
431 void RenderFrameHostImpl::AccessibilitySetTextSelection( 431 void RenderFrameHostImpl::AccessibilitySetTextSelection(
432 int object_id, int start_offset, int end_offset) { 432 int object_id, int start_offset, int end_offset) {
433 Send(new AccessibilityMsg_SetTextSelection( 433 Send(new AccessibilityMsg_SetTextSelection(
434 routing_id_, object_id, start_offset, end_offset)); 434 routing_id_, object_id, start_offset, end_offset));
435 } 435 }
436 436
437 void RenderFrameHostImpl::AccessibilitySetValue(
438 int object_id, const base::string16& value) {
439 Send(new AccessibilityMsg_SetValue(routing_id_, object_id, value));
440 }
441
437 bool RenderFrameHostImpl::AccessibilityViewHasFocus() const { 442 bool RenderFrameHostImpl::AccessibilityViewHasFocus() const {
438 RenderWidgetHostView* view = render_view_host_->GetView(); 443 RenderWidgetHostView* view = render_view_host_->GetView();
439 if (view) 444 if (view)
440 return view->HasFocus(); 445 return view->HasFocus();
441 return false; 446 return false;
442 } 447 }
443 448
444 gfx::Rect RenderFrameHostImpl::AccessibilityGetViewBounds() const { 449 gfx::Rect RenderFrameHostImpl::AccessibilityGetViewBounds() const {
445 RenderWidgetHostView* view = render_view_host_->GetView(); 450 RenderWidgetHostView* view = render_view_host_->GetView();
446 if (view) 451 if (view)
(...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1649 void RenderFrameHostImpl::DidUseGeolocationPermission() { 1654 void RenderFrameHostImpl::DidUseGeolocationPermission() {
1650 RenderFrameHost* top_frame = frame_tree_node()->frame_tree()->GetMainFrame(); 1655 RenderFrameHost* top_frame = frame_tree_node()->frame_tree()->GetMainFrame();
1651 GetContentClient()->browser()->RegisterPermissionUsage( 1656 GetContentClient()->browser()->RegisterPermissionUsage(
1652 PERMISSION_GEOLOCATION, 1657 PERMISSION_GEOLOCATION,
1653 delegate_->GetAsWebContents(), 1658 delegate_->GetAsWebContents(),
1654 GetLastCommittedURL().GetOrigin(), 1659 GetLastCommittedURL().GetOrigin(),
1655 top_frame->GetLastCommittedURL().GetOrigin()); 1660 top_frame->GetLastCommittedURL().GetOrigin());
1656 } 1661 }
1657 1662
1658 } // namespace content 1663 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/common/accessibility_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698