| 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_HUNG_RENDERER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_HUNG_RENDERER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_HUNG_RENDERER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_HUNG_RENDERER_CONTROLLER_H_ |
| 7 | 7 |
| 8 // A controller for the Mac hung renderer dialog window. Only one | 8 // A controller for the Mac hung renderer dialog window. Only one |
| 9 // instance of this controller can exist at any time, although a given | 9 // instance of this controller can exist at any time, although a given |
| 10 // controller is destroyed when its window is closed. | 10 // controller is destroyed when its window is closed. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 - (void)showForWebContents:(content::WebContents*)contents; | 66 - (void)showForWebContents:(content::WebContents*)contents; |
| 67 | 67 |
| 68 // Notifies the dialog that |contents| is either responsive or closed. | 68 // Notifies the dialog that |contents| is either responsive or closed. |
| 69 // If |contents| shares the same render process as the tab contents | 69 // If |contents| shares the same render process as the tab contents |
| 70 // this dialog was created for, this function will close the dialog. | 70 // this dialog was created for, this function will close the dialog. |
| 71 // If |contents| has a different process, this function does nothing. | 71 // If |contents| has a different process, this function does nothing. |
| 72 - (void)endForWebContents:(content::WebContents*)contents; | 72 - (void)endForWebContents:(content::WebContents*)contents; |
| 73 | 73 |
| 74 // Called by |hungContentsObserver_| to indicate that |hungContents_| | 74 // Called by |hungContentsObserver_| to indicate that |hungContents_| |
| 75 // has gone away. | 75 // has gone away. |
| 76 - (void)renderViewGone; | 76 - (void)renderProcessGone; |
| 77 | 77 |
| 78 @end // HungRendererController | 78 @end // HungRendererController |
| 79 | 79 |
| 80 | 80 |
| 81 @interface HungRendererController (JustForTesting) | 81 @interface HungRendererController (JustForTesting) |
| 82 - (NSButton*)killButton; | 82 - (NSButton*)killButton; |
| 83 - (MultiKeyEquivalentButton*)waitButton; | 83 - (MultiKeyEquivalentButton*)waitButton; |
| 84 @end | 84 @end |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_UI_COCOA_HUNG_RENDERER_CONTROLLER_H_ | 86 #endif // CHROME_BROWSER_UI_COCOA_HUNG_RENDERER_CONTROLLER_H_ |
| OLD | NEW |