OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SERVICES_VIEW_MANAGER_NODE_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_NODE_H_ |
6 #define MOJO_SERVICES_VIEW_MANAGER_NODE_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_NODE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 virtual bool CanFocus() OVERRIDE; | 79 virtual bool CanFocus() OVERRIDE; |
80 virtual void OnCaptureLost() OVERRIDE; | 80 virtual void OnCaptureLost() OVERRIDE; |
81 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 81 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
82 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 82 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
83 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 83 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
84 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; | 84 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; |
85 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; | 85 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; |
86 virtual bool HasHitTestMask() const OVERRIDE; | 86 virtual bool HasHitTestMask() const OVERRIDE; |
87 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; | 87 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; |
88 | 88 |
89 // ui::EventHandler overrides: | |
90 virtual void OnEvent(ui::Event* event) OVERRIDE; | |
91 | |
92 NodeDelegate* delegate_; | 89 NodeDelegate* delegate_; |
93 const NodeId id_; | 90 const NodeId id_; |
94 | 91 |
95 // Weak pointer to view associated with this node. | 92 // Weak pointer to view associated with this node. |
96 View* view_; | 93 View* view_; |
97 | 94 |
98 ViewId view_id_; | 95 ViewId view_id_; |
99 | 96 |
100 aura::Window window_; | 97 aura::Window window_; |
101 | 98 |
102 DISALLOW_COPY_AND_ASSIGN(Node); | 99 DISALLOW_COPY_AND_ASSIGN(Node); |
103 }; | 100 }; |
104 | 101 |
105 } // namespace service | 102 } // namespace service |
106 } // namespace view_manager | 103 } // namespace view_manager |
107 } // namespace mojo | 104 } // namespace mojo |
108 | 105 |
109 #endif // MOJO_SERVICES_VIEW_MANAGER_NODE_H_ | 106 #endif // MOJO_SERVICES_VIEW_MANAGER_NODE_H_ |
OLD | NEW |