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

Issue 11642014: Re-introduce the partial magnifier (Closed)

Created:
8 years ago by yoshiki
Modified:
7 years, 11 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, dtseng+watch_chromium.org, sadrul, nkostylev+watch_chromium.org, hashimoto+watch_chromium.org, ben+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, arv (Not doing code reviews), dmazzoni+watch_chromium.org, oshima+watch_chromium.org, ctguil+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, zork+watch_chromium.org
Visibility:
Public.

Description

Re-introduce the partial magnifier Major Changes: - Adding a selectbox at the right of screen magnifier setting on the setting page. - Adding 'screen_magnifier_type2' pref. - Separating the enable/disable state of magnifier from MagnifierType. MagnifierType does no longer indicate the current enable/disable status. - Add IsMagnifierEnabled() to shell delegate. BUG=166832 TEST=confirm that magnifier can be enabled/disabled via the tray and the settings page. browser_test passes. R=zork@chromium.org, derat@chromium.org, nkostylev@chromium.org TBR=jhawkins@chromium.org # TBRing for small changed in C/B/ui/webui/options/ and C/B/resources/options/ Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176087

Patch Set 1 #

Total comments: 2

Patch Set 2 : Separate SetMagnifier into SetMagnifierEnabled and SetMagnifierType #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : review fix (comment #4) #

Total comments: 23

Patch Set 5 : review fix (comment #8) #

Total comments: 8

Patch Set 6 : rebase #

Patch Set 7 : review fix (comment #11) #

Patch Set 8 : fix the build failure on win_aura #

Unified diffs Side-by-side diffs Delta from patch set Stats (+536 lines, -257 lines) Patch
M ash/magnifier/magnifier_constants.h View 1 2 3 4 5 6 1 chunk +7 lines, -3 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 4 2 chunks +11 lines, -2 lines 0 comments Download
M ash/shell_delegate.h View 1 2 3 4 1 chunk +8 lines, -2 lines 0 comments Download
M ash/system/tray_accessibility.cc View 1 3 chunks +3 lines, -7 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 4 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_util.h View 1 2 3 4 2 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_util.cc View 1 2 3 4 5 6 3 chunks +7 lines, -28 lines 0 comments Download
M chrome/browser/chromeos/accessibility/magnification_manager.h View 1 2 3 4 1 chunk +13 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/accessibility/magnification_manager.cc View 1 2 3 4 5 6 4 chunks +97 lines, -35 lines 0 comments Download
M chrome/browser/chromeos/accessibility/magnification_manager_browsertest.cc View 1 2 3 4 8 chunks +272 lines, -124 lines 0 comments Download
M chrome/browser/chromeos/preferences.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 1 2 3 4 5 4 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/chromeos/system/tray_accessibility_browsertest.cc View 1 2 14 chunks +25 lines, -28 lines 0 comments Download
M chrome/browser/resources/options/browser_options.html View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/ash_init.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 1 chunk +19 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc View 1 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
yoshiki
@zork: could you take a look? thanks.
8 years ago (2012-12-20 02:49:36 UTC) #1
Zachary Kuznia
https://codereview.chromium.org/11642014/diff/1/chrome/browser/chromeos/accessibility/magnification_manager.h File chrome/browser/chromeos/accessibility/magnification_manager.h (right): https://codereview.chromium.org/11642014/diff/1/chrome/browser/chromeos/accessibility/magnification_manager.h#newcode37 chrome/browser/chromeos/accessibility/magnification_manager.h:37: virtual void SetMagnifier(bool enabled, ash::MagnifierType type) = 0; Please ...
8 years ago (2012-12-20 05:54:21 UTC) #2
yoshiki
@zork: PTAL https://codereview.chromium.org/11642014/diff/1/chrome/browser/chromeos/accessibility/magnification_manager.h File chrome/browser/chromeos/accessibility/magnification_manager.h (right): https://codereview.chromium.org/11642014/diff/1/chrome/browser/chromeos/accessibility/magnification_manager.h#newcode37 chrome/browser/chromeos/accessibility/magnification_manager.h:37: virtual void SetMagnifier(bool enabled, ash::MagnifierType type) = ...
8 years ago (2012-12-21 07:32:08 UTC) #3
Zachary Kuznia
https://codereview.chromium.org/11642014/diff/13004/ash/magnifier/magnifier_constants.h File ash/magnifier/magnifier_constants.h (right): https://codereview.chromium.org/11642014/diff/13004/ash/magnifier/magnifier_constants.h#newcode13 ash/magnifier/magnifier_constants.h:13: MAGNIFIER_DEFAULT = MAGNIFIER_FULL, Separate this out of the enum, ...
7 years, 12 months ago (2012-12-26 01:09:55 UTC) #4
yoshiki
zork: PTAL, Thanks, https://codereview.chromium.org/11642014/diff/13004/ash/magnifier/magnifier_constants.h File ash/magnifier/magnifier_constants.h (right): https://codereview.chromium.org/11642014/diff/13004/ash/magnifier/magnifier_constants.h#newcode13 ash/magnifier/magnifier_constants.h:13: MAGNIFIER_DEFAULT = MAGNIFIER_FULL, On 2012/12/26 01:09:56, ...
7 years, 11 months ago (2013-01-07 05:38:13 UTC) #5
Zachary Kuznia
lgtm
7 years, 11 months ago (2013-01-07 06:06:38 UTC) #6
yoshiki
+derat, nkostylev, jhawkins Could you review following files? Thanks, @derat - ash/ - chrome/browser/chromeos/ - ...
7 years, 11 months ago (2013-01-08 00:02:50 UTC) #7
Daniel Erat
Mostly just nits from me. https://codereview.chromium.org/11642014/diff/26001/ash/magnifier/magnifier_constants.h File ash/magnifier/magnifier_constants.h (right): https://codereview.chromium.org/11642014/diff/26001/ash/magnifier/magnifier_constants.h#newcode11 ash/magnifier/magnifier_constants.h:11: MAGNIFIER_FULL = 1, // ...
7 years, 11 months ago (2013-01-08 00:28:49 UTC) #8
yoshiki
@derat: PTAL, Thanks, https://codereview.chromium.org/11642014/diff/26001/ash/magnifier/magnifier_constants.h File ash/magnifier/magnifier_constants.h (right): https://codereview.chromium.org/11642014/diff/26001/ash/magnifier/magnifier_constants.h#newcode11 ash/magnifier/magnifier_constants.h:11: MAGNIFIER_FULL = 1, // This should ...
7 years, 11 months ago (2013-01-09 03:03:15 UTC) #9
Nikita (slow)
chrome/browser/ui/webui/chromeos/login/ lgtm
7 years, 11 months ago (2013-01-09 14:02:14 UTC) #10
Daniel Erat
lgtm https://chromiumcodereview.appspot.com/11642014/diff/22006/ash/magnifier/magnifier_constants.h File ash/magnifier/magnifier_constants.h (right): https://chromiumcodereview.appspot.com/11642014/diff/22006/ash/magnifier/magnifier_constants.h#newcode16 ash/magnifier/magnifier_constants.h:16: // This value must be the maximum number ...
7 years, 11 months ago (2013-01-09 15:43:55 UTC) #11
yoshiki
Thanks for reviews! https://codereview.chromium.org/11642014/diff/22006/ash/magnifier/magnifier_constants.h File ash/magnifier/magnifier_constants.h (right): https://codereview.chromium.org/11642014/diff/22006/ash/magnifier/magnifier_constants.h#newcode16 ash/magnifier/magnifier_constants.h:16: // This value must be the ...
7 years, 11 months ago (2013-01-10 06:25:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/11642014/25030
7 years, 11 months ago (2013-01-10 06:25:50 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-10 07:30:56 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/11642014/25031
7 years, 11 months ago (2013-01-10 08:07:28 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) content_browsertests
7 years, 11 months ago (2013-01-10 11:25:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/11642014/25031
7 years, 11 months ago (2013-01-10 12:37:46 UTC) #17
commit-bot: I haz the power
Change committed as 176087
7 years, 11 months ago (2013-01-10 15:08:13 UTC) #18
Dan Beam
7 years, 11 months ago (2013-01-11 00:34:22 UTC) #19
Message was sent while issue was closed.
there are other reviewers for these directories

https://chromiumcodereview.appspot.com/11642014/diff/26001/chrome/browser/ui/...
File chrome/browser/ui/webui/options/browser_options_handler.cc (right):

https://chromiumcodereview.appspot.com/11642014/diff/26001/chrome/browser/ui/...
chrome/browser/ui/webui/options/browser_options_handler.cc:433: base::ListValue*
magnifierList = new base::ListValue();
nit: magnifier_list (C++ is var_name not varName)

https://chromiumcodereview.appspot.com/11642014/diff/26001/chrome/browser/ui/...
chrome/browser/ui/webui/options/browser_options_handler.cc:435:
option_full->Append(base::Value::CreateIntegerValue(ash::MAGNIFIER_FULL));
nit: I think base::Value::Create* functions are deprecated / being removed.

https://chromiumcodereview.appspot.com/11642014/diff/26001/chrome/browser/ui/...
chrome/browser/ui/webui/options/browser_options_handler.cc:443:
magnifierList->Append(option_full);
totally optional nit: I'd put some visual separation because each list creation
and consider using scoped_ptr<>s, i.e.:

  scoped_ptr<base::ListValue> magnifier_list(new base::ListValue);
  
  scoped_ptr<base::ListValue> option_full(new base::ListValue);
  option_full->Append(
      new base::Value::IntegerValue(ash::MAGNIFIER_FULL));
  magnifier_list->Append(option_full.release());
  
  scoped_ptr<base::ListValue> option_partial(new base::ListValue);
  option_partial->Append(
      new base::Value::IntegerValue(ash::MAGNIFIER_PARTIAL));
  option_partial->Append(new base::StringValue(l10n_util::GetStringUTF16(
      IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_PARTIAL))
  magnifier_list->Append(option_partial);

  values->Set("magnifierList", magnifier_list.release());

Powered by Google App Engine
This is Rietveld 408576698