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

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

Issue 1388593002: Revert of Fixes for contenteditable caret and selection handling in Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/renderer_accessibility.h" 5 #include "content/renderer/accessibility/renderer_accessibility.h"
6 6
7 #include <queue> 7 #include <queue>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 375
376 WebAXObject obj = root_obj.hitTest(point); 376 WebAXObject obj = root_obj.hitTest(point);
377 if (!obj.isDetached()) 377 if (!obj.isDetached())
378 HandleAXEvent(obj, ui::AX_EVENT_HOVER); 378 HandleAXEvent(obj, ui::AX_EVENT_HOVER);
379 } 379 }
380 380
381 void RendererAccessibility::OnSetAccessibilityFocus(int acc_obj_id) { 381 void RendererAccessibility::OnSetAccessibilityFocus(int acc_obj_id) {
382 if (tree_source_.accessibility_focus_id() == acc_obj_id) 382 if (tree_source_.accessibility_focus_id() == acc_obj_id)
383 return; 383 return;
384 384
385 tree_source_.set_accessibility_focus_id(acc_obj_id); 385 tree_source_.set_accessiblity_focus_id(acc_obj_id);
386 386
387 const WebDocument& document = GetMainDocument(); 387 const WebDocument& document = GetMainDocument();
388 if (document.isNull()) 388 if (document.isNull())
389 return; 389 return;
390 390
391 WebAXObject obj = document.accessibilityObjectFromID(acc_obj_id); 391 WebAXObject obj = document.accessibilityObjectFromID(acc_obj_id);
392 392
393 // This object may not be a leaf node. Force the whole subtree to be 393 // This object may not be a leaf node. Force the whole subtree to be
394 // re-serialized. 394 // re-serialized.
395 serializer_.DeleteClientSubtree(obj); 395 serializer_.DeleteClientSubtree(obj);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 #ifndef NDEBUG 556 #ifndef NDEBUG
557 LOG(WARNING) << "ShowContextMenu on invalid object id " << acc_obj_id; 557 LOG(WARNING) << "ShowContextMenu on invalid object id " << acc_obj_id;
558 #endif 558 #endif
559 return; 559 return;
560 } 560 }
561 561
562 obj.showContextMenu(); 562 obj.showContextMenu();
563 } 563 }
564 564
565 } // namespace content 565 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698