| 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_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/media/webrtc/desktop_media_picker.h" | 9 #include "chrome/browser/media/webrtc/desktop_media_picker.h" |
| 10 #include "ui/views/controls/label.h" | 10 #include "ui/views/controls/label.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 void TabSelectedAt(int index) override; | 46 void TabSelectedAt(int index) override; |
| 47 | 47 |
| 48 // views::View overrides. | 48 // views::View overrides. |
| 49 gfx::Size CalculatePreferredSize() const override; | 49 gfx::Size CalculatePreferredSize() const override; |
| 50 | 50 |
| 51 // views::DialogDelegateView overrides. | 51 // views::DialogDelegateView overrides. |
| 52 ui::ModalType GetModalType() const override; | 52 ui::ModalType GetModalType() const override; |
| 53 base::string16 GetWindowTitle() const override; | 53 base::string16 GetWindowTitle() const override; |
| 54 bool IsDialogButtonEnabled(ui::DialogButton button) const override; | 54 bool IsDialogButtonEnabled(ui::DialogButton button) const override; |
| 55 views::View* GetInitiallyFocusedView() override; | 55 views::View* GetInitiallyFocusedView() override; |
| 56 bool ShouldDefaultButtonBeBlue() const override; | |
| 57 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; | 56 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; |
| 58 View* CreateExtraView() override; | 57 View* CreateExtraView() override; |
| 59 bool Accept() override; | 58 bool Accept() override; |
| 60 void DeleteDelegate() override; | 59 void DeleteDelegate() override; |
| 61 | 60 |
| 62 void OnMediaListRowsChanged(); | 61 void OnMediaListRowsChanged(); |
| 63 | 62 |
| 64 DesktopMediaListView* GetMediaListViewForTesting() const; | 63 DesktopMediaListView* GetMediaListViewForTesting() const; |
| 65 DesktopMediaSourceView* GetMediaSourceViewForTesting(int index) const; | 64 DesktopMediaSourceView* GetMediaSourceViewForTesting(int index) const; |
| 66 views::Checkbox* GetCheckboxForTesting() const; | 65 views::Checkbox* GetCheckboxForTesting() const; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 112 |
| 114 // The |dialog_| is owned by the corresponding views::Widget instance. | 113 // The |dialog_| is owned by the corresponding views::Widget instance. |
| 115 // When DesktopMediaPickerViews is destroyed the |dialog_| is destroyed | 114 // When DesktopMediaPickerViews is destroyed the |dialog_| is destroyed |
| 116 // asynchronously by closing the widget. | 115 // asynchronously by closing the widget. |
| 117 DesktopMediaPickerDialogView* dialog_; | 116 DesktopMediaPickerDialogView* dialog_; |
| 118 | 117 |
| 119 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPickerViews); | 118 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPickerViews); |
| 120 }; | 119 }; |
| 121 | 120 |
| 122 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_ | 121 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_ |
| OLD | NEW |