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

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: Modify tracking of nonclipped state for new code structure. 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 // Notifies the delegate that the dialog is closing. The native
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 private: 32 private:
33 DISALLOW_COPY_AND_ASSIGN(SingleWebContentsDialogManagerDelegate); 33 DISALLOW_COPY_AND_ASSIGN(SingleWebContentsDialogManagerDelegate);
34 }; 34 };
35 35
36 // Provides an interface for platform-specific UI implementation for the web 36 // Provides an interface for platform-specific UI implementation for the web
37 // contents modal dialog. Each object will manage a single dialog window 37 // contents modal dialog. Each object will manage a single dialog window
38 // during its lifecycle. 38 // during its lifecycle.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 protected: 71 protected:
72 SingleWebContentsDialogManager() {} 72 SingleWebContentsDialogManager() {}
73 73
74 private: 74 private:
75 DISALLOW_COPY_AND_ASSIGN(SingleWebContentsDialogManager); 75 DISALLOW_COPY_AND_ASSIGN(SingleWebContentsDialogManager);
76 }; 76 };
77 77
78 } // namespace web_modal 78 } // namespace web_modal
79 79
80 #endif // COMPONENTS_WEB_MODAL_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_H_ 80 #endif // COMPONENTS_WEB_MODAL_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698