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

Side by Side Diff: chrome/browser/chromeos/hats/hats_dialog.h

Issue 2452283003: chromeos: Make network enrollment and SIM unlock dialogs work with mash (Closed)
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « chrome/browser/chromeos/enrollment_dialog_view.cc ('k') | chrome/browser/chromeos/net/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 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 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_CHROMEOS_HATS_HATS_DIALOG_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_HATS_HATS_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_HATS_HATS_DIALOG_H_ 6 #define CHROME_BROWSER_CHROMEOS_HATS_HATS_DIALOG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 10 #include "base/macros.h"
12 #include "base/values.h"
13 #include "ui/gfx/native_widget_types.h"
14 #include "ui/web_dialogs/web_dialog_delegate.h" 11 #include "ui/web_dialogs/web_dialog_delegate.h"
15 12
16 namespace chromeos { 13 namespace chromeos {
17 14
15 // Happiness tracking survey dialog. Sometimes appears after login to ask the
16 // user how satisfied they are with their Chromebook.
18 class HatsDialog : public ui::WebDialogDelegate { 17 class HatsDialog : public ui::WebDialogDelegate {
19 public: 18 public:
20 HatsDialog(); 19 HatsDialog();
21 ~HatsDialog() override; 20 ~HatsDialog() override;
22 21
23 // Creates an instance of HatsDialog and posts a task to load all the relevant 22 // Creates an instance of HatsDialog and posts a task to load all the relevant
24 // device info before displaying the dialog. 23 // device info before displaying the dialog.
25 static void CreateAndShow(bool is_google_account); 24 static void CreateAndShow(bool is_google_account);
26 25
27 private: 26 private:
(...skipping 18 matching lines...) Expand all
46 bool HandleContextMenu(const content::ContextMenuParams& params) override; 45 bool HandleContextMenu(const content::ContextMenuParams& params) override;
47 46
48 std::string html_data_; 47 std::string html_data_;
49 48
50 DISALLOW_COPY_AND_ASSIGN(HatsDialog); 49 DISALLOW_COPY_AND_ASSIGN(HatsDialog);
51 }; 50 };
52 51
53 } // namespace chromeos 52 } // namespace chromeos
54 53
55 #endif // CHROME_BROWSER_CHROMEOS_HATS_HATS_DIALOG_H_ 54 #endif // CHROME_BROWSER_CHROMEOS_HATS_HATS_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/enrollment_dialog_view.cc ('k') | chrome/browser/chromeos/net/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698