OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
tapted
2016/01/11 02:50:57
nit: no `(c)`, more in other files.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
tapted
2016/01/11 02:50:57
#include guards?
also stuff under c/b/ui/cocoa do
| |
5 #include "ui/gfx/geometry/point.h" | |
6 #include "ui/views/widget/widget.h" | |
7 | |
8 class ContentSettingBubbleModel; | |
9 namespace content { | |
10 class WebContents; | |
11 } | |
12 | |
13 // This class bridges a views ContentSettingBubbleContents so it can be used by | |
14 // the Cocoa location bar code. | |
15 class ContentSettingBubbleBridge { | |
16 public: | |
17 ContentSettingBubbleBridge(ContentSettingBubbleModel* model, | |
tapted
2016/01/11 02:50:57
I think this can just be a standalone function tha
| |
18 content::WebContents* web_contents, | |
19 const gfx::Point& anchor); | |
20 ~ContentSettingBubbleBridge(); | |
21 | |
22 void Show(); | |
23 private: | |
tapted
2016/01/11 02:50:57
nit: blank line before
| |
24 views::Widget* bubble_widget_; | |
25 }; | |
tapted
2016/01/11 02:50:57
nit: DISALLOW_COPY_AND_ASSIGN(..)
| |
OLD | NEW |