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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 public views::ButtonListener, | 44 public views::ButtonListener, |
45 public views::LinkListener, | 45 public views::LinkListener, |
46 public views::MenuButtonListener { | 46 public views::MenuButtonListener { |
47 public: | 47 public: |
48 ContentSettingBubbleContents( | 48 ContentSettingBubbleContents( |
49 ContentSettingBubbleModel* content_setting_bubble_model, | 49 ContentSettingBubbleModel* content_setting_bubble_model, |
50 views::View* anchor_view, | 50 views::View* anchor_view, |
51 views::BubbleBorder::Arrow arrow); | 51 views::BubbleBorder::Arrow arrow); |
52 virtual ~ContentSettingBubbleContents(); | 52 virtual ~ContentSettingBubbleContents(); |
53 | 53 |
54 virtual gfx::Size GetPreferredSize() OVERRIDE; | 54 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
55 | 55 |
56 // Callback to allow ContentSettingMediaMenuModel to update the menu label. | 56 // Callback to allow ContentSettingMediaMenuModel to update the menu label. |
57 void UpdateMenuLabel(content::MediaStreamType type, | 57 void UpdateMenuLabel(content::MediaStreamType type, |
58 const std::string& label); | 58 const std::string& label); |
59 | 59 |
60 protected: | 60 protected: |
61 // views::BubbleDelegateView: | 61 // views::BubbleDelegateView: |
62 virtual void Init() OVERRIDE; | 62 virtual void Init() OVERRIDE; |
63 | 63 |
64 private: | 64 private: |
(...skipping 29 matching lines...) Expand all Loading... |
94 views::Link* custom_link_; | 94 views::Link* custom_link_; |
95 views::Link* manage_link_; | 95 views::Link* manage_link_; |
96 views::LabelButton* close_button_; | 96 views::LabelButton* close_button_; |
97 scoped_ptr<views::MenuRunner> menu_runner_; | 97 scoped_ptr<views::MenuRunner> menu_runner_; |
98 MediaMenuPartsMap media_menus_; | 98 MediaMenuPartsMap media_menus_; |
99 | 99 |
100 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents); | 100 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents); |
101 }; | 101 }; |
102 | 102 |
103 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ | 103 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ |
OLD | NEW |