Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_DIALOG_CONTROLLER_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_DIALOG_CONTROLLER_H_ | |
| 7 | |
| 8 #include "base/memory/singleton.h" | |
| 9 #include "content/public/browser/browser_context.h" | |
| 10 | |
| 11 // This class manages MD Feedback dialog creation, destruction, and showing a | |
|
afakhry
2016/08/09 23:36:31
Nit: you can just say "Manages ...". :)
apacible
2016/08/10 00:11:23
Done.
| |
| 12 // constrained web dialog with the feedback contents. This controller is | |
| 13 // implemented as a singleton. | |
| 14 class MdFeedbackDialogController { | |
| 15 public: | |
| 16 // Return the singleton instance of MdFeedbackDialogController. | |
|
afakhry
2016/08/09 23:36:31
Nit: you can safely remove this comment. It's unde
apacible
2016/08/10 00:11:23
Done.
| |
| 17 static MdFeedbackDialogController* GetInstance(); | |
| 18 | |
| 19 // Show the feedback dialog. This WebUI dialog is not anchored to the browser | |
| 20 // window but tied to a profile. | |
| 21 void Show(content::BrowserContext* browser_context); | |
| 22 | |
| 23 private: | |
| 24 friend struct base::DefaultSingletonTraits<MdFeedbackDialogController>; | |
| 25 | |
| 26 MdFeedbackDialogController(); | |
| 27 ~MdFeedbackDialogController() = default; | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(MdFeedbackDialogController); | |
| 30 }; | |
| 31 | |
| 32 #endif // CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_DIALOG_CONTROLLER_H_ | |
| OLD | NEW |