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

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

Issue 10796106: aura: Rename OnWindowVisisbilityChanged() to OnWindowTargetVisibilityChanged(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 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
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 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 7
8 #include "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 #include "ui/base/events.h" 9 #include "ui/base/events.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // children have been destroyed and the window has been removed from its 77 // children have been destroyed and the window has been removed from its
78 // parent. 78 // parent.
79 virtual void OnWindowDestroying() = 0; 79 virtual void OnWindowDestroying() = 0;
80 80
81 // Called when the Window has been destroyed (i.e. from its destructor). This 81 // Called when the Window has been destroyed (i.e. from its destructor). This
82 // is called after OnWindowDestroying and after the children have been 82 // is called after OnWindowDestroying and after the children have been
83 // deleted and the window has been removed from its parent. 83 // deleted and the window has been removed from its parent.
84 // The delegate can use this as an opportunity to delete itself if necessary. 84 // The delegate can use this as an opportunity to delete itself if necessary.
85 virtual void OnWindowDestroyed() = 0; 85 virtual void OnWindowDestroyed() = 0;
86 86
87 // Called when the visibility of a Window changes. See description in 87 // Called when the TargetVisibility() of a Window changes. |visible|
88 // WindowObserver::OnWindowDestroyed() for details. 88 // corresponds to the target visibility of the window. See
89 // TODO: this should be renamed to OnWindowTargetVisibilityChanged() to 89 // Window::TargetVisibility() for details.
90 // match when it's sent. 90 virtual void OnWindowTargetVisibilityChanged(bool visible) = 0;
91 virtual void OnWindowVisibilityChanged(bool visible) = 0;
92 91
93 // Called from Window::HitTest to check if the window has a custom hit test 92 // Called from Window::HitTest to check if the window has a custom hit test
94 // mask. It works similar to the views counterparts. That is, if the function 93 // mask. It works similar to the views counterparts. That is, if the function
95 // returns true, GetHitTestMask below will be called to get the mask. 94 // returns true, GetHitTestMask below will be called to get the mask.
96 // Otherwise, Window will hit-test against its bounds. 95 // Otherwise, Window will hit-test against its bounds.
97 virtual bool HasHitTestMask() const = 0; 96 virtual bool HasHitTestMask() const = 0;
98 97
99 // Called from Window::HitTest to retrieve hit test mask when HasHitTestMask 98 // Called from Window::HitTest to retrieve hit test mask when HasHitTestMask
100 // above returns true. 99 // above returns true.
101 virtual void GetHitTestMask(gfx::Path* mask) const = 0; 100 virtual void GetHitTestMask(gfx::Path* mask) const = 0;
102 101
103 protected: 102 protected:
104 virtual ~WindowDelegate() {} 103 virtual ~WindowDelegate() {}
105 }; 104 };
106 105
107 } // namespace aura 106 } // namespace aura
108 107
109 #endif // UI_AURA_WINDOW_DELEGATE_H_ 108 #endif // UI_AURA_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « 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