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

Side by Side Diff: chrome/browser/chromeos/net/network_portal_web_dialog.cc

Issue 832953002: Cleanup: Update the path to gfx size headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_view.cc ('k') | chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698