| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_PANELS_PANEL_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/browser/ui/panels/native_panel.h" | 12 #include "chrome/browser/ui/panels/native_panel.h" |
| 12 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 13 | 14 |
| 14 class Panel; | 15 class Panel; |
| 15 @class PanelWindowControllerCocoa; | 16 @class PanelWindowControllerCocoa; |
| 16 | 17 |
| 17 // An implememtation of the native panel in Cocoa. | 18 // An implememtation of the native panel in Cocoa. |
| 18 // Bridges between C++ and the Cocoa NSWindow. Cross-platform code will | 19 // Bridges between C++ and the Cocoa NSWindow. Cross-platform code will |
| 19 // interact with this object when it needs to manipulate the window. | 20 // interact with this object when it needs to manipulate the window. |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. | 106 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. |
| 106 NSInteger attention_request_id_; // identifier from requestUserAttention. | 107 NSInteger attention_request_id_; // identifier from requestUserAttention. |
| 107 | 108 |
| 108 // Indicates how the window corner should be rendered, rounded or not. | 109 // Indicates how the window corner should be rendered, rounded or not. |
| 109 panel::CornerStyle corner_style_; | 110 panel::CornerStyle corner_style_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(PanelCocoa); | 112 DISALLOW_COPY_AND_ASSIGN(PanelCocoa); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ | 115 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ |
| OLD | NEW |