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 #include "base/time.h" | |
17 #import "chrome/browser/ui/cocoa/chrome_browser_window.h" | 16 #import "chrome/browser/ui/cocoa/chrome_browser_window.h" |
18 #import "chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h" | 17 #import "chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h" |
19 #import "chrome/browser/ui/cocoa/themed_window.h" | 18 #import "chrome/browser/ui/cocoa/themed_window.h" |
20 #import "chrome/browser/ui/cocoa/tracking_area.h" | 19 #import "chrome/browser/ui/cocoa/tracking_area.h" |
21 #include "chrome/browser/ui/panels/panel.h" | 20 #include "chrome/browser/ui/panels/panel.h" |
22 | 21 |
23 class PanelCocoa; | 22 class PanelCocoa; |
24 @class PanelTitlebarViewCocoa; | 23 @class PanelTitlebarViewCocoa; |
25 | 24 |
26 @interface PanelWindowCocoaImpl : ChromeBrowserWindow { | 25 @interface PanelWindowCocoaImpl : ChromeBrowserWindow { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 141 |
143 // Turns on user-resizable corners/sides indications and enables live resize. | 142 // Turns on user-resizable corners/sides indications and enables live resize. |
144 - (void)enableResizeByMouse:(BOOL)enable; | 143 - (void)enableResizeByMouse:(BOOL)enable; |
145 | 144 |
146 - (NSRect)frameRectForContentRect:(NSRect)contentRect; | 145 - (NSRect)frameRectForContentRect:(NSRect)contentRect; |
147 - (NSRect)contentRectForFrameRect:(NSRect)frameRect; | 146 - (NSRect)contentRectForFrameRect:(NSRect)frameRect; |
148 | 147 |
149 @end // @interface PanelWindowController | 148 @end // @interface PanelWindowController |
150 | 149 |
151 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ | 150 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ |
OLD | NEW |