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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual bool CanFocus() OVERRIDE; | 83 virtual bool CanFocus() OVERRIDE; |
84 virtual void OnCaptureLost() OVERRIDE; | 84 virtual void OnCaptureLost() OVERRIDE; |
85 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 85 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
86 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 86 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
87 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 87 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
88 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; | 88 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; |
89 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; | 89 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; |
90 virtual bool HasHitTestMask() const OVERRIDE; | 90 virtual bool HasHitTestMask() const OVERRIDE; |
91 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; | 91 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; |
92 | 92 |
93 // ui::EventHandler overrides: | |
94 virtual void OnEvent(ui::Event* event) OVERRIDE; | |
95 | |
96 NodeDelegate* delegate_; | 93 NodeDelegate* delegate_; |
97 const NodeId id_; | 94 const NodeId id_; |
98 | 95 |
99 aura::Window window_; | 96 aura::Window window_; |
100 SkBitmap bitmap_; | 97 SkBitmap bitmap_; |
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 mojo | 103 } // namespace mojo |
107 | 104 |
108 #endif // MOJO_SERVICES_VIEW_MANAGER_NODE_H_ | 105 #endif // MOJO_SERVICES_VIEW_MANAGER_NODE_H_ |
OLD | NEW |