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

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: fix mac build error Created 4 years, 3 months 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 <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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698