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 12 matching lines...) Expand all Loading... |
23 virtual ~ClippingWindowDelegate() {} | 23 virtual ~ClippingWindowDelegate() {} |
24 | 24 |
25 void set_native_view(aura::Window* native_view) { | 25 void set_native_view(aura::Window* native_view) { |
26 native_view_ = native_view; | 26 native_view_ = native_view; |
27 } | 27 } |
28 | 28 |
29 virtual gfx::Size GetMinimumSize() const OVERRIDE { return gfx::Size(); } | 29 virtual gfx::Size GetMinimumSize() const OVERRIDE { return gfx::Size(); } |
30 virtual gfx::Size GetMaximumSize() const OVERRIDE { return gfx::Size(); } | 30 virtual gfx::Size GetMaximumSize() const OVERRIDE { return gfx::Size(); } |
31 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 31 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
32 const gfx::Rect& new_bounds) OVERRIDE {} | 32 const gfx::Rect& new_bounds) OVERRIDE {} |
| 33 virtual void OnPropertyChanged(const void* key, intptr_t old) OVERRIDE {} |
33 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE { | 34 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE { |
34 return gfx::kNullCursor; | 35 return gfx::kNullCursor; |
35 } | 36 } |
36 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { | 37 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { |
37 return HTCLIENT; | 38 return HTCLIENT; |
38 } | 39 } |
39 virtual bool ShouldDescendIntoChildForEventHandling( | 40 virtual bool ShouldDescendIntoChildForEventHandling( |
40 aura::Window* child, | 41 aura::Window* child, |
41 const gfx::Point& location) OVERRIDE { return true; } | 42 const gfx::Point& location) OVERRIDE { return true; } |
42 virtual bool CanFocus() OVERRIDE { | 43 virtual bool CanFocus() OVERRIDE { |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 } else { | 230 } else { |
230 clipping_window_.RemoveChild(host_->native_view()); | 231 clipping_window_.RemoveChild(host_->native_view()); |
231 } | 232 } |
232 host_->native_view()->SetBounds(clipping_window_.bounds()); | 233 host_->native_view()->SetBounds(clipping_window_.bounds()); |
233 } | 234 } |
234 if (clipping_window_.parent()) | 235 if (clipping_window_.parent()) |
235 clipping_window_.parent()->RemoveChild(&clipping_window_); | 236 clipping_window_.parent()->RemoveChild(&clipping_window_); |
236 } | 237 } |
237 | 238 |
238 } // namespace views | 239 } // namespace views |
OLD | NEW |