| Index: chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller_deprecated.h
|
| diff --git a/chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller_deprecated.h b/chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller_deprecated.h
|
| deleted file mode 100644
|
| index 48c8df9a464e24baa428f12a83713ab2c0d612df..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller_deprecated.h
|
| +++ /dev/null
|
| @@ -1,76 +0,0 @@
|
| -// Copyright 2013 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#ifndef CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_CONTROLLER_DEPRECATED_H_
|
| -#define CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_CONTROLLER_DEPRECATED_H_
|
| -
|
| -#import <Cocoa/Cocoa.h>
|
| -#import <Quartz/Quartz.h>
|
| -
|
| -#include <memory>
|
| -
|
| -#include "base/callback.h"
|
| -#import "base/mac/scoped_nsobject.h"
|
| -#include "base/strings/string16.h"
|
| -#include "chrome/browser/media/webrtc/desktop_media_list.h"
|
| -#include "chrome/browser/media/webrtc/desktop_media_picker.h"
|
| -#import "chrome/browser/ui/cocoa/media_picker/desktop_media_picker_bridge.h"
|
| -
|
| -// A controller for the Desktop Media Picker. Presents the user with a list of
|
| -// media sources for screen-capturing, and reports the result.
|
| -@interface DesktopMediaPickerControllerDeprecated
|
| - : NSWindowController<NSWindowDelegate, DesktopMediaPickerObserver> {
|
| - @private
|
| - // The image browser view to present sources to the user (thumbnails and
|
| - // names).
|
| - base::scoped_nsobject<IKImageBrowserView> sourceBrowser_;
|
| -
|
| - // The button used to confirm the selection.
|
| - NSButton* shareButton_; // weak; owned by contentView
|
| -
|
| - // The button used to cancel and close the dialog.
|
| - NSButton* cancelButton_; // weak; owned by contentView
|
| -
|
| - // The checkbox for audio share.
|
| - // |audioShareState_| records the state when check box is disabled.
|
| - base::scoped_nsobject<NSButton> audioShareCheckbox_;
|
| - NSCellStateValue audioShareState_;
|
| -
|
| - // Provides source information (including thumbnails) to fill up |items_| and
|
| - // to render in |sourceBrowser_|.
|
| - std::unique_ptr<DesktopMediaList> media_list_;
|
| -
|
| - // To be called with the user selection.
|
| - DesktopMediaPicker::DoneCallback doneCallback_;
|
| -
|
| - // Array of |DesktopMediaPickerItem| used as data for |sourceBrowser_|.
|
| - base::scoped_nsobject<NSMutableArray> items_;
|
| -
|
| - // C++ bridge to use as an observer to |media_list_|, that forwards obj-c
|
| - // notifications to this object.
|
| - std::unique_ptr<DesktopMediaPickerBridge> bridge_;
|
| -
|
| - // Used to create |DesktopMediaPickerItem|s with unique IDs.
|
| - int lastImageUID_;
|
| -}
|
| -
|
| -// Designated initializer.
|
| -// To show the dialog, use |NSWindowController|'s |showWindow:|.
|
| -// |callback| will be called to report the user's selection.
|
| -// |appName| will be used to format the dialog's title and the label, where it
|
| -// appears as the initiator of the request.
|
| -// |targetName| will be used to format the dialog's label and appear as the
|
| -// consumer of the requested stream.
|
| -- (id)initWithScreenList:(std::unique_ptr<DesktopMediaList>)screen_list
|
| - windowList:(std::unique_ptr<DesktopMediaList>)window_list
|
| - tabList:(std::unique_ptr<DesktopMediaList>)tab_list
|
| - parent:(NSWindow*)parent
|
| - callback:(const DesktopMediaPicker::DoneCallback&)callback
|
| - appName:(const base::string16&)appName
|
| - targetName:(const base::string16&)targetName
|
| - requestAudio:(bool)requestAudio;
|
| -
|
| -@end
|
| -
|
| -#endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_CONTROLLER_DEPRECATED_H_
|
|
|