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

Side by Side Diff: ash/wm/window_frame.h

Issue 10693135: Remove #pragma once from ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « ash/wm/window_cycle_list.h ('k') | ash/wm/window_modality_controller.h » ('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 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_
OLDNEW
« no previous file with comments | « ash/wm/window_cycle_list.h ('k') | ash/wm/window_modality_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698