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

Side by Side Diff: ui/aura/window_delegate.h

Issue 8202026: views: Some more layer change, and add/update some tests for layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 2 months 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 | Annotate | Revision Log
OLDNEW
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 UI_AURA_WINDOW_DELEGATE_H_ 5 #ifndef UI_AURA_WINDOW_DELEGATE_H_
6 #define UI_AURA_WINDOW_DELEGATE_H_ 6 #define UI_AURA_WINDOW_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/aura/aura_export.h" 9 #include "ui/aura/aura_export.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Called from Window's destructor before OnWindowDestroyed and before the 63 // Called from Window's destructor before OnWindowDestroyed and before the
64 // children have been destroyed. 64 // children have been destroyed.
65 virtual void OnWindowDestroying() = 0; 65 virtual void OnWindowDestroying() = 0;
66 66
67 // Called when the Window has been destroyed (i.e. from its destructor). This 67 // Called when the Window has been destroyed (i.e. from its destructor). This
68 // is called after OnWindowDestroying and after the children have been 68 // is called after OnWindowDestroying and after the children have been
69 // deleted. 69 // deleted.
70 // The delegate can use this as an opportunity to delete itself if necessary. 70 // The delegate can use this as an opportunity to delete itself if necessary.
71 virtual void OnWindowDestroyed() = 0; 71 virtual void OnWindowDestroyed() = 0;
72 72
73 // Called when the visibility of a Window changed.
74 virtual void OnWindowVisibilityChanged(bool visible) = 0;
75
73 protected: 76 protected:
74 virtual ~WindowDelegate() {} 77 virtual ~WindowDelegate() {}
75 }; 78 };
76 79
77 } // namespace aura 80 } // namespace aura
78 81
79 #endif // UI_AURA_WINDOW_DELEGATE_H_ 82 #endif // UI_AURA_WINDOW_DELEGATE_H_
OLDNEW
« ui/aura/window.cc ('K') | « ui/aura/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698