| OLD | NEW |
| 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 Loading... |
| 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::CreateBrowserAccessibilityManager( | 487 RenderWidgetHostViewBase::GetBrowserAccessibilityManager() const { |
| 488 BrowserAccessibilityDelegate* delegate) { | 488 return browser_accessibility_manager_.get(); |
| 489 NOTREACHED(); | |
| 490 return NULL; | |
| 491 } | 489 } |
| 492 | 490 |
| 493 void RenderWidgetHostViewBase::AccessibilityShowMenu(const gfx::Point& point) { | 491 void RenderWidgetHostViewBase::CreateBrowserAccessibilityManagerIfNeeded() { |
| 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) { |
| 494 } | 503 } |
| 495 | 504 |
| 496 gfx::Point RenderWidgetHostViewBase::AccessibilityOriginInScreen( | 505 gfx::Point RenderWidgetHostViewBase::AccessibilityOriginInScreen( |
| 497 const gfx::Rect& bounds) { | 506 const gfx::Rect& bounds) { |
| 498 return bounds.origin(); | 507 return bounds.origin(); |
| 499 } | 508 } |
| 500 | 509 |
| 501 void RenderWidgetHostViewBase::UpdateScreenInfo(gfx::NativeView view) { | 510 void RenderWidgetHostViewBase::UpdateScreenInfo(gfx::NativeView view) { |
| 502 RenderWidgetHostImpl* impl = NULL; | 511 RenderWidgetHostImpl* impl = NULL; |
| 503 if (GetRenderWidgetHost()) | 512 if (GetRenderWidgetHost()) |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 ? blink::WebScreenOrientationPortraitPrimary | 662 ? blink::WebScreenOrientationPortraitPrimary |
| 654 : blink::WebScreenOrientationPortraitSecondary; | 663 : blink::WebScreenOrientationPortraitSecondary; |
| 655 } | 664 } |
| 656 | 665 |
| 657 return primary_landscape_angle == angle | 666 return primary_landscape_angle == angle |
| 658 ? blink::WebScreenOrientationLandscapePrimary | 667 ? blink::WebScreenOrientationLandscapePrimary |
| 659 : blink::WebScreenOrientationLandscapeSecondary; | 668 : blink::WebScreenOrientationLandscapeSecondary; |
| 660 } | 669 } |
| 661 | 670 |
| 662 } // namespace content | 671 } // namespace content |
| OLD | NEW |