OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CONTENT_SETTING_BUBBLE_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 views::View* anchor_view, | 53 views::View* anchor_view, |
54 views::BubbleBorder::Arrow arrow); | 54 views::BubbleBorder::Arrow arrow); |
55 ~ContentSettingBubbleContents() override; | 55 ~ContentSettingBubbleContents() override; |
56 | 56 |
57 gfx::Size GetPreferredSize() const override; | 57 gfx::Size GetPreferredSize() const override; |
58 | 58 |
59 // Callback to allow ContentSettingMediaMenuModel to update the menu label. | 59 // Callback to allow ContentSettingMediaMenuModel to update the menu label. |
60 void UpdateMenuLabel(content::MediaStreamType type, | 60 void UpdateMenuLabel(content::MediaStreamType type, |
61 const std::string& label); | 61 const std::string& label); |
62 | 62 |
63 // Temporary hack for MacViews. Do not use this. | |
tapted
2016/01/11 02:50:58
I think if you declare ContentSettingBubbleBridge
| |
64 void SetExplicitAnchorRect(const gfx::Rect& rect); | |
65 | |
63 protected: | 66 protected: |
64 // views::BubbleDelegateView: | 67 // views::BubbleDelegateView: |
65 void Init() override; | 68 void Init() override; |
66 | 69 |
67 private: | 70 private: |
68 class Favicon; | 71 class Favicon; |
69 struct MediaMenuParts; | 72 struct MediaMenuParts; |
70 | 73 |
71 typedef std::map<views::Link*, int> ListItemLinks; | 74 typedef std::map<views::Link*, int> ListItemLinks; |
72 typedef std::map<views::MenuButton*, MediaMenuParts*> MediaMenuPartsMap; | 75 typedef std::map<views::MenuButton*, MediaMenuParts*> MediaMenuPartsMap; |
(...skipping 28 matching lines...) Expand all Loading... | |
101 views::Link* manage_link_; | 104 views::Link* manage_link_; |
102 views::Link* learn_more_link_; | 105 views::Link* learn_more_link_; |
103 views::LabelButton* close_button_; | 106 views::LabelButton* close_button_; |
104 scoped_ptr<views::MenuRunner> menu_runner_; | 107 scoped_ptr<views::MenuRunner> menu_runner_; |
105 MediaMenuPartsMap media_menus_; | 108 MediaMenuPartsMap media_menus_; |
106 | 109 |
107 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents); | 110 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents); |
108 }; | 111 }; |
109 | 112 |
110 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ | 113 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ |
OLD | NEW |