| 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 27 matching lines...) Expand all Loading... |
| 38 // Called by parent (DesktopMediaPickerViews) when it's destroyed. | 38 // Called by parent (DesktopMediaPickerViews) when it's destroyed. |
| 39 void DetachParent(); | 39 void DetachParent(); |
| 40 | 40 |
| 41 // Called by DesktopMediaListView. | 41 // Called by DesktopMediaListView. |
| 42 void OnSelectionChanged(); | 42 void OnSelectionChanged(); |
| 43 void OnDoubleClick(); | 43 void OnDoubleClick(); |
| 44 | 44 |
| 45 // views::TabbedPaneListener overrides. | 45 // views::TabbedPaneListener overrides. |
| 46 void TabSelectedAt(int index) override; | 46 void TabSelectedAt(int index) override; |
| 47 | 47 |
| 48 // views::View overrides. | |
| 49 gfx::Size GetPreferredSize() const override; | |
| 50 | |
| 51 // views::DialogDelegateView overrides. | 48 // views::DialogDelegateView overrides. |
| 52 ui::ModalType GetModalType() const override; | 49 ui::ModalType GetModalType() const override; |
| 50 gfx::Size GetUnsnappedPreferredSize() const override; |
| 53 base::string16 GetWindowTitle() const override; | 51 base::string16 GetWindowTitle() const override; |
| 54 bool IsDialogButtonEnabled(ui::DialogButton button) const override; | 52 bool IsDialogButtonEnabled(ui::DialogButton button) const override; |
| 55 views::View* GetInitiallyFocusedView() override; | 53 views::View* GetInitiallyFocusedView() override; |
| 56 bool ShouldDefaultButtonBeBlue() const override; | 54 bool ShouldDefaultButtonBeBlue() const override; |
| 57 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; | 55 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; |
| 58 View* CreateExtraView() override; | 56 View* CreateExtraView() override; |
| 59 bool Accept() override; | 57 bool Accept() override; |
| 60 void DeleteDelegate() override; | 58 void DeleteDelegate() override; |
| 61 | 59 |
| 62 void OnMediaListRowsChanged(); | 60 void OnMediaListRowsChanged(); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 111 |
| 114 // The |dialog_| is owned by the corresponding views::Widget instance. | 112 // The |dialog_| is owned by the corresponding views::Widget instance. |
| 115 // When DesktopMediaPickerViews is destroyed the |dialog_| is destroyed | 113 // When DesktopMediaPickerViews is destroyed the |dialog_| is destroyed |
| 116 // asynchronously by closing the widget. | 114 // asynchronously by closing the widget. |
| 117 DesktopMediaPickerDialogView* dialog_; | 115 DesktopMediaPickerDialogView* dialog_; |
| 118 | 116 |
| 119 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPickerViews); | 117 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPickerViews); |
| 120 }; | 118 }; |
| 121 | 119 |
| 122 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_ | 120 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_CAPTURE_DESKTOP_MEDIA_PICKER_VIEWS_H_ |
| OLD | NEW |