Allow switching between extended and unified
Add option in display settings page to switch the mode
BUG=489809
TEST=manual + DisplayManagerTest.UnifiedDesktopBasic
Committed: https://crrev.com/c2f6958c7ca1d40d19ed124ba68af93ab88daed8
Cr-Commit-Position: refs/heads/master@{#330813}
5 years, 7 months ago
(2015-05-20 06:19:27 UTC)
#12
Patchset #3 (id:140001) has been deleted
oshima
I'm working on saving status although it may not be merged to 44 (change may ...
5 years, 7 months ago
(2015-05-20 06:40:01 UTC)
#13
I'm working on saving status although it may not be merged to 44 (change may be
too big to merge).
https://codereview.chromium.org/1126933004/diff/120001/chrome/browser/resourc...
File chrome/browser/resources/options/chromeos/display_options.html (right):
https://codereview.chromium.org/1126933004/diff/120001/chrome/browser/resourc...
chrome/browser/resources/options/chromeos/display_options.html:23: <div
class="selected-display-option-title">
On 2015/05/20 02:47:49, Jun Mukai wrote:
> Can you put a comment for why this is empty?
> <!-- intentionally blank for the title column space. -->
Done.
https://codereview.chromium.org/1126933004/diff/120001/chrome/browser/resourc...
chrome/browser/resources/options/chromeos/display_options.html:26: <span
i18n-content="enableUnifiedDesktop"></span>
On 2015/05/20 02:47:49, Jun Mukai wrote:
> label for="display-options-toggle-unified-desktop" instead of span, so that
> clicking on the text also toggles the checkbox.
Changed to use label, although I followed the other example as suggested by
presubmit. (label for="" seems to be banned)
https://codereview.chromium.org/1126933004/diff/120001/chrome/browser/resourc...
File chrome/browser/resources/options/chromeos/display_options.js (right):
https://codereview.chromium.org/1126933004/diff/120001/chrome/browser/resourc...
chrome/browser/resources/options/chromeos/display_options.js:269:
this.show_unified_desktop_option_ == showUnifiedDesktop) {
On 2015/05/20 02:47:49, Jun Mukai wrote:
> name should be camelcased. showUnifiedDesktopOption_ = ...
Done.
https://codereview.chromium.org/1126933004/diff/120001/chrome/browser/resourc...
chrome/browser/resources/options/chromeos/display_options.js:957: * @param
{string} multi display mode: one of 'mirror', 'unified',
On 2015/05/20 02:47:49, Jun Mukai wrote:
> It's better to be an enum rather than a string. See the usage of
> SecondaryDisplayLayout.
Done.
https://codereview.chromium.org/1126933004/diff/120001/chrome/browser/ui/webu...
File chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
(right):
https://codereview.chromium.org/1126933004/diff/120001/chrome/browser/ui/webu...
chrome/browser/ui/webui/options/chromeos/display_options_handler.cc:274:
(display_manager->IsInUnifiedMode() ? "unified" : "extended"));
On 2015/05/20 02:47:49, Jun Mukai wrote:
> Just for safety,
> if (mode == "unified") DCHECK(ash::switches::UnifiedDesktopEnabled());
> ?
>
> (or setting to "mirror" or "extended" if
> !ash::switches::UnifiedDesktopEnabled()) ?
This is actually guarded by ash::switch, and DCHECK beflow, so I dont' think
that's helpful.
https://codereview.chromium.org/1126933004/diff/120001/chrome/browser/ui/webu...
chrome/browser/ui/webui/options/chromeos/display_options_handler.cc:489: const
base::ListValue* args) {
On 2015/05/20 02:47:49, Jun Mukai wrote:
> Also DCHECK(ash::switches::UnifiedDesktopEnabled()) (or return if not)
Done.
oshima
Patchset #3 (id:160001) has been deleted
5 years, 7 months ago
(2015-05-20 06:40:12 UTC)
#14
5 years, 7 months ago
(2015-05-20 07:34:20 UTC)
#15
lgtm
https://codereview.chromium.org/1126933004/diff/120001/chrome/browser/resourc...
File chrome/browser/resources/options/chromeos/display_options.html (right):
https://codereview.chromium.org/1126933004/diff/120001/chrome/browser/resourc...
chrome/browser/resources/options/chromeos/display_options.html:26: <span
i18n-content="enableUnifiedDesktop"></span>
On 2015/05/20 06:40:01, oshima wrote:
> On 2015/05/20 02:47:49, Jun Mukai wrote:
> > label for="display-options-toggle-unified-desktop" instead of span, so that
> > clicking on the text also toggles the checkbox.
>
> Changed to use label, although I followed the other example as suggested by
> presubmit. (label for="" seems to be banned)
Oh, I didn't know that details. Enclosing by <label> looks good.
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/59346)
5 years, 7 months ago
(2015-05-20 16:49:12 UTC)
#22
Issue 1126933004: Allow switching between extended and unified
(Closed)
Created 5 years, 7 months ago by oshima
Modified 5 years, 7 months ago
Reviewers: Jun Mukai, xiyuan
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 17