| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "chrome/browser/ui/webui/media_router/media_router_dialog_controller_im
pl.h" | 5 #include "chrome/browser/ui/webui/media_router/media_router_dialog_controller_im
pl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class MediaRouterDialogDelegate : public WebDialogDelegate { | 53 class MediaRouterDialogDelegate : public WebDialogDelegate { |
| 54 public: | 54 public: |
| 55 MediaRouterDialogDelegate(base::WeakPtr<MediaRouterAction> action, | 55 MediaRouterDialogDelegate(base::WeakPtr<MediaRouterAction> action, |
| 56 const base::WeakPtr<MediaRouterDialogControllerImpl>& controller) | 56 const base::WeakPtr<MediaRouterDialogControllerImpl>& controller) |
| 57 : action_(action), | 57 : action_(action), |
| 58 controller_(controller) {} | 58 controller_(controller) {} |
| 59 ~MediaRouterDialogDelegate() override {} | 59 ~MediaRouterDialogDelegate() override {} |
| 60 | 60 |
| 61 // WebDialogDelegate implementation. | 61 // WebDialogDelegate implementation. |
| 62 ui::ModalType GetDialogModalType() const override { | 62 ui::ModalType GetDialogModalType() const override { |
| 63 // Not used, returning dummy value. | 63 return ui::MODAL_TYPE_CHILD; |
| 64 return ui::MODAL_TYPE_WINDOW; | |
| 65 } | 64 } |
| 66 | 65 |
| 67 base::string16 GetDialogTitle() const override { | 66 base::string16 GetDialogTitle() const override { |
| 68 return base::string16(); | 67 return base::string16(); |
| 69 } | 68 } |
| 70 | 69 |
| 71 GURL GetDialogContentURL() const override { | 70 GURL GetDialogContentURL() const override { |
| 72 return GURL(chrome::kChromeUIMediaRouterURL); | 71 return GURL(chrome::kChromeUIMediaRouterURL); |
| 73 } | 72 } |
| 74 | 73 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 ->GetWeakPtr(); | 317 ->GetWeakPtr(); |
| 319 if (!create_connection_request.get()) { | 318 if (!create_connection_request.get()) { |
| 320 media_router_ui->InitWithDefaultMediaSource(delegate); | 319 media_router_ui->InitWithDefaultMediaSource(delegate); |
| 321 } else { | 320 } else { |
| 322 media_router_ui->InitWithPresentationSessionRequest( | 321 media_router_ui->InitWithPresentationSessionRequest( |
| 323 initiator(), delegate, std::move(create_connection_request)); | 322 initiator(), delegate, std::move(create_connection_request)); |
| 324 } | 323 } |
| 325 } | 324 } |
| 326 | 325 |
| 327 } // namespace media_router | 326 } // namespace media_router |
| OLD | NEW |