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

Unified 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. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/md_feedback/md_feedback_dialog_controller.h
diff --git a/chrome/browser/ui/webui/md_feedback/md_feedback_dialog_controller.h b/chrome/browser/ui/webui/md_feedback/md_feedback_dialog_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..1251ba976370cb56c66c02eb5bb56e0170c5ab6f
--- /dev/null
+++ b/chrome/browser/ui/webui/md_feedback/md_feedback_dialog_controller.h
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_DIALOG_CONTROLLER_H_
+#define CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_DIALOG_CONTROLLER_H_
+
+#include "base/memory/singleton.h"
+#include "content/public/browser/browser_context.h"
+
+// Manages MD Feedback dialog creation, destruction, and showing a constrained
+// web dialog with the feedback contents. This controller is implemented as a
+// singleton.
+class MdFeedbackDialogController {
+ public:
+ static MdFeedbackDialogController* GetInstance();
+
+ // Show the feedback dialog. This WebUI dialog is not anchored to the browser
+ // window but tied to a profile.
+ void Show(content::BrowserContext* browser_context);
+
+ private:
+ friend struct base::DefaultSingletonTraits<MdFeedbackDialogController>;
+
+ MdFeedbackDialogController();
+ ~MdFeedbackDialogController() = default;
+
+ DISALLOW_COPY_AND_ASSIGN(MdFeedbackDialogController);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_DIALOG_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698