| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 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_PANELS_NATIVE_PANEL_COCOA_H_ | |
| 6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_COCOA_H_ | |
| 7 | |
| 8 #include "chrome/browser/ui/panels/native_panel.h" | |
| 9 | |
| 10 // Cocoa NativePanel interface used by the PanelWindowControllerCocoa class | |
| 11 // as its C++ window shim. I wish I had a "friend @class" construct to make | |
| 12 // this interface non-public. | |
| 13 class NativePanelCocoa : public NativePanel { | |
| 14 public: | |
| 15 virtual ~NativePanelCocoa() {} | |
| 16 | |
| 17 virtual Panel* panel() const = 0; | |
| 18 | |
| 19 // Callback from cocoa panel window controller that native window was actually | |
| 20 // closed. The window may not close right away because of onbeforeunload | |
| 21 // handlers. | |
| 22 virtual void DidCloseNativeWindow() = 0; | |
| 23 }; | |
| 24 | |
| 25 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | |
| OLD | NEW |