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

Side by Side 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: merge Created 3 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/page_info/page_info_bubble_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // PermissionSelectorRowObserver implementation. 110 // PermissionSelectorRowObserver implementation.
111 void OnPermissionChanged( 111 void OnPermissionChanged(
112 const PageInfoUI::PermissionInfo& permission) override; 112 const PageInfoUI::PermissionInfo& permission) override;
113 113
114 // ChosenObjectRowObserver implementation. 114 // ChosenObjectRowObserver implementation.
115 void OnChosenObjectDeleted(const PageInfoUI::ChosenObjectInfo& info) override; 115 void OnChosenObjectDeleted(const PageInfoUI::ChosenObjectInfo& info) override;
116 116
117 // views::BubbleDialogDelegateView implementation. 117 // views::BubbleDialogDelegateView implementation.
118 base::string16 GetWindowTitle() const override; 118 base::string16 GetWindowTitle() const override;
119 void AddedToWidget() override;
119 bool ShouldShowCloseButton() const override; 120 bool ShouldShowCloseButton() const override;
120 void OnWidgetDestroying(views::Widget* widget) override; 121 void OnWidgetDestroying(views::Widget* widget) override;
121 int GetDialogButtons() const override; 122 int GetDialogButtons() const override;
122 const gfx::FontList& GetTitleFontList() const override;
123 123
124 // views::ButtonListener implementation. 124 // views::ButtonListener implementation.
125 void ButtonPressed(views::Button* button, const ui::Event& event) override; 125 void ButtonPressed(views::Button* button, const ui::Event& event) override;
126 126
127 // views::LinkListener implementation. 127 // views::LinkListener implementation.
128 void LinkClicked(views::Link* source, int event_flags) override; 128 void LinkClicked(views::Link* source, int event_flags) override;
129 129
130 // views::StyledLabelListener implementation. 130 // views::StyledLabelListener implementation.
131 void StyledLabelLinkClicked(views::StyledLabel* label, 131 void StyledLabelLinkClicked(views::StyledLabel* label,
132 const gfx::Range& range, 132 const gfx::Range& range,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // permissions section, and keep those views updated when the underlying 180 // permissions section, and keep those views updated when the underlying
181 // |Permission| changes. 181 // |Permission| changes.
182 std::vector<std::unique_ptr<PermissionSelectorRow>> selector_rows_; 182 std::vector<std::unique_ptr<PermissionSelectorRow>> selector_rows_;
183 183
184 base::WeakPtrFactory<PageInfoBubbleView> weak_factory_; 184 base::WeakPtrFactory<PageInfoBubbleView> weak_factory_;
185 185
186 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView); 186 DISALLOW_COPY_AND_ASSIGN(PageInfoBubbleView);
187 }; 187 };
188 188
189 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_ 189 #endif // CHROME_BROWSER_UI_VIEWS_PAGE_INFO_PAGE_INFO_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/page_info/page_info_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698