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 : true; | 44 : true; |
45 } | 45 } |
46 virtual void OnCaptureLost() OVERRIDE {} | 46 virtual void OnCaptureLost() OVERRIDE {} |
47 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {} | 47 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {} |
48 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE {} | 48 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE {} |
49 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE {} | 49 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE {} |
50 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE {} | 50 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE {} |
51 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE {} | 51 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE {} |
52 virtual bool HasHitTestMask() const OVERRIDE { return false; } | 52 virtual bool HasHitTestMask() const OVERRIDE { return false; } |
53 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE {} | 53 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE {} |
| 54 virtual void OnLinkDisambiguationPopupRequested( |
| 55 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap) OVERRIDE {} |
54 | 56 |
55 private: | 57 private: |
56 const NativeViewHost* host_; | 58 const NativeViewHost* host_; |
57 }; | 59 }; |
58 | 60 |
59 NativeViewHostAura::NativeViewHostAura(NativeViewHost* host) | 61 NativeViewHostAura::NativeViewHostAura(NativeViewHost* host) |
60 : host_(host), | 62 : host_(host), |
61 clipping_window_delegate_(new ClippingWindowDelegate(host)), | 63 clipping_window_delegate_(new ClippingWindowDelegate(host)), |
62 clipping_window_(clipping_window_delegate_.get()) { | 64 clipping_window_(clipping_window_delegate_.get()) { |
63 clipping_window_.Init(aura::WINDOW_LAYER_NOT_DRAWN); | 65 clipping_window_.Init(aura::WINDOW_LAYER_NOT_DRAWN); |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 } else { | 217 } else { |
216 clipping_window_.RemoveChild(host_->native_view()); | 218 clipping_window_.RemoveChild(host_->native_view()); |
217 } | 219 } |
218 host_->native_view()->SetBounds(clipping_window_.bounds()); | 220 host_->native_view()->SetBounds(clipping_window_.bounds()); |
219 } | 221 } |
220 if (clipping_window_.parent()) | 222 if (clipping_window_.parent()) |
221 clipping_window_.parent()->RemoveChild(&clipping_window_); | 223 clipping_window_.parent()->RemoveChild(&clipping_window_); |
222 } | 224 } |
223 | 225 |
224 } // namespace views | 226 } // namespace views |
OLD | NEW |