| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/net/network_portal_web_dialog.h" | 5 #include "chrome/browser/chromeos/net/network_portal_web_dialog.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "chrome/grit/generated_resources.h" | 8 #include "chrome/grit/generated_resources.h" |
| 9 #include "components/captive_portal/captive_portal_detector.h" | 9 #include "components/captive_portal/captive_portal_detector.h" |
| 10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
| 11 #include "ui/base/ui_base_types.h" | 11 #include "ui/base/ui_base_types.h" |
| 12 #include "ui/gfx/display.h" | 12 #include "ui/gfx/display.h" |
| 13 #include "ui/gfx/size.h" | 13 #include "ui/gfx/geometry/size.h" |
| 14 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
| 15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 const float kNetworkPortalWebDialogWidthFraction = .8; | 19 const float kNetworkPortalWebDialogWidthFraction = .8; |
| 20 const float kNetworkPortalWebDialogHeightFraction = .8; | 20 const float kNetworkPortalWebDialogHeightFraction = .8; |
| 21 | 21 |
| 22 gfx::Size GetPortalDialogSize() { | 22 gfx::Size GetPortalDialogSize() { |
| 23 const gfx::Display display = ash::Shell::GetScreen()->GetPrimaryDisplay(); | 23 const gfx::Display display = ash::Shell::GetScreen()->GetPrimaryDisplay(); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 bool* out_close_dialog) { | 96 bool* out_close_dialog) { |
| 97 if (out_close_dialog) | 97 if (out_close_dialog) |
| 98 *out_close_dialog = true; | 98 *out_close_dialog = true; |
| 99 } | 99 } |
| 100 | 100 |
| 101 bool NetworkPortalWebDialog::ShouldShowDialogTitle() const { | 101 bool NetworkPortalWebDialog::ShouldShowDialogTitle() const { |
| 102 return true; | 102 return true; |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace chromeos | 105 } // namespace chromeos |
| OLD | NEW |