OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_VIEWS_FRAME_WEB_CONTENTS_CLOSE_HANDLER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_WEB_CONTENTS_CLOSE_HANDLER_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_WEB_CONTENTS_CLOSE_HANDLER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_WEB_CONTENTS_CLOSE_HANDLER_DELEGATE_H_ |
7 | 7 |
8 namespace ui { | |
9 class LayerTreeOwner; | |
10 } | |
11 | |
12 // WebContentsCloseHandler delegate. | 8 // WebContentsCloseHandler delegate. |
13 class WebContentsCloseHandlerDelegate { | 9 class WebContentsCloseHandlerDelegate { |
14 public: | 10 public: |
15 // Invoked to clone the layers of the WebContents. Should do nothing if there | 11 // Invoked to clone the layers of the WebContents. Should do nothing if there |
16 // is already a clone (eg CloneWebContentsLayer() has been invoked without a | 12 // is already a clone (eg CloneWebContentsLayer() has been invoked without a |
17 // DestroyClonedLayer()) or no WebContents. It is expected that when this is | 13 // DestroyClonedLayer()) or no WebContents. It is expected that when this is |
18 // invoked the cloned layer tree is drawn on top of the existing WebContents. | 14 // invoked the cloned layer tree is drawn on top of the existing WebContents. |
19 virtual void CloneWebContentsLayer() = 0; | 15 virtual void CloneWebContentsLayer() = 0; |
20 | 16 |
21 // Invoked to destroy the cloned layer tree. This may be invoked when there is | 17 // Invoked to destroy the cloned layer tree. This may be invoked when there is |
22 // no cloned layer tree. | 18 // no cloned layer tree. |
23 virtual void DestroyClonedLayer() = 0; | 19 virtual void DestroyClonedLayer() = 0; |
24 | 20 |
25 protected: | 21 protected: |
26 virtual ~WebContentsCloseHandlerDelegate() {} | 22 virtual ~WebContentsCloseHandlerDelegate() {} |
27 }; | 23 }; |
28 | 24 |
29 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_WEB_CONTENTS_CLOSE_HANDLER_DELEGATE_H_ | 25 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_WEB_CONTENTS_CLOSE_HANDLER_DELEGATE_H_ |
OLD | NEW |