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

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

Issue 165073002: Remove deprecated version of views::CreateDialogFrameView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore ConstrainedWebDialogDelegateViewViews::CreateNonClientFrameView. Created 6 years, 10 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 | Annotate | Revision Log
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 protected: 44 protected:
45 virtual ~ConstrainedWebDialogDelegate() {} 45 virtual ~ConstrainedWebDialogDelegate() {}
46 }; 46 };
47 47
48 // ConstrainedWebDialogUI is a facility to show HTML WebUI content 48 // ConstrainedWebDialogUI is a facility to show HTML WebUI content
49 // in a tab-modal constrained dialog. It is implemented as an adapter 49 // in a tab-modal constrained dialog. It is implemented as an adapter
50 // between an WebDialogUI object and a web contents modal dialog. 50 // between an WebDialogUI object and a web contents modal dialog.
51 // 51 //
52 // Since the web contents modal dialog requires platform-specific delegate 52 // Since the web contents modal dialog requires platform-specific delegate
53 // implementations, this class is just a factory stub. 53 // implementations, this class is just a factory stub.
54 class ConstrainedWebDialogUI 54 class ConstrainedWebDialogUI : public content::WebUIController {
55 : public content::WebUIController {
56 public: 55 public:
57 explicit ConstrainedWebDialogUI(content::WebUI* web_ui); 56 explicit ConstrainedWebDialogUI(content::WebUI* web_ui);
58 virtual ~ConstrainedWebDialogUI(); 57 virtual ~ConstrainedWebDialogUI();
59 58
60 // WebUIController implementation: 59 // WebUIController implementation:
61 virtual void RenderViewCreated( 60 virtual void RenderViewCreated(
62 content::RenderViewHost* render_view_host) OVERRIDE; 61 content::RenderViewHost* render_view_host) OVERRIDE;
63 62
64 // Sets the delegate on the WebContents. 63 // Sets the delegate on the WebContents.
65 static void SetConstrainedDelegate(content::WebContents* web_contents, 64 static void SetConstrainedDelegate(content::WebContents* web_contents,
(...skipping 22 matching lines...) Expand all
88 // use the default one. The dialog takes ownership of 87 // use the default one. The dialog takes ownership of
89 // |tab_delegate|. 88 // |tab_delegate|.
90 // |overshadowed| is the tab being overshadowed by the dialog. 89 // |overshadowed| is the tab being overshadowed by the dialog.
91 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( 90 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog(
92 content::BrowserContext* browser_context, 91 content::BrowserContext* browser_context,
93 ui::WebDialogDelegate* delegate, 92 ui::WebDialogDelegate* delegate,
94 ui::WebDialogWebContentsDelegate* tab_delegate, 93 ui::WebDialogWebContentsDelegate* tab_delegate,
95 content::WebContents* overshadowed); 94 content::WebContents* overshadowed);
96 95
97 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ 96 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tab_modal_confirm_dialog_views.cc ('k') | ui/views/window/dialog_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698