| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "ui/views/controls/table/table_view_observer.h" | 11 #include "ui/views/controls/table/table_view_observer.h" |
| 12 #include "ui/views/window/dialog_delegate.h" | 12 #include "ui/views/window/dialog_delegate.h" |
| 13 | 13 |
| 14 class ChooserContentView; | |
| 15 class ChooserController; | 14 class ChooserController; |
| 15 class DeviceChooserContentView; |
| 16 | 16 |
| 17 // Displays a chooser view as a modal dialog constrained | 17 // Displays a chooser view as a modal dialog constrained |
| 18 // to the window/tab displaying the given web contents. | 18 // to the window/tab displaying the given web contents. |
| 19 class ChooserDialogView : public views::DialogDelegateView, | 19 class ChooserDialogView : public views::DialogDelegateView, |
| 20 public views::TableViewObserver { | 20 public views::TableViewObserver { |
| 21 public: | 21 public: |
| 22 explicit ChooserDialogView( | 22 explicit ChooserDialogView( |
| 23 std::unique_ptr<ChooserController> chooser_controller); | 23 std::unique_ptr<ChooserController> chooser_controller); |
| 24 ~ChooserDialogView() override; | 24 ~ChooserDialogView() override; |
| 25 | 25 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 40 bool Close() override; | 40 bool Close() override; |
| 41 | 41 |
| 42 // views::DialogDelegateView: | 42 // views::DialogDelegateView: |
| 43 views::View* GetContentsView() override; | 43 views::View* GetContentsView() override; |
| 44 views::Widget* GetWidget() override; | 44 views::Widget* GetWidget() override; |
| 45 const views::Widget* GetWidget() const override; | 45 const views::Widget* GetWidget() const override; |
| 46 | 46 |
| 47 // views::TableViewObserver: | 47 // views::TableViewObserver: |
| 48 void OnSelectionChanged() override; | 48 void OnSelectionChanged() override; |
| 49 | 49 |
| 50 ChooserContentView* chooser_content_view_for_test() const; | 50 DeviceChooserContentView* device_chooser_content_view_for_test() const; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 ChooserContentView* chooser_content_view_; | 53 DeviceChooserContentView* device_chooser_content_view_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(ChooserDialogView); | 55 DISALLOW_COPY_AND_ASSIGN(ChooserDialogView); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_ | 58 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_ |
| OLD | NEW |