| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_DESKTOP_MEDIA_PICKER_VIEWS_DEPRECATED_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_DESKTOP_MEDIA_PICKER_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_DESKTOP_MEDIA_PICKER_VIEWS_DEPRECATED_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_DESKTOP_MEDIA_PICKER_VIEWS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/media/desktop_media_list_observer.h" | 9 #include "chrome/browser/media/desktop_media_list_observer.h" |
| 10 #include "chrome/browser/media/desktop_media_picker.h" | 10 #include "chrome/browser/media/desktop_media_picker.h" |
| 11 #include "ui/views/window/dialog_delegate.h" | 11 #include "ui/views/window/dialog_delegate.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 class ImageView; | 14 class ImageView; |
| 15 class Label; | 15 class Label; |
| 16 class Checkbox; | 16 class Checkbox; |
| 17 } // namespace views | 17 } // namespace views |
| 18 | 18 |
| 19 // TODO(qiangchen): Remove this file after new UI is done, and remove related | |
| 20 // resource strings, such as IDS_DESKTOP_MEDIA_PICKER_AUDIO_SHARE_TOOLTIP_NONE. | |
| 21 namespace deprecated { | |
| 22 | |
| 23 class DesktopMediaPickerDialogView; | 19 class DesktopMediaPickerDialogView; |
| 24 class DesktopMediaPickerViews; | 20 class DesktopMediaPickerViews; |
| 25 class DesktopMediaSourceView; | 21 class DesktopMediaSourceView; |
| 26 | 22 |
| 27 // View that shows a list of desktop media sources available from | 23 // View that shows a list of desktop media sources available from |
| 28 // DesktopMediaList. | 24 // DesktopMediaList. |
| 29 class DesktopMediaListView : public views::View, | 25 class DesktopMediaListView : public views::View, |
| 30 public DesktopMediaListObserver { | 26 public DesktopMediaListObserver { |
| 31 public: | 27 public: |
| 32 DesktopMediaListView(DesktopMediaPickerDialogView* parent, | 28 DesktopMediaListView(DesktopMediaPickerDialogView* parent, |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 DoneCallback callback_; | 194 DoneCallback callback_; |
| 199 | 195 |
| 200 // The |dialog_| is owned by the corresponding views::Widget instance. | 196 // The |dialog_| is owned by the corresponding views::Widget instance. |
| 201 // When DesktopMediaPickerViews is destroyed the |dialog_| is destroyed | 197 // When DesktopMediaPickerViews is destroyed the |dialog_| is destroyed |
| 202 // asynchronously by closing the widget. | 198 // asynchronously by closing the widget. |
| 203 DesktopMediaPickerDialogView* dialog_; | 199 DesktopMediaPickerDialogView* dialog_; |
| 204 | 200 |
| 205 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPickerViews); | 201 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPickerViews); |
| 206 }; | 202 }; |
| 207 | 203 |
| 208 } // namespace deprecated | 204 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_MEDIA_PICKER_VIEWS_H_ |
| 209 | |
| 210 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_MEDIA_PICKER_VIEWS_DEPRECATED_H_ | |
| OLD | NEW |