| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DEV_TOOLS_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_DEV_TOOLS_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_DEV_TOOLS_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_DEV_TOOLS_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Foundation/Foundation.h> | 9 #import <Foundation/Foundation.h> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // This controller's view. | 37 // This controller's view. |
| 38 - (NSView*)view; | 38 - (NSView*)view; |
| 39 | 39 |
| 40 // The compiler seems to have trouble handling a function named "view" that | 40 // The compiler seems to have trouble handling a function named "view" that |
| 41 // returns an NSSplitView, so provide a differently-named method. | 41 // returns an NSSplitView, so provide a differently-named method. |
| 42 - (NSSplitView*)splitView; | 42 - (NSSplitView*)splitView; |
| 43 | 43 |
| 44 // Depending on |contents|'s state, decides whether the docked web inspector | 44 // Depending on |contents|'s state, decides whether the docked web inspector |
| 45 // should be shown or hidden and adjusts its height (|delegate_| handles | 45 // should be shown or hidden and adjusts its height (|delegate_| handles |
| 46 // the actual resize). | 46 // the actual resize). |
| 47 - (void)updateDevToolsForTabContents:(TabContents*)contents | 47 - (void)updateDevToolsForWebContents:(content::WebContents*)contents |
| 48 withProfile:(Profile*)profile; | 48 withProfile:(Profile*)profile; |
| 49 | 49 |
| 50 // Specifies whether devtools should dock to right. | 50 // Specifies whether devtools should dock to right. |
| 51 - (void)setDockToRight:(BOOL)dock_to_right | 51 - (void)setDockToRight:(BOOL)dock_to_right |
| 52 withProfile:(Profile*)profile; | 52 withProfile:(Profile*)profile; |
| 53 | 53 |
| 54 // Call when the devTools view is properly sized and the render widget host view | 54 // Call when the devTools view is properly sized and the render widget host view |
| 55 // should be put into the view hierarchy. | 55 // should be put into the view hierarchy. |
| 56 - (void)ensureContentsVisible; | 56 - (void)ensureContentsVisible; |
| 57 | 57 |
| 58 @end | 58 @end |
| 59 | 59 |
| 60 #endif // CHROME_BROWSER_UI_COCOA_DEV_TOOLS_CONTROLLER_H_ | 60 #endif // CHROME_BROWSER_UI_COCOA_DEV_TOOLS_CONTROLLER_H_ |
| OLD | NEW |