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