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

Unified Diff: ui/compositor/layer.h

Issue 10915140: Add the partial screen magnifier to Chrome OS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Code review fixes Created 8 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/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index fa2c474a11c0f42c42163a7e8ebeee5d6f87cac0..47619bdc2a07f92cc69e73004ebafe032356a550 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -168,6 +168,9 @@ class COMPOSITOR_EXPORT Layer
// grayscale otherwise.
float GetTargetGrayscale() const;
+ // Zoom the background by this amount.
+ void SetBackgroundZoom(float x_offset, float y_offset, float zoom, int inset);
+
// Invert the layer.
bool layer_inverted() const { return layer_inverted_; }
void SetLayerInverted(bool inverted);
@@ -325,6 +328,9 @@ class COMPOSITOR_EXPORT Layer
// Set all filters which got applied to the layer.
void SetLayerFilters();
+ // Set all filters which got applied to the layer background.
+ void SetLayerBackgroundFilters();
+
const LayerType type_;
Compositor* compositor_;
@@ -371,6 +377,11 @@ class COMPOSITOR_EXPORT Layer
// while attached to the main layer before the main layer is deleted.
Layer* layer_mask_back_link_;
+ float zoom_x_offset_;
+ float zoom_y_offset_;
+ float zoom_;
+ int zoom_inset_;
oshima 2012/09/13 16:35:31 document
Zachary Kuznia 2012/10/09 09:02:36 Done.
+
std::string name_;
LayerDelegate* delegate_;

Powered by Google App Engine
This is Rietveld 408576698