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

Side by Side Diff: chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h

Issue 151593005: Implement permission bubble view for Cocoa. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed variable name Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
(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 customization_mode) OVERRIDE;
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);
groby-ooo-7-16 2014/02/11 20:10:06 nit: #include "base/macros.h"
leng 2014/02/11 22:45:48 Done.
42 };
43
44 #endif // CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698