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

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

Issue 2907983002: Allow dialogs to use a custom View as their title. (Closed)
Patch Set: comments 3 Created 3 years, 6 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
Index: chrome/browser/ui/views/page_info/page_info_bubble_view.h
diff --git a/chrome/browser/ui/views/page_info/page_info_bubble_view.h b/chrome/browser/ui/views/page_info/page_info_bubble_view.h
index 41002b1faf7924ea1029121d22571dc9c8946fb5..682342abc51926f57cdd2c086903c3cedd90a112 100644
--- a/chrome/browser/ui/views/page_info/page_info_bubble_view.h
+++ b/chrome/browser/ui/views/page_info/page_info_bubble_view.h
@@ -116,10 +116,10 @@ class PageInfoBubbleView : public content::WebContentsObserver,
// views::BubbleDialogDelegateView implementation.
base::string16 GetWindowTitle() const override;
+ void AddedToWidget() override;
bool ShouldShowCloseButton() const override;
void OnWidgetDestroying(views::Widget* widget) override;
int GetDialogButtons() const override;
- const gfx::FontList& GetTitleFontList() const override;
// views::ButtonListener implementation.
void ButtonPressed(views::Button* button, const ui::Event& event) override;
@@ -158,6 +158,9 @@ class PageInfoBubbleView : public content::WebContentsObserver,
// The header section (containing security-related information).
BubbleHeaderView* header_;
+ // Used by BubbleFrameView as the dialog title.
+ views::Label* title_;
+
// The security summary for the current page.
base::string16 summary_text_;

Powered by Google App Engine
This is Rietveld 408576698