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

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

Issue 1140223003: [PermissionBubble] identical ctor across platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permbubble
Patch Set: Fixed nullptr/NULL/nil issues Created 5 years, 7 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 2014 The Chromium Authors. All rights reserved. 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 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_COCOA_PERMISSION_BUBBLE_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/mac/scoped_nsobject.h" 11 #include "base/mac/scoped_nsobject.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "chrome/browser/ui/cocoa/info_bubble_view.h" 14 #include "chrome/browser/ui/cocoa/info_bubble_view.h"
15 #include "chrome/browser/ui/website_settings/permission_bubble_view.h" 15 #include "chrome/browser/ui/website_settings/permission_bubble_view.h"
16 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
17 17
18 class Browser;
18 @class PermissionBubbleController; 19 @class PermissionBubbleController;
19 20
20 class PermissionBubbleCocoa : public PermissionBubbleView { 21 class PermissionBubbleCocoa : public PermissionBubbleView {
21 public: 22 public:
22 explicit PermissionBubbleCocoa(NSWindow* parent_window); 23 explicit PermissionBubbleCocoa(Browser* browser);
23 ~PermissionBubbleCocoa() override; 24 ~PermissionBubbleCocoa() override;
24 25
25 // PermissionBubbleView interface. 26 // PermissionBubbleView interface.
26 void Show(const std::vector<PermissionBubbleRequest*>& requests, 27 void Show(const std::vector<PermissionBubbleRequest*>& requests,
27 const std::vector<bool>& accept_state) override; 28 const std::vector<bool>& accept_state) override;
28 void Hide() override; 29 void Hide() override;
29 bool IsVisible() override; 30 bool IsVisible() override;
30 void SetDelegate(Delegate* delegate) override; 31 void SetDelegate(Delegate* delegate) override;
31 bool CanAcceptRequestUpdate() override; 32 bool CanAcceptRequestUpdate() override;
32 33
(...skipping 25 matching lines...) Expand all
58 Delegate* delegate_; // Weak. 59 Delegate* delegate_; // Weak.
59 60
60 // Cocoa-side UI controller for the bubble. Weak, as it will close itself. 61 // Cocoa-side UI controller for the bubble. Weak, as it will close itself.
61 PermissionBubbleController* bubbleController_; 62 PermissionBubbleController* bubbleController_;
62 virtual bool HasLocationBar(); 63 virtual bool HasLocationBar();
63 64
64 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleCocoa); 65 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleCocoa);
65 }; 66 };
66 67
67 #endif // CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ 68 #endif // CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698