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

Side by Side Diff: chrome/browser/ui/views/certificate_viewer_win.cc

Issue 184903003: Window ownership -> WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/select_file_dialog_impl_kde.cc ('k') | chrome/browser/ui/views/desktop_media_picker_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698