| 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_WINDOW_CONTROLLER_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ |
| 7 | 7 |
| 8 // A class acting as the Objective-C controller for the Panel window | 8 // A class acting as the Objective-C controller for the Panel window |
| 9 // object. Handles interactions between Cocoa and the cross-platform | 9 // object. Handles interactions between Cocoa and the cross-platform |
| 10 // code. Each window has a single titlebar and is managed/owned by Panel. | 10 // code. Each window has a single titlebar and is managed/owned by Panel. |
| 11 | 11 |
| 12 #import <Cocoa/Cocoa.h> | 12 #import <Cocoa/Cocoa.h> |
| 13 | 13 |
| 14 #include "base/memory/scoped_nsobject.h" | 14 #include "base/memory/scoped_nsobject.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #import "chrome/browser/ui/cocoa/chrome_browser_window.h" | 16 #import "chrome/browser/ui/cocoa/chrome_browser_window.h" |
| 17 #import "chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h" | 17 #import "chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h" |
| 18 #import "chrome/browser/ui/cocoa/tracking_area.h" | |
| 19 #include "chrome/browser/ui/panels/panel.h" | 18 #include "chrome/browser/ui/panels/panel.h" |
| 20 | 19 |
| 21 class PanelCocoa; | 20 class PanelCocoa; |
| 22 @class PanelTitlebarViewCocoa; | 21 @class PanelTitlebarViewCocoa; |
| 23 | 22 |
| 24 @interface PanelWindowCocoaImpl : ChromeBrowserWindow { | 23 @interface PanelWindowCocoaImpl : ChromeBrowserWindow { |
| 25 } | 24 } |
| 26 @end | 25 @end |
| 27 | 26 |
| 28 @interface PanelWindowControllerCocoa : NSWindowController | 27 @interface PanelWindowControllerCocoa : NSWindowController |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 135 |
| 137 // Turns on user-resizable corners/sides indications and enables live resize. | 136 // Turns on user-resizable corners/sides indications and enables live resize. |
| 138 - (void)enableResizeByMouse:(BOOL)enable; | 137 - (void)enableResizeByMouse:(BOOL)enable; |
| 139 | 138 |
| 140 - (NSRect)frameRectForContentRect:(NSRect)contentRect; | 139 - (NSRect)frameRectForContentRect:(NSRect)contentRect; |
| 141 - (NSRect)contentRectForFrameRect:(NSRect)frameRect; | 140 - (NSRect)contentRectForFrameRect:(NSRect)frameRect; |
| 142 | 141 |
| 143 @end // @interface PanelWindowController | 142 @end // @interface PanelWindowController |
| 144 | 143 |
| 145 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ | 144 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ |
| OLD | NEW |