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

Side by Side Diff: chrome/browser/ui/views/content_setting_bubble_contents.h

Issue 1570153003: Use MacViews for ContentSettingBubbles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698