Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: chrome/browser/ui/views/frame/web_contents_close_handler_delegate.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/web_app_left_header_view_ash.h ('k') | chrome/browser/ui/views/ime/ime_window_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698