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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.cc

Issue 273423004: Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 | Annotate | Revision Log
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/browser/renderer_host/render_widget_host_view_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/accessibility/browser_accessibility_manager.h" 8 #include "content/browser/accessibility/browser_accessibility_manager.h"
9 #include "content/browser/gpu/gpu_data_manager_impl.h" 9 #include "content/browser/gpu/gpu_data_manager_impl.h"
10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h"
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 477
478 void RenderWidgetHostViewBase::SetPopupType(blink::WebPopupType popup_type) { 478 void RenderWidgetHostViewBase::SetPopupType(blink::WebPopupType popup_type) {
479 popup_type_ = popup_type; 479 popup_type_ = popup_type;
480 } 480 }
481 481
482 blink::WebPopupType RenderWidgetHostViewBase::GetPopupType() { 482 blink::WebPopupType RenderWidgetHostViewBase::GetPopupType() {
483 return popup_type_; 483 return popup_type_;
484 } 484 }
485 485
486 BrowserAccessibilityManager* 486 BrowserAccessibilityManager*
487 RenderWidgetHostViewBase::GetBrowserAccessibilityManager() const { 487 RenderWidgetHostViewBase::CreateBrowserAccessibilityManager(
488 return browser_accessibility_manager_.get(); 488 BrowserAccessibilityDelegate* delegate) {
489 NOTREACHED();
490 return NULL;
489 } 491 }
490 492
491 void RenderWidgetHostViewBase::CreateBrowserAccessibilityManagerIfNeeded() { 493 void RenderWidgetHostViewBase::AccessibilityShowMenu(const gfx::Point& point) {
492 }
493
494 void RenderWidgetHostViewBase::SetBrowserAccessibilityManager(
495 BrowserAccessibilityManager* manager) {
496 browser_accessibility_manager_.reset(manager);
497 }
498
499 void RenderWidgetHostViewBase::OnAccessibilitySetFocus(int acc_obj_id) {
500 }
501
502 void RenderWidgetHostViewBase::AccessibilityShowMenu(int acc_obj_id) {
503 } 494 }
504 495
505 gfx::Point RenderWidgetHostViewBase::AccessibilityOriginInScreen( 496 gfx::Point RenderWidgetHostViewBase::AccessibilityOriginInScreen(
506 const gfx::Rect& bounds) { 497 const gfx::Rect& bounds) {
507 return bounds.origin(); 498 return bounds.origin();
508 } 499 }
509 500
510 void RenderWidgetHostViewBase::UpdateScreenInfo(gfx::NativeView view) { 501 void RenderWidgetHostViewBase::UpdateScreenInfo(gfx::NativeView view) {
511 RenderWidgetHostImpl* impl = NULL; 502 RenderWidgetHostImpl* impl = NULL;
512 if (GetRenderWidgetHost()) 503 if (GetRenderWidgetHost())
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 ? blink::WebScreenOrientationPortraitPrimary 653 ? blink::WebScreenOrientationPortraitPrimary
663 : blink::WebScreenOrientationPortraitSecondary; 654 : blink::WebScreenOrientationPortraitSecondary;
664 } 655 }
665 656
666 return primary_landscape_angle == angle 657 return primary_landscape_angle == angle
667 ? blink::WebScreenOrientationLandscapePrimary 658 ? blink::WebScreenOrientationLandscapePrimary
668 : blink::WebScreenOrientationLandscapeSecondary; 659 : blink::WebScreenOrientationLandscapeSecondary;
669 } 660 }
670 661
671 } // namespace content 662 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698