| 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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 } | 491 } |
| 492 | 492 |
| 493 void RenderWidgetHostViewBase::CreateBrowserAccessibilityManagerIfNeeded() { | 493 void RenderWidgetHostViewBase::CreateBrowserAccessibilityManagerIfNeeded() { |
| 494 } | 494 } |
| 495 | 495 |
| 496 void RenderWidgetHostViewBase::SetBrowserAccessibilityManager( | 496 void RenderWidgetHostViewBase::SetBrowserAccessibilityManager( |
| 497 BrowserAccessibilityManager* manager) { | 497 BrowserAccessibilityManager* manager) { |
| 498 browser_accessibility_manager_.reset(manager); | 498 browser_accessibility_manager_.reset(manager); |
| 499 } | 499 } |
| 500 | 500 |
| 501 void RenderWidgetHostViewBase::OnAccessibilitySetFocus(int acc_obj_id) { |
| 502 } |
| 503 |
| 504 void RenderWidgetHostViewBase::AccessibilityShowMenu(int acc_obj_id) { |
| 505 } |
| 506 |
| 507 gfx::Point RenderWidgetHostViewBase::AccessibilityOriginInScreen( |
| 508 const gfx::Rect& bounds) { |
| 509 return bounds.origin(); |
| 510 } |
| 511 |
| 501 void RenderWidgetHostViewBase::UpdateScreenInfo(gfx::NativeView view) { | 512 void RenderWidgetHostViewBase::UpdateScreenInfo(gfx::NativeView view) { |
| 502 RenderWidgetHostImpl* impl = NULL; | 513 RenderWidgetHostImpl* impl = NULL; |
| 503 if (GetRenderWidgetHost()) | 514 if (GetRenderWidgetHost()) |
| 504 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); | 515 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
| 505 | 516 |
| 506 if (impl) | 517 if (impl) |
| 507 impl->SendScreenRects(); | 518 impl->SendScreenRects(); |
| 508 | 519 |
| 509 if (HasDisplayPropertyChanged(view) && impl) | 520 if (HasDisplayPropertyChanged(view) && impl) |
| 510 impl->NotifyScreenInfoChanged(); | 521 impl->NotifyScreenInfoChanged(); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 | 615 |
| 605 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const { | 616 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const { |
| 606 return GetViewBounds().size(); | 617 return GetViewBounds().size(); |
| 607 } | 618 } |
| 608 | 619 |
| 609 void RenderWidgetHostViewBase::SetInsets(const gfx::Insets& insets) { | 620 void RenderWidgetHostViewBase::SetInsets(const gfx::Insets& insets) { |
| 610 NOTIMPLEMENTED(); | 621 NOTIMPLEMENTED(); |
| 611 } | 622 } |
| 612 | 623 |
| 613 } // namespace content | 624 } // namespace content |
| OLD | NEW |