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

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

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 : public content::WebUIController { 54 class ConstrainedWebDialogUI : public content::WebUIController {
55 public: 55 public:
56 explicit ConstrainedWebDialogUI(content::WebUI* web_ui); 56 explicit ConstrainedWebDialogUI(content::WebUI* web_ui);
57 virtual ~ConstrainedWebDialogUI(); 57 ~ConstrainedWebDialogUI() override;
58 58
59 // WebUIController implementation: 59 // WebUIController implementation:
60 virtual void RenderViewCreated( 60 void RenderViewCreated(content::RenderViewHost* render_view_host) override;
61 content::RenderViewHost* render_view_host) override;
62 61
63 // Sets the delegate on the WebContents. 62 // Sets the delegate on the WebContents.
64 static void SetConstrainedDelegate(content::WebContents* web_contents, 63 static void SetConstrainedDelegate(content::WebContents* web_contents,
65 ConstrainedWebDialogDelegate* delegate); 64 ConstrainedWebDialogDelegate* delegate);
66 65
67 protected: 66 protected:
68 // Returns the ConstrainedWebDialogDelegate saved with the WebContents. 67 // Returns the ConstrainedWebDialogDelegate saved with the WebContents.
69 // Returns NULL if no such delegate is set. 68 // Returns NULL if no such delegate is set.
70 ConstrainedWebDialogDelegate* GetConstrainedDelegate(); 69 ConstrainedWebDialogDelegate* GetConstrainedDelegate();
71 70
(...skipping 10 matching lines...) Expand all
82 // |browser_context| is used to construct the constrained HTML dialog's 81 // |browser_context| is used to construct the constrained HTML dialog's
83 // WebContents. 82 // WebContents.
84 // |delegate| controls the behavior of the dialog. 83 // |delegate| controls the behavior of the dialog.
85 // |overshadowed| is the tab being overshadowed by the dialog. 84 // |overshadowed| is the tab being overshadowed by the dialog.
86 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( 85 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog(
87 content::BrowserContext* browser_context, 86 content::BrowserContext* browser_context,
88 ui::WebDialogDelegate* delegate, 87 ui::WebDialogDelegate* delegate,
89 content::WebContents* overshadowed); 88 content::WebContents* overshadowed);
90 89
91 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_ 90 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698