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

Unified Diff: ui/android/view_android.h

Issue 2842693005: Store physical backing size in ViewAndroid (Closed)
Patch Set: no client Created 3 years, 8 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/android/view_android.h
diff --git a/ui/android/view_android.h b/ui/android/view_android.h
index fbd3c452cd1bfc555b5e50c828b7d4f2ad255c22..b7caf111a08ee2752528677015771c7dc89439a3 100644
--- a/ui/android/view_android.h
+++ b/ui/android/view_android.h
@@ -109,6 +109,7 @@ class UI_ANDROID_EXPORT ViewAndroid {
// Used to return and set the layer for this view. May be |null|.
cc::Layer* GetLayer() const;
void SetLayer(scoped_refptr<cc::Layer> layer);
+ void UpdateLayerBounds();
void SetDelegate(const base::android::JavaRef<jobject>& delegate);
@@ -133,6 +134,8 @@ class UI_ANDROID_EXPORT ViewAndroid {
bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext,
const base::android::JavaRef<jobject>& jimage);
+ gfx::Size GetPhysicalBackingSize();
+ void OnPhysicalBackingSizeChanged(const gfx::Size& size);
void OnBackgroundColorChanged(unsigned int color);
void OnTopControlsChanged(float top_controls_offset,
float top_content_offset);
@@ -201,6 +204,8 @@ class UI_ANDROID_EXPORT ViewAndroid {
// the passed events should be processed by the view.
LayoutParams layout_params_;
+ gfx::Size physical_size_;
+
gfx::Vector2dF content_offset_; // in CSS pixel.
std::unique_ptr<EventForwarder> event_forwarder_;

Powered by Google App Engine
This is Rietveld 408576698