OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "components/exo/surface.h" | 5 #include "components/exo/surface.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 const gfx::Rect& new_bounds) override {} | 63 const gfx::Rect& new_bounds) override {} |
64 gfx::NativeCursor GetCursor(const gfx::Point& point) override { | 64 gfx::NativeCursor GetCursor(const gfx::Point& point) override { |
65 return gfx::kNullCursor; | 65 return gfx::kNullCursor; |
66 } | 66 } |
67 int GetNonClientComponent(const gfx::Point& point) const override { | 67 int GetNonClientComponent(const gfx::Point& point) const override { |
68 return HTNOWHERE; | 68 return HTNOWHERE; |
69 } | 69 } |
70 bool ShouldDescendIntoChildForEventHandling( | 70 bool ShouldDescendIntoChildForEventHandling( |
71 aura::Window* child, | 71 aura::Window* child, |
72 const gfx::Point& location) override { | 72 const gfx::Point& location) override { |
73 return false; | 73 return true; |
74 } | 74 } |
75 bool CanFocus() override { return true; } | 75 bool CanFocus() override { return true; } |
76 void OnCaptureLost() override {} | 76 void OnCaptureLost() override {} |
77 void OnPaint(const ui::PaintContext& context) override {} | 77 void OnPaint(const ui::PaintContext& context) override {} |
78 void OnDeviceScaleFactorChanged(float device_scale_factor) override {} | 78 void OnDeviceScaleFactorChanged(float device_scale_factor) override {} |
79 void OnWindowDestroying(aura::Window* window) override {} | 79 void OnWindowDestroying(aura::Window* window) override {} |
80 void OnWindowDestroyed(aura::Window* window) override { delete this; } | 80 void OnWindowDestroyed(aura::Window* window) override { delete this; } |
81 void OnWindowTargetVisibilityChanged(bool visible) override {} | 81 void OnWindowTargetVisibilityChanged(bool visible) override {} |
82 bool HasHitTestMask() const override { return false; } | 82 bool HasHitTestMask() const override { return false; } |
83 void GetHitTestMask(gfx::Path* mask) const override {} | 83 void GetHitTestMask(gfx::Path* mask) const override {} |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 // of the surface next time the compositor successfully ends compositing. | 428 // of the surface next time the compositor successfully ends compositing. |
429 update_contents_after_successful_compositing_ = true; | 429 update_contents_after_successful_compositing_ = true; |
430 } | 430 } |
431 | 431 |
432 void Surface::OnCompositingShuttingDown(ui::Compositor* compositor) { | 432 void Surface::OnCompositingShuttingDown(ui::Compositor* compositor) { |
433 compositor->RemoveObserver(this); | 433 compositor->RemoveObserver(this); |
434 compositor_ = nullptr; | 434 compositor_ = nullptr; |
435 } | 435 } |
436 | 436 |
437 } // namespace exo | 437 } // namespace exo |
OLD | NEW |