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

Unified Diff: ash/magnifier/magnification_controller.h

Issue 1157553003: Center the focus of the text input in magnifier screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 5 years, 7 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
« no previous file with comments | « no previous file | ash/magnifier/magnification_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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|.
« no previous file with comments | « no previous file | ash/magnifier/magnification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698