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

Side by Side Diff: components/web_modal/single_web_contents_dialog_manager.h

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 compile error. Created 4 years, 4 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 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 COMPONENTS_WEB_MODAL_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_H_ 5 #ifndef COMPONENTS_WEB_MODAL_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_H_
6 #define COMPONENTS_WEB_MODAL_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_H_ 6 #define COMPONENTS_WEB_MODAL_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
11 namespace content { 11 namespace content {
12 class WebContents; 12 class WebContents;
13 } // namespace content 13 } // namespace content
14 14
15 namespace web_modal { 15 namespace web_modal {
16 16
17 class WebContentsModalDialogHost; 17 class WebContentsModalDialogHost;
18 18
19 // Interface from SingleWebContentsDialogManager to 19 // Interface from SingleWebContentsDialogManager to
20 // WebContentsModalDialogManager. 20 // WebContentsModalDialogManager.
21 class SingleWebContentsDialogManagerDelegate { 21 class SingleWebContentsDialogManagerDelegate {
22 public: 22 public:
23 SingleWebContentsDialogManagerDelegate() {} 23 SingleWebContentsDialogManagerDelegate() {}
24 virtual ~SingleWebContentsDialogManagerDelegate() {} 24 virtual ~SingleWebContentsDialogManagerDelegate() {}
25 25
26 virtual content::WebContents* GetWebContents() const = 0; 26 virtual content::WebContents* GetWebContents() const = 0;
27 27
28 // Notify the delegate that the dialog is closing. The native 28 // Notify the delegate that the dialog is closing. The native
Lei Zhang 2016/08/19 03:28:47 This was "Notifies" before...
rbpotter 2016/08/19 16:59:42 Done.
29 // manager will be deleted before the end of this call. 29 // manager will be deleted before the end of this call.
30 virtual void WillClose(gfx::NativeWindow dialog) = 0; 30 virtual void WillClose(gfx::NativeWindow dialog) = 0;
31 31
32 // Checks if the dialog should have a non clipped display (bounds not
33 // constrained to the bounds of the modal parent) if supported by the platform
34 // (Chrome OS only).
35 virtual bool IsNonClipped(gfx::NativeWindow dialog) const = 0;
36
37 // Indicates to the mangager that the dialog should be displayed in a non
38 // clipped display (bounds not constrained to modal parent) if this is
39 // supported by the platform (Chrome OS only).
40 virtual void AddNonClippedDialog(gfx::NativeWindow dialog) = 0;
41
32 private: 42 private:
33 DISALLOW_COPY_AND_ASSIGN(SingleWebContentsDialogManagerDelegate); 43 DISALLOW_COPY_AND_ASSIGN(SingleWebContentsDialogManagerDelegate);
34 }; 44 };
35 45
36 // Provides an interface for platform-specific UI implementation for the web 46 // Provides an interface for platform-specific UI implementation for the web
37 // contents modal dialog. Each object will manage a single dialog window 47 // contents modal dialog. Each object will manage a single dialog window
38 // during its lifecycle. 48 // during its lifecycle.
39 // 49 //
40 // Implementation classes should accept a dialog window at construction time 50 // Implementation classes should accept a dialog window at construction time
41 // and register to be notified when the dialog is closing, so that it can 51 // and register to be notified when the dialog is closing, so that it can
(...skipping 29 matching lines...) Expand all
71 protected: 81 protected:
72 SingleWebContentsDialogManager() {} 82 SingleWebContentsDialogManager() {}
73 83
74 private: 84 private:
75 DISALLOW_COPY_AND_ASSIGN(SingleWebContentsDialogManager); 85 DISALLOW_COPY_AND_ASSIGN(SingleWebContentsDialogManager);
76 }; 86 };
77 87
78 } // namespace web_modal 88 } // namespace web_modal
79 89
80 #endif // COMPONENTS_WEB_MODAL_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_H_ 90 #endif // COMPONENTS_WEB_MODAL_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698