OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ | |
6 #define CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ | |
7 | |
8 #include "base/mac/scoped_nsobject.h" | |
9 #include "base/memory/weak_ptr.h" | |
10 #include "chrome/browser/ui/website_settings/permission_bubble_view.h" | |
11 #include "content/public/browser/web_contents.h" | |
12 | |
13 #ifdef __OBJC__ | |
14 @class PermissionBubbleController; | |
15 #else | |
16 class PermissionBubbleController; | |
17 #endif | |
18 | |
19 class PermissionBubbleCocoa : public PermissionBubbleView { | |
20 public: | |
21 explicit PermissionBubbleCocoa(NSWindow* parent_window); | |
22 virtual ~PermissionBubbleCocoa(); | |
23 | |
24 // PermissionBubbleView interface. | |
25 virtual void Show(const std::vector<PermissionBubbleDelegate*>& delegates, | |
26 const std::vector<bool>& accept_state, | |
27 bool custommization_mode) OVERRIDE; | |
groby-ooo-7-16
2014/01/31 22:31:51
nit: probably one 'm' too many :)
leng
2014/02/03 22:38:04
Done.
| |
28 virtual void Hide() OVERRIDE; | |
29 virtual void SetDelegate(Delegate* delegate) OVERRIDE; | |
30 | |
31 // Called when |bubbleController_| is closing. | |
32 void OnBubbleClosing(); | |
33 | |
34 private: | |
35 NSWindow* parent_window_; // Weak. | |
36 Delegate* delegate_; // Weak. | |
37 | |
38 // Cocoa-side UI controller for the bubble. Weak, as it will close itself. | |
39 PermissionBubbleController* bubbleController_; | |
40 | |
41 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleCocoa); | |
42 }; | |
43 | |
44 #endif // CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ | |
OLD | NEW |