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

Unified Diff: ui/views/controls/native/native_view_host_aura.h

Issue 24299004: Implement features in NativeViewHostAura for scroll end effect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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: ui/views/controls/native/native_view_host_aura.h
diff --git a/ui/views/controls/native/native_view_host_aura.h b/ui/views/controls/native/native_view_host_aura.h
index eba4b99c9fdf2c0b5cb45c7c571e7b5dc0aca9cc..45d80cc896fe6c8db0aa5c25e0c43b6440453926 100644
--- a/ui/views/controls/native/native_view_host_aura.h
+++ b/ui/views/controls/native/native_view_host_aura.h
@@ -7,7 +7,9 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
#include "ui/aura/window_observer.h"
+#include "ui/compositor/layer.h"
#include "ui/views/controls/native/native_view_host_wrapper.h"
#include "ui/views/views_export.h"
@@ -39,12 +41,23 @@ class VIEWS_EXPORT NativeViewHostAura : public NativeViewHostWrapper,
// Overridden from aura::WindowObserver:
virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE;
+ gfx::Point CalculateNewNativeViewOrigin(gfx::Rect input_rect,
sky 2013/09/24 20:23:25 const gfx::Rect& on these (same for CalculateCLipO
rharrison 2013/09/26 20:36:48 Done.
+ gfx::Rect native_rect) const;
+ gfx::Point CalculateClipOrigin(gfx::Rect input_rect,
+ gfx::Rect native_rect) const;
+ float GetWidthFactor() const;
+ float GetHeightFactor() const;
+
// Our associated NativeViewHost.
NativeViewHost* host_;
// Have we installed a clip region?
bool installed_clip_;
+ scoped_ptr<ui::Layer> clipping_layer_;
sky 2013/09/24 20:23:25 If the life of clipping_layer is the same as NVHA,
rharrison 2013/09/26 20:36:48 Done.
+
+ gfx::Rect orig_bounds_;
+
DISALLOW_COPY_AND_ASSIGN(NativeViewHostAura);
};

Powered by Google App Engine
This is Rietveld 408576698