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

Unified Diff: chrome/browser/ui/webui/certificate_viewer_webui.cc

Issue 8461015: UI polish for certificate viewer. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Nit Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/dialog_style.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/certificate_viewer_webui.cc
diff --git a/chrome/browser/ui/webui/certificate_viewer_webui.cc b/chrome/browser/ui/webui/certificate_viewer_webui.cc
index 61cfbbcc30c031d168188df5d2b763d6e4a447d9..c4190daf7243a22e8d813e861ba2a131e1790e6b 100644
--- a/chrome/browser/ui/webui/certificate_viewer_webui.cc
+++ b/chrome/browser/ui/webui/certificate_viewer_webui.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/certificate_dialogs.h"
+#include "chrome/browser/ui/dialog_style.h"
#include "chrome/browser/ui/webui/chrome_web_ui.h"
#include "chrome/common/net/x509_certificate_model.h"
#include "chrome/common/url_constants.h"
@@ -83,10 +84,15 @@ void CertificateViewerDialog::Show(gfx::NativeWindow parent) {
#if defined(USE_AURA)
TabContentsWrapper* current_wrapper =
browser->GetSelectedTabContentsWrapper();
+ // TODO(bshe): UI tweaks needed for AURA html Dialog, such as add padding on
+ // title for AURA ConstrainedHtmlDialog.
window_ = ConstrainedHtmlUI::CreateConstrainedHtmlDialog(
current_wrapper->profile(),
this,
current_wrapper)->window()->GetNativeWindow();
+#elif defined(OS_CHROMEOS)
+ window_ = browser->BrowserShowHtmlDialog(this, parent,
+ static_cast<DialogStyle>(STYLE_XBAR | STYLE_FLUSH_CONTENT));
#else
window_ = browser->BrowserShowHtmlDialog(this, parent, STYLE_GENERIC);
#endif
« no previous file with comments | « chrome/browser/ui/dialog_style.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698