OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/browser/web_contents/web_contents_impl.h" |
| 6 #include "content/public/browser/render_widget_host_view.h" |
| 7 #include "ui/aura/window.h" |
| 8 |
| 9 namespace content { |
| 10 |
| 11 WCWWrapper::WCWWrapper(WebContentsImpl* web_contents) |
| 12 : SlidableWrapper(), |
| 13 web_contents_(web_contents) { |
| 14 // I don't think we need this class. |
| 15 NOTREACHED(); |
| 16 DCHECK(web_contents_); |
| 17 } |
| 18 |
| 19 WCWWrapper::~WCWWrapper() { |
| 20 } |
| 21 |
| 22 ui::Layer* WCWWrapper::GetLayer() { |
| 23 return web_contents_->GetRenderWidgetHostView()->GetNativeView()->layer(); |
| 24 } |
| 25 |
| 26 gfx::Rect WCWWrapper::GetBounds() { |
| 27 return web_contents_->GetRenderWidgetHostView()->GetNativeView()->bounds(); |
| 28 } |
| 29 |
| 30 void WCWWrapper::SetBounds(const gfx::Rect& bounds) { |
| 31 web_contents_->GetRenderWidgetHostView()->GetNativeView()->SetBounds(bounds); |
| 32 } |
| 33 |
| 34 } // namespace content |
OLD | NEW |