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

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

Issue 538203002: Fix a crash on WebViewFocusHelper destruction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build; cleanup. Created 6 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 (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_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "components/web_modal/native_web_contents_modal_dialog.h" 9 #include "components/web_modal/native_web_contents_modal_dialog.h"
10 #include "content/public/browser/web_ui_controller.h" 10 #include "content/public/browser/web_ui_controller.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 DISALLOW_COPY_AND_ASSIGN(ConstrainedWebDialogUI); 76 DISALLOW_COPY_AND_ASSIGN(ConstrainedWebDialogUI);
77 }; 77 };
78 78
79 // Create a constrained HTML dialog. The actual object that gets created 79 // Create a constrained HTML dialog. The actual object that gets created
80 // is a ConstrainedWebDialogDelegate, which later triggers construction of a 80 // is a ConstrainedWebDialogDelegate, which later triggers construction of a
81 // ConstrainedWebDialogUI object. 81 // ConstrainedWebDialogUI object.
82 // |browser_context| is used to construct the constrained HTML dialog's 82 // |browser_context| is used to construct the constrained HTML dialog's
83 // WebContents. 83 // WebContents.
84 // |delegate| controls the behavior of the dialog. 84 // |delegate| controls the behavior of the dialog.
85 // |tab_delegate| is optional, pass one in to use a custom
86 // WebDialogWebContentsDelegate with the dialog, or NULL to
87 // use the default one. The dialog takes ownership of
88 // |tab_delegate|.
89 // |overshadowed| is the tab being overshadowed by the dialog. 85 // |overshadowed| is the tab being overshadowed by the dialog.
90 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( 86 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog(
91 content::BrowserContext* browser_context, 87 content::BrowserContext* browser_context,
92 ui::WebDialogDelegate* delegate, 88 ui::WebDialogDelegate* delegate,
93 ui::WebDialogWebContentsDelegate* tab_delegate,
94 content::WebContents* overshadowed); 89 content::WebContents* overshadowed);
95 90
96 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ 91 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/certificate_viewer_webui.cc ('k') | chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698