| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 callback->Run(); | 437 callback->Run(); |
| 438 } | 438 } |
| 439 | 439 |
| 440 void RenderWidgetHostViewChildFrame::GetScreenInfo( | 440 void RenderWidgetHostViewChildFrame::GetScreenInfo( |
| 441 blink::WebScreenInfo* results) { | 441 blink::WebScreenInfo* results) { |
| 442 if (!frame_connector_) | 442 if (!frame_connector_) |
| 443 return; | 443 return; |
| 444 frame_connector_->GetScreenInfo(results); | 444 frame_connector_->GetScreenInfo(results); |
| 445 } | 445 } |
| 446 | 446 |
| 447 bool RenderWidgetHostViewChildFrame::GetScreenColorProfile( | |
| 448 std::vector<char>* color_profile) { | |
| 449 if (!frame_connector_) | |
| 450 return false; | |
| 451 DCHECK(color_profile->empty()); | |
| 452 NOTIMPLEMENTED(); | |
| 453 return false; | |
| 454 } | |
| 455 | |
| 456 gfx::Rect RenderWidgetHostViewChildFrame::GetBoundsInRootWindow() { | 447 gfx::Rect RenderWidgetHostViewChildFrame::GetBoundsInRootWindow() { |
| 457 gfx::Rect rect; | 448 gfx::Rect rect; |
| 458 if (frame_connector_) { | 449 if (frame_connector_) { |
| 459 RenderWidgetHostViewBase* root_view = | 450 RenderWidgetHostViewBase* root_view = |
| 460 frame_connector_->GetRootRenderWidgetHostView(); | 451 frame_connector_->GetRootRenderWidgetHostView(); |
| 461 | 452 |
| 462 // The root_view can be null in tests when using a TestWebContents. | 453 // The root_view can be null in tests when using a TestWebContents. |
| 463 if (root_view) | 454 if (root_view) |
| 464 rect = root_view->GetBoundsInRootWindow(); | 455 rect = root_view->GetBoundsInRootWindow(); |
| 465 } | 456 } |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 | 692 |
| 702 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { | 693 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { |
| 703 return true; | 694 return true; |
| 704 } | 695 } |
| 705 | 696 |
| 706 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 697 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 707 return surface_id_; | 698 return surface_id_; |
| 708 }; | 699 }; |
| 709 | 700 |
| 710 } // namespace content | 701 } // namespace content |
| OLD | NEW |