| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/frame_host/render_widget_host_view_child_frame.h" | 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
| 6 | 6 |
| 7 #include "content/browser/accessibility/browser_accessibility_manager.h" | 7 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 8 #include "content/browser/frame_host/cross_process_frame_connector.h" | 8 #include "content/browser/frame_host/cross_process_frame_connector.h" |
| 9 #include "content/browser/renderer_host/render_widget_host_impl.h" | 9 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 10 #include "content/common/gpu/gpu_messages.h" | 10 #include "content/common/gpu/gpu_messages.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 return; | 57 return; |
| 58 host_->WasShown(ui::LatencyInfo()); | 58 host_->WasShown(ui::LatencyInfo()); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void RenderWidgetHostViewChildFrame::Hide() { | 61 void RenderWidgetHostViewChildFrame::Hide() { |
| 62 if (host_->is_hidden()) | 62 if (host_->is_hidden()) |
| 63 return; | 63 return; |
| 64 host_->WasHidden(); | 64 host_->WasHidden(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 void RenderWidgetHostViewChildFrame::Hide(bool content_visible) { |
| 68 Hide(); |
| 69 } |
| 70 |
| 67 bool RenderWidgetHostViewChildFrame::IsShowing() { | 71 bool RenderWidgetHostViewChildFrame::IsShowing() { |
| 68 return !host_->is_hidden(); | 72 return !host_->is_hidden(); |
| 69 } | 73 } |
| 70 | 74 |
| 71 gfx::Rect RenderWidgetHostViewChildFrame::GetViewBounds() const { | 75 gfx::Rect RenderWidgetHostViewChildFrame::GetViewBounds() const { |
| 72 gfx::Rect rect; | 76 gfx::Rect rect; |
| 73 if (frame_connector_) | 77 if (frame_connector_) |
| 74 rect = frame_connector_->ChildFrameRect(); | 78 rect = frame_connector_->ChildFrameRect(); |
| 75 return rect; | 79 return rect; |
| 76 } | 80 } |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 } | 307 } |
| 304 | 308 |
| 305 BrowserAccessibilityManager* | 309 BrowserAccessibilityManager* |
| 306 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( | 310 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( |
| 307 BrowserAccessibilityDelegate* delegate) { | 311 BrowserAccessibilityDelegate* delegate) { |
| 308 return BrowserAccessibilityManager::Create( | 312 return BrowserAccessibilityManager::Create( |
| 309 BrowserAccessibilityManager::GetEmptyDocument(), delegate); | 313 BrowserAccessibilityManager::GetEmptyDocument(), delegate); |
| 310 } | 314 } |
| 311 | 315 |
| 312 } // namespace content | 316 } // namespace content |
| OLD | NEW |