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