OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |