OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_AURA_SHELL_WINDOW_FRAME_H_ | |
6 #define UI_AURA_SHELL_WINDOW_FRAME_H_ | |
7 #pragma once | |
8 | |
9 #include "ui/aura_shell/aura_shell_export.h" | |
10 | |
11 namespace aura_shell { | |
12 | |
13 // aura::Window property name for a pointer to the WindowFrame interface. | |
14 AURA_SHELL_EXPORT extern const char* const kWindowFrameKey; | |
15 | |
16 // Interface for clients implementing a window frame. Implementors should | |
17 // add a pointer to this interface to each aura::Window, using the key above. | |
18 class AURA_SHELL_EXPORT WindowFrame { | |
19 public: | |
20 virtual ~WindowFrame() {} | |
21 | |
22 // Called when the mouse enters or exits a top-level window. | |
23 virtual void OnWindowHoverChanged(bool hovered) = 0; | |
24 }; | |
25 | |
26 } // namespace aura_shell | |
27 | |
28 #endif // UI_AURA_SHELL_WINDOW_FRAME_H_ | |
OLD | NEW |