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