OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "chrome/browser/chromeos/hats/hats_dialog.h" | 5 #include "chrome/browser/chromeos/hats/hats_dialog.h" |
6 | 6 |
7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
10 #include "chrome/browser/ui/browser_dialogs.h" | 10 #include "chrome/browser/ui/browser_dialogs.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 ui::ModalType HatsDialog::GetDialogModalType() const { | 40 ui::ModalType HatsDialog::GetDialogModalType() const { |
41 return ui::MODAL_TYPE_SYSTEM; | 41 return ui::MODAL_TYPE_SYSTEM; |
42 } | 42 } |
43 | 43 |
44 base::string16 HatsDialog::GetDialogTitle() const { | 44 base::string16 HatsDialog::GetDialogTitle() const { |
45 return base::string16(); | 45 return base::string16(); |
46 } | 46 } |
47 | 47 |
48 GURL HatsDialog::GetDialogContentURL() const { | 48 GURL HatsDialog::GetDialogContentURL() const { |
49 // TODO(malaykeshav): Return a valid GURL. | 49 return GURL(chrome::kChromeUIHatsURL); |
50 return GURL(); | |
51 } | 50 } |
52 | 51 |
53 void HatsDialog::GetWebUIMessageHandlers( | 52 void HatsDialog::GetWebUIMessageHandlers( |
54 std::vector<WebUIMessageHandler*>* handlers) const {} | 53 std::vector<WebUIMessageHandler*>* handlers) const {} |
55 | 54 |
56 void HatsDialog::GetDialogSize(gfx::Size* size) const { | 55 void HatsDialog::GetDialogSize(gfx::Size* size) const { |
57 size->SetSize(kDefaultWidth, kDefaultHeight); | 56 size->SetSize(kDefaultWidth, kDefaultHeight); |
58 } | 57 } |
59 | 58 |
60 bool HatsDialog::CanResizeDialog() const { | 59 bool HatsDialog::CanResizeDialog() const { |
(...skipping 15 matching lines...) Expand all Loading... |
76 bool HatsDialog::ShouldShowDialogTitle() const { | 75 bool HatsDialog::ShouldShowDialogTitle() const { |
77 return false; | 76 return false; |
78 } | 77 } |
79 | 78 |
80 bool HatsDialog::HandleContextMenu(const content::ContextMenuParams& params) { | 79 bool HatsDialog::HandleContextMenu(const content::ContextMenuParams& params) { |
81 // Disable context menu. | 80 // Disable context menu. |
82 return true; | 81 return true; |
83 } | 82 } |
84 | 83 |
85 } // namespace chromeos | 84 } // namespace chromeos |
OLD | NEW |