Commit cb535608 authored by sergeyu's avatar sergeyu Committed by Commit bot

Disallow multiple selection in desktop media picker.

Previously the picker was allowing multiple source selection. Now
DesktopMediaPickerController sets allowsMultipleSelection to NO in
IKImageBrowserView to disable this feature.

BUG=466997

Review URL: https://codereview.chromium.org/1128353005

Cr-Commit-Position: refs/heads/master@{#330453}
parent df6c7a28
...@@ -127,6 +127,7 @@ const int kExcessButtonPadding = 6; ...@@ -127,6 +127,7 @@ const int kExcessButtonPadding = 6;
[sourceBrowser_ setDataSource:self]; [sourceBrowser_ setDataSource:self];
[sourceBrowser_ setCellsStyleMask:cellStyle]; [sourceBrowser_ setCellsStyleMask:cellStyle];
[sourceBrowser_ setCellSize:NSMakeSize(kThumbnailWidth, kThumbnailHeight)]; [sourceBrowser_ setCellSize:NSMakeSize(kThumbnailWidth, kThumbnailHeight)];
[sourceBrowser_ setAllowsMultipleSelection:NO];
// Create a scroll view to host the image browser. // Create a scroll view to host the image browser.
NSRect imageBrowserScrollFrame = NSMakeRect( NSRect imageBrowserScrollFrame = NSMakeRect(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment