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 UI_VIEWS_COREWM_ACTIVATION_CHANGE_SHIM_ | 5 #ifndef UI_VIEWS_COREWM_ACTIVATION_CHANGE_SHIM_ |
6 #define UI_VIEWS_COREWM_ACTIVATION_CHANGE_SHIM_ | 6 #define UI_VIEWS_COREWM_ACTIVATION_CHANGE_SHIM_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/aura/client/activation_change_observer.h" | 10 #include "ui/aura/client/activation_change_observer.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 public ui::EventHandler { | 27 public ui::EventHandler { |
28 protected: | 28 protected: |
29 explicit ActivationChangeShim(ui::EventTarget* target); | 29 explicit ActivationChangeShim(ui::EventTarget* target); |
30 virtual ~ActivationChangeShim(); | 30 virtual ~ActivationChangeShim(); |
31 | 31 |
32 // Overridden from aura::client::ActivationChangeObserver: | 32 // Overridden from aura::client::ActivationChangeObserver: |
33 virtual void OnWindowActivated(aura::Window* active, | 33 virtual void OnWindowActivated(aura::Window* active, |
34 aura::Window* old_active) OVERRIDE; | 34 aura::Window* old_active) OVERRIDE; |
35 | 35 |
36 // Overridden from ui::EventHandler: | 36 // Overridden from ui::EventHandler: |
37 virtual ui::EventResult OnEvent(ui::Event* event) OVERRIDE; | 37 virtual void OnEvent(ui::Event* event) OVERRIDE; |
38 | 38 |
39 private: | 39 private: |
40 ui::EventTarget* target_; | 40 ui::EventTarget* target_; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(ActivationChangeShim); | 42 DISALLOW_COPY_AND_ASSIGN(ActivationChangeShim); |
43 }; | 43 }; |
44 | 44 |
45 } // namespace corewm | 45 } // namespace corewm |
46 } // namespace views | 46 } // namespace views |
47 | 47 |
48 #endif // UI_VIEWS_COREWM_ACTIVATION_CHANGE_SHIM_ | 48 #endif // UI_VIEWS_COREWM_ACTIVATION_CHANGE_SHIM_ |
OLD | NEW |