Change directory if the active list item on navigation list is changed.
We want to change current directory if the active item on navigation list is changed.
But we don't want to change current directory when listed items are spliced or permuted.
In both cases, 'change' event is dispatched from selection model and we can't distinguish these cases from event itself.
currentActiveItem_ is introduced to detect change of actual active item.
BUG=375663
TEST=go through steps in Issue 375663 and 361047
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273601
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275359
@yoshiki - This is a plan which looks robust for me (among plans I can ...
6 years, 7 months ago
(2014-05-26 13:00:19 UTC)
#1
@yoshiki - This is a plan which looks robust for me (among plans I can came up
with). What do you think?
fukino
yoshiki san, could you take a look? I modified three functions. onSelectionChange_() : Before returning, ...
6 years, 6 months ago
(2014-05-27 09:07:17 UTC)
#2
yoshiki san, could you take a look?
I modified three functions.
onSelectionChange_() : Before returning, update the selected model item. If
actual selected model is changed and dontHandleSelectionEvent_ is false, we
change current directory to the root directory of selected model item.
selectByIndex() : Now this method is for handling request from outside to change
index. The only client is volume shortcuts(Ctrl+[0-9]). If this is called,
change selected index and activate the selected item.
activateModelItem() : Always opens the root directory of given model item.
yoshiki
https://codereview.chromium.org/303503004/diff/80001/chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js File chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js (right): https://codereview.chromium.org/303503004/diff/80001/chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js#newcode21 chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js:21: * Entry set which is used for this test. ...
6 years, 6 months ago
(2014-05-29 04:24:44 UTC)
#3
Thank you for quick review! I'm sorry for too many comment errors... https://codereview.chromium.org/303503004/diff/80001/chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js File chrome/test/data/extensions/api_test/file_manager_browsertest/folder_shortcuts.js ...
6 years, 6 months ago
(2014-05-29 04:46:59 UTC)
#4
6 years, 6 months ago
(2014-05-29 21:21:02 UTC)
#10
Message was sent while issue was closed.
Change committed as 273601
fukino
A revert of this CL has been created in https://codereview.chromium.org/307053002/ by fukino@chromium.org. The reason for ...
6 years, 6 months ago
(2014-05-30 05:18:11 UTC)
#11
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/307053002/ by fukino@chromium.org.
The reason for reverting is: Added browser test broke Linux ChromiumOS Tests
(dbg). This may be flakiness and I should investigate the reason before
relanding.
fukino
yoshiki-san, could you take a look? Only test code changed. I divide the too slow ...
6 years, 6 months ago
(2014-06-05 11:27:38 UTC)
#12
yoshiki-san, could you take a look?
Only test code changed.
I divide the too slow browser test into two tests. Now both of them run in 5 or
6 seconds in release build.
There still is a risk of time out in debug build and these test is basically for
improve coverage of JS code, so I disabled these 2 tests in debug build.
https://codereview.chromium.org/303503004/diff/160001/chrome/browser/chromeos...
File chrome/browser/chromeos/file_manager/file_manager_browsertest.cc (right):
https://codereview.chromium.org/303503004/diff/160001/chrome/browser/chromeos...
chrome/browser/chromeos/file_manager/file_manager_browsertest.cc:905: #define
WRAPPED_INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator) \
MAYBE_FolderShortcuts was not expanded because INSTANTIATE_TEST_CASE_P macro
concatenates prefix(MAYBE_FolderShortcuts) and
test_case_name(FileManagerBrowserTest) first.
This macro works around for this.
yoshiki
lgtm with nits https://codereview.chromium.org/303503004/diff/160001/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc File chrome/browser/chromeos/file_manager/file_manager_browsertest.cc (right): https://codereview.chromium.org/303503004/diff/160001/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc#newcode905 chrome/browser/chromeos/file_manager/file_manager_browsertest.cc:905: #define WRAPPED_INSTANTIATE_TEST_CASE_P(prefix, test_case_name, generator) \ On ...
6 years, 6 months ago
(2014-06-05 15:11:23 UTC)
#13
Still lgtm https://codereview.chromium.org/303503004/diff/160001/chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/folder_shortcuts.js File chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/folder_shortcuts.js (right): https://codereview.chromium.org/303503004/diff/160001/chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/folder_shortcuts.js#newcode83 chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/folder_shortcuts.js:83: openNewWindow(null, RootPath.DRIVE), On 2014/06/06 02:15:24, fukino wrote: ...
6 years, 6 months ago
(2014-06-06 02:53:10 UTC)
#15
Still lgtm
https://codereview.chromium.org/303503004/diff/160001/chrome/test/data/extens...
File
chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/folder_shortcuts.js
(right):
https://codereview.chromium.org/303503004/diff/160001/chrome/test/data/extens...
chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/folder_shortcuts.js:83:
openNewWindow(null, RootPath.DRIVE),
On 2014/06/06 02:15:24, fukino wrote:
> On 2014/06/05 15:11:23, yoshiki wrote:
> > nit: 4 space indent.
>
> 'gjslint --strict' told me that it should be 2 space indent.
> It's because these lines are inside an array, I think.
Got it.
fukino
The CQ bit was checked by fukino@chromium.org
6 years, 6 months ago
(2014-06-06 04:55:32 UTC)
#16
Issue 303503004: Change directory if the active list item on navigation list is changed.
(Closed)
Created 6 years, 7 months ago by fukino
Modified 6 years, 6 months ago
Reviewers: yoshiki
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 34