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

Unified Diff: chrome/browser/views/page_info_bubble_view.h

Issue 3136027: First pass at convert the SSL dialogs into InfoBubbles.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/frame/browser_view.cc ('k') | chrome/browser/views/page_info_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/page_info_bubble_view.h
===================================================================
--- chrome/browser/views/page_info_bubble_view.h (revision 0)
+++ chrome/browser/views/page_info_bubble_view.h (revision 0)
@@ -0,0 +1,58 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_
+#define CHROME_BROWSER_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_
+#pragma once
+
+#include "chrome/browser/page_info_model.h"
+#include "chrome/browser/views/info_bubble.h"
+#include "views/view.h"
+
+namespace views {
+class Label;
+}
+
+class PageInfoBubbleView : public views::View,
+ public PageInfoModel::PageInfoModelObserver,
+ public InfoBubbleDelegate {
+ public:
+ PageInfoBubbleView(Profile* profile,
+ const GURL& url,
+ const NavigationEntry::SSLStatus& ssl,
+ bool show_history);
+ virtual ~PageInfoBubbleView();
+
+
+ void set_info_bubble(InfoBubble* info_bubble) { info_bubble_ = info_bubble; }
+
+ // View methods:
+ virtual gfx::Size GetPreferredSize();
+
+ // PageInfoModel::PageInfoModelObserver methods:
+ virtual void ModelChanged();
+
+ // InfoBubbleDelegate methods:
+ virtual void InfoBubbleClosing(InfoBubble* info_bubble,
+ bool closed_by_escape) {}
+ virtual bool CloseOnEscape() { return true; }
+ virtual bool FadeInOnShow() { return false; }
+ virtual std::wstring accessible_name() { return L"PageInfoBubble"; }
+
+ private:
+ // Layout the sections within the bubble.
+ void LayoutSections();
+
+ // The model providing the various section info.
+ PageInfoModel model_;
+
+ // The id of the certificate for this page.
+ int cert_id_;
+
+ InfoBubble* info_bubble_;
+
+ DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView);
+};
+
+#endif // CHROME_BROWSER_VIEWS_PAGE_INFO_BUBBLE_VIEW_H_
Property changes on: chrome\browser\views\page_info_bubble_view.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/views/frame/browser_view.cc ('k') | chrome/browser/views/page_info_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698