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

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

Issue 1092033006: [Mac/Cleanup] Trim down Foundation.h and ApplicationServices.h includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include -> import 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>
9
8 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
9 #include "base/mac/scoped_nsobject.h" 11 #include "base/mac/scoped_nsobject.h"
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
12 #include "chrome/browser/ui/cocoa/info_bubble_view.h" 14 #include "chrome/browser/ui/cocoa/info_bubble_view.h"
13 #include "chrome/browser/ui/website_settings/permission_bubble_view.h" 15 #include "chrome/browser/ui/website_settings/permission_bubble_view.h"
14 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
15 17
16 #ifdef __OBJC__
17 @class PermissionBubbleController; 18 @class PermissionBubbleController;
18 #else
19 class PermissionBubbleController;
20 #endif
21 19
22 class PermissionBubbleCocoa : public PermissionBubbleView { 20 class PermissionBubbleCocoa : public PermissionBubbleView {
23 public: 21 public:
24 explicit PermissionBubbleCocoa(NSWindow* parent_window); 22 explicit PermissionBubbleCocoa(NSWindow* parent_window);
25 ~PermissionBubbleCocoa() override; 23 ~PermissionBubbleCocoa() override;
26 24
27 // PermissionBubbleView interface. 25 // PermissionBubbleView interface.
28 void Show(const std::vector<PermissionBubbleRequest*>& requests, 26 void Show(const std::vector<PermissionBubbleRequest*>& requests,
29 const std::vector<bool>& accept_state) override; 27 const std::vector<bool>& accept_state) override;
30 void Hide() override; 28 void Hide() override;
(...skipping 29 matching lines...) Expand all
60 Delegate* delegate_; // Weak. 58 Delegate* delegate_; // Weak.
61 59
62 // Cocoa-side UI controller for the bubble. Weak, as it will close itself. 60 // Cocoa-side UI controller for the bubble. Weak, as it will close itself.
63 PermissionBubbleController* bubbleController_; 61 PermissionBubbleController* bubbleController_;
64 virtual bool HasLocationBar(); 62 virtual bool HasLocationBar();
65 63
66 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleCocoa); 64 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleCocoa);
67 }; 65 };
68 66
69 #endif // CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ 67 #endif // CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/extensions/extension_view_mac.h ('k') | components/webp_transcode/webp_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698