OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/certificate_viewer.h" | 5 #include "chrome/browser/certificate_viewer.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <cryptuiapi.h> | 8 #include <cryptuiapi.h> |
9 #pragma comment(lib, "cryptui.lib") | 9 #pragma comment(lib, "cryptui.lib") |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } // namespace | 56 } // namespace |
57 | 57 |
58 #if defined(USE_AURA) | 58 #if defined(USE_AURA) |
59 void ShowCertificateViewer(content::WebContents* web_contents, | 59 void ShowCertificateViewer(content::WebContents* web_contents, |
60 gfx::NativeWindow parent, | 60 gfx::NativeWindow parent, |
61 net::X509Certificate* cert) { | 61 net::X509Certificate* cert) { |
62 if (chrome::GetHostDesktopTypeForNativeWindow(parent) != | 62 if (chrome::GetHostDesktopTypeForNativeWindow(parent) != |
63 chrome::HOST_DESKTOP_TYPE_ASH) { | 63 chrome::HOST_DESKTOP_TYPE_ASH) { |
64 ShowCertificateViewerImpl( | 64 ShowCertificateViewerImpl( |
65 web_contents, | 65 web_contents, |
66 parent->GetDispatcher()->host()->GetAcceleratedWidget(), cert); | 66 parent->GetHost()->GetAcceleratedWidget(), cert); |
67 } else { | 67 } else { |
68 NOTIMPLEMENTED(); | 68 NOTIMPLEMENTED(); |
69 } | 69 } |
70 } | 70 } |
71 #else | 71 #else |
72 void ShowCertificateViewer(content::WebContents* web_contents, | 72 void ShowCertificateViewer(content::WebContents* web_contents, |
73 gfx::NativeWindow parent, | 73 gfx::NativeWindow parent, |
74 net::X509Certificate* cert) { | 74 net::X509Certificate* cert) { |
75 ShowCertificateViewerImpl(web_contents, parent, cert); | 75 ShowCertificateViewerImpl(web_contents, parent, cert); |
76 } | 76 } |
77 #endif | 77 #endif |
OLD | NEW |