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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/aura/wcw_wrapper.cc
diff --git a/content/browser/web_contents/aura/wcw_wrapper.cc b/content/browser/web_contents/aura/wcw_wrapper.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5e2b6e985e37aa66f4a4e273b296f322ad2f5f58
--- /dev/null
+++ b/content/browser/web_contents/aura/wcw_wrapper.cc
@@ -0,0 +1,34 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/web_contents/web_contents_impl.h"
+#include "content/public/browser/render_widget_host_view.h"
+#include "ui/aura/window.h"
+
+namespace content {
+
+WCWWrapper::WCWWrapper(WebContentsImpl* web_contents)
+ : SlidableWrapper(),
+ web_contents_(web_contents) {
+ // I don't think we need this class.
+ NOTREACHED();
+ DCHECK(web_contents_);
+}
+
+WCWWrapper::~WCWWrapper() {
+}
+
+ui::Layer* WCWWrapper::GetLayer() {
+ return web_contents_->GetRenderWidgetHostView()->GetNativeView()->layer();
+}
+
+gfx::Rect WCWWrapper::GetBounds() {
+ return web_contents_->GetRenderWidgetHostView()->GetNativeView()->bounds();
+}
+
+void WCWWrapper::SetBounds(const gfx::Rect& bounds) {
+ web_contents_->GetRenderWidgetHostView()->GetNativeView()->SetBounds(bounds);
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698