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