| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |