| 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 #include "ui/views/controls/native/native_view_host_aura.h" | 5 #include "ui/views/controls/native/native_view_host_aura.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/aura/client/aura_constants.h" | 8 #include "ui/aura/client/aura_constants.h" |
| 9 #include "ui/aura/client/focus_client.h" | 9 #include "ui/aura/client/focus_client.h" |
| 10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 bool CanFocus() override { | 45 bool CanFocus() override { |
| 46 // Ask the hosted native view's delegate because directly calling | 46 // Ask the hosted native view's delegate because directly calling |
| 47 // aura::Window::CanFocus() will call back into this when checking whether | 47 // aura::Window::CanFocus() will call back into this when checking whether |
| 48 // parents can focus. | 48 // parents can focus. |
| 49 return native_view_ && native_view_->delegate() | 49 return native_view_ && native_view_->delegate() |
| 50 ? native_view_->delegate()->CanFocus() | 50 ? native_view_->delegate()->CanFocus() |
| 51 : true; | 51 : true; |
| 52 } | 52 } |
| 53 void OnCaptureLost() override {} | 53 void OnCaptureLost() override {} |
| 54 void OnPaint(gfx::Canvas* canvas) override {} | 54 void OnPaint(const ui::PaintContext& context) override {} |
| 55 void OnDeviceScaleFactorChanged(float device_scale_factor) override {} | 55 void OnDeviceScaleFactorChanged(float device_scale_factor) override {} |
| 56 void OnWindowDestroying(aura::Window* window) override {} | 56 void OnWindowDestroying(aura::Window* window) override {} |
| 57 void OnWindowDestroyed(aura::Window* window) override {} | 57 void OnWindowDestroyed(aura::Window* window) override {} |
| 58 void OnWindowTargetVisibilityChanged(bool visible) override {} | 58 void OnWindowTargetVisibilityChanged(bool visible) override {} |
| 59 bool HasHitTestMask() const override { return false; } | 59 bool HasHitTestMask() const override { return false; } |
| 60 void GetHitTestMask(gfx::Path* mask) const override {} | 60 void GetHitTestMask(gfx::Path* mask) const override {} |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 aura::Window* native_view_; | 63 aura::Window* native_view_; |
| 64 }; | 64 }; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 } else { | 229 } else { |
| 230 clipping_window_.RemoveChild(host_->native_view()); | 230 clipping_window_.RemoveChild(host_->native_view()); |
| 231 } | 231 } |
| 232 host_->native_view()->SetBounds(clipping_window_.bounds()); | 232 host_->native_view()->SetBounds(clipping_window_.bounds()); |
| 233 } | 233 } |
| 234 if (clipping_window_.parent()) | 234 if (clipping_window_.parent()) |
| 235 clipping_window_.parent()->RemoveChild(&clipping_window_); | 235 clipping_window_.parent()->RemoveChild(&clipping_window_); |
| 236 } | 236 } |
| 237 | 237 |
| 238 } // namespace views | 238 } // namespace views |
| OLD | NEW |