Chromium Code Reviews| Index: chrome/browser/ui/cocoa/permission_bubble_cocoa.h |
| diff --git a/chrome/browser/ui/cocoa/permission_bubble_cocoa.h b/chrome/browser/ui/cocoa/permission_bubble_cocoa.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..09d1029177de365f212022ee60e44670dff8187a |
| --- /dev/null |
| +++ b/chrome/browser/ui/cocoa/permission_bubble_cocoa.h |
| @@ -0,0 +1,44 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ |
| +#define CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ |
| + |
| +#include "base/mac/scoped_nsobject.h" |
| +#include "base/memory/weak_ptr.h" |
| +#include "chrome/browser/ui/website_settings/permission_bubble_view.h" |
| +#include "content/public/browser/web_contents.h" |
| + |
| +#ifdef __OBJC__ |
| +@class PermissionBubbleController; |
| +#else |
| +class PermissionBubbleController; |
| +#endif |
| + |
| +class PermissionBubbleCocoa : public PermissionBubbleView { |
| + public: |
| + explicit PermissionBubbleCocoa(NSWindow* parent_window); |
| + virtual ~PermissionBubbleCocoa(); |
| + |
| + // PermissionBubbleView interface. |
| + virtual void Show(const std::vector<PermissionBubbleDelegate*>& delegates, |
| + const std::vector<bool>& accept_state, |
| + 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.
|
| + virtual void Hide() OVERRIDE; |
| + virtual void SetDelegate(Delegate* delegate) OVERRIDE; |
| + |
| + // Called when |bubbleController_| is closing. |
| + void OnBubbleClosing(); |
| + |
| + private: |
| + NSWindow* parent_window_; // Weak. |
| + Delegate* delegate_; // Weak. |
| + |
| + // Cocoa-side UI controller for the bubble. Weak, as it will close itself. |
| + PermissionBubbleController* bubbleController_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(PermissionBubbleCocoa); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ |