Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.cc

Issue 2172363002: Created min size for print preview dialog and modified to allow the Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge ConstrainedWebDialog functions Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // will look like. 54 // will look like.
55 class MediaRouterDialogDelegate : public WebDialogDelegate { 55 class MediaRouterDialogDelegate : public WebDialogDelegate {
56 public: 56 public:
57 explicit MediaRouterDialogDelegate( 57 explicit MediaRouterDialogDelegate(
58 const base::WeakPtr<MediaRouterDialogControllerImpl>& controller) 58 const base::WeakPtr<MediaRouterDialogControllerImpl>& controller)
59 : controller_(controller) {} 59 : controller_(controller) {}
60 ~MediaRouterDialogDelegate() override {} 60 ~MediaRouterDialogDelegate() override {}
61 61
62 // WebDialogDelegate implementation. 62 // WebDialogDelegate implementation.
63 ui::ModalType GetDialogModalType() const override { 63 ui::ModalType GetDialogModalType() const override {
64 // Not used, returning dummy value. 64 return ui::MODAL_TYPE_CHILD;
65 return ui::MODAL_TYPE_WINDOW;
66 } 65 }
67 66
68 base::string16 GetDialogTitle() const override { 67 base::string16 GetDialogTitle() const override {
69 return base::string16(); 68 return base::string16();
70 } 69 }
71 70
72 GURL GetDialogContentURL() const override { 71 GURL GetDialogContentURL() const override {
73 return GURL(chrome::kChromeUIMediaRouterURL); 72 return GURL(chrome::kChromeUIMediaRouterURL);
74 } 73 }
75 74
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 PresentationServiceDelegateImpl::FromWebContents(initiator()); 332 PresentationServiceDelegateImpl::FromWebContents(initiator());
334 if (!create_connection_request.get()) { 333 if (!create_connection_request.get()) {
335 media_router_ui->InitWithDefaultMediaSource(initiator(), delegate); 334 media_router_ui->InitWithDefaultMediaSource(initiator(), delegate);
336 } else { 335 } else {
337 media_router_ui->InitWithPresentationSessionRequest( 336 media_router_ui->InitWithPresentationSessionRequest(
338 initiator(), delegate, std::move(create_connection_request)); 337 initiator(), delegate, std::move(create_connection_request));
339 } 338 }
340 } 339 }
341 340
342 } // namespace media_router 341 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698