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

Side by Side Diff: chrome/browser/ui/webui/md_feedback/md_feedback_dialog_controller.h

Issue 2159323003: [MD Feedback] Add placeholder feedback entry point. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per afakhry@'s comments. Rebase. Created 4 years, 4 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
(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_
OLDNEW
« no previous file with comments | « chrome/browser/feedback/show_feedback_page.cc ('k') | chrome/browser/ui/webui/md_feedback/md_feedback_dialog_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698