Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: content/browser/web_contents/aura/wcw_wrapper.cc

Issue 895543005: Refactor GestureNavigation to eliminate code redundancy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed some bugs related to back and forth 2nd case navigation Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698