diff options
author | mukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-04 22:34:58 +0000 |
---|---|---|
committer | mukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-04 22:34:58 +0000 |
commit | bbf500397ca51dae24fcc25aeae72d5869506d04 (patch) | |
tree | 344c90f37058f6cab64042788e93d5127232f099 /chromeos/display/output_configurator.cc | |
parent | f50dc6b0d4a951cdbcb01f9ecab66449a34b44f3 (diff) | |
download | chromium_src-bbf500397ca51dae24fcc25aeae72d5869506d04.zip chromium_src-bbf500397ca51dae24fcc25aeae72d5869506d04.tar.gz chromium_src-bbf500397ca51dae24fcc25aeae72d5869506d04.tar.bz2 |
Adds "Set this primary" button to multi-display options UI (2nd)
This also entails the following changes:
- now the first display might not be the primary. Adds 'isPrimary' field to the JS object instead.
- Display's ID was just an additional one but now its precision matters. Serializes the ID to a string rather than a double since display ID needs 64-bit precision integer.
The 1st one was reverted due to a memory leak in unit_tests, which happened since the destructor is called only in an observer method and the target object isn't in the tests. This CL avoids such situation by not-creating the instance in such case.
Also avoided using RootWindowObserver. Its destructor runs before Window's destructor, and it means that RemoveRootWindowObserver happens after RootWindowObserver is destructed -- and sometimes ObserverList will report failures in such case.
BUG=153879
Review URL: https://chromiumcodereview.appspot.com/11065015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160250 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/display/output_configurator.cc')
0 files changed, 0 insertions, 0 deletions