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

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. 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 // Manages MD Feedback dialog creation, destruction, and showing a constrained
12 // web dialog with the feedback contents. This controller is implemented as a
13 // singleton.
14 class MdFeedbackDialogController {
15 public:
16 static MdFeedbackDialogController* GetInstance();
17
18 // Show the feedback dialog. This WebUI dialog is not anchored to the browser
19 // window but tied to a profile.
20 void Show(content::BrowserContext* browser_context);
21
22 private:
23 friend struct base::DefaultSingletonTraits<MdFeedbackDialogController>;
24
25 MdFeedbackDialogController();
26 ~MdFeedbackDialogController() = default;
27
28 DISALLOW_COPY_AND_ASSIGN(MdFeedbackDialogController);
29 };
30
31 #endif // CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_DIALOG_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698