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

Side by Side Diff: chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h

Issue 985133002: Remove NativeWebContentsModalDialog and NativePopup typedefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extension-popup
Patch Set: Created 5 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_
6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/webui/constrained_web_dialog_ui.h" 9 #include "chrome/browser/ui/webui/constrained_web_dialog_ui.h"
10 #include "ui/web_dialogs/web_dialog_ui.h" 10 #include "ui/web_dialogs/web_dialog_ui.h"
(...skipping 18 matching lines...) Expand all
29 ~ConstrainedWebDialogDelegateBase() override; 29 ~ConstrainedWebDialogDelegateBase() override;
30 30
31 bool closed_via_webui() const; 31 bool closed_via_webui() const;
32 32
33 // ConstrainedWebDialogDelegate interface. 33 // ConstrainedWebDialogDelegate interface.
34 const ui::WebDialogDelegate* GetWebDialogDelegate() const override; 34 const ui::WebDialogDelegate* GetWebDialogDelegate() const override;
35 ui::WebDialogDelegate* GetWebDialogDelegate() override; 35 ui::WebDialogDelegate* GetWebDialogDelegate() override;
36 void OnDialogCloseFromWebUI() override; 36 void OnDialogCloseFromWebUI() override;
37 void ReleaseWebContentsOnDialogClose() override; 37 void ReleaseWebContentsOnDialogClose() override;
38 content::WebContents* GetWebContents() override; 38 content::WebContents* GetWebContents() override;
39 web_modal::NativeWebContentsModalDialog GetNativeDialog() override; 39 gfx::NativeWindow GetNativeDialog() override;
40 gfx::Size GetMinimumSize() const override; 40 gfx::Size GetMinimumSize() const override;
41 gfx::Size GetMaximumSize() const override; 41 gfx::Size GetMaximumSize() const override;
42 gfx::Size GetPreferredSize() const override; 42 gfx::Size GetPreferredSize() const override;
43 43
44 // WebDialogWebContentsDelegate interface. 44 // WebDialogWebContentsDelegate interface.
45 void HandleKeyboardEvent( 45 void HandleKeyboardEvent(
46 content::WebContents* source, 46 content::WebContents* source,
47 const content::NativeWebKeyboardEvent& event) override; 47 const content::NativeWebKeyboardEvent& event) override;
48 48
49 private: 49 private:
50 scoped_ptr<ui::WebDialogDelegate> web_dialog_delegate_; 50 scoped_ptr<ui::WebDialogDelegate> web_dialog_delegate_;
51 51
52 // Holds the HTML to display in the constrained dialog. 52 // Holds the HTML to display in the constrained dialog.
53 scoped_ptr<content::WebContents> web_contents_; 53 scoped_ptr<content::WebContents> web_contents_;
54 54
55 // Was the dialog closed from WebUI (in which case |web_dialog_delegate_|'s 55 // Was the dialog closed from WebUI (in which case |web_dialog_delegate_|'s
56 // OnDialogClosed() method has already been called)? 56 // OnDialogClosed() method has already been called)?
57 bool closed_via_webui_; 57 bool closed_via_webui_;
58 58
59 // If true, release |web_contents_| on close instead of destroying it. 59 // If true, release |web_contents_| on close instead of destroying it.
60 bool release_contents_on_close_; 60 bool release_contents_on_close_;
61 61
62 scoped_ptr<WebDialogWebContentsDelegate> override_tab_delegate_; 62 scoped_ptr<WebDialogWebContentsDelegate> override_tab_delegate_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(ConstrainedWebDialogDelegateBase); 64 DISALLOW_COPY_AND_ASSIGN(ConstrainedWebDialogDelegateBase);
65 }; 65 };
66 66
67 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_ 67 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_DELEGATE_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/certificate_viewer_webui.cc ('k') | chrome/browser/ui/webui/constrained_web_dialog_delegate_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698