Index: ash/magnifier/magnification_controller.h |
diff --git a/ash/magnifier/magnification_controller.h b/ash/magnifier/magnification_controller.h |
index 319989be2b10f3d32984abb6c0cedee1fe7488c5..ea132d6a5d6d43ff36494fa48800077a980757ae 100644 |
--- a/ash/magnifier/magnification_controller.h |
+++ b/ash/magnifier/magnification_controller.h |
@@ -40,6 +40,13 @@ class ASH_EXPORT MagnificationController { |
// Returns if the screen magnifier is enabled or not. |
virtual bool IsEnabled() const = 0; |
+ // Enables or disables the feature for keeping the text input focus centered. |
+ virtual void SetKeepFocusCentered(bool keep_focus_centered) = 0; |
+ |
+ // Returns true if magnifier will keep the focus centered in screen for text |
+ // input. |
+ virtual bool KeepFocusCentered() const = 0; |
+ |
// Sets the magnification ratio. 1.0f means no magnification. |
virtual void SetScale(float scale, bool animate) = 0; |
// Returns the current magnification ratio. |
@@ -71,6 +78,9 @@ class ASH_EXPORT MagnificationController { |
// This is only used for testing purpose. |
virtual bool IsOnAnimationForTesting() const = 0; |
+ // Disables the delay for moving magnifier window in testing mode. |
+ virtual void DisableMoveMagnifierDelayForTesting() = 0; |
+ |
// Switch the magnified root window to |new_root_window|. This does following: |
// - Unzoom the current root_window. |
// - Zoom the given new root_window |new_root_window|. |