OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/browser/web_contents/aura/image_window_delegate.h" | 5 #include "content/browser/web_contents/aura/image_window_delegate.h" |
6 | 6 |
7 #include "ui/base/cursor/cursor.h" | 7 #include "ui/base/cursor/cursor.h" |
8 #include "ui/base/hit_test.h" | 8 #include "ui/base/hit_test.h" |
9 #include "ui/compositor/compositor.h" | 9 #include "ui/compositor/compositor.h" |
10 #include "ui/gfx/canvas.h" | 10 #include "ui/gfx/canvas.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 return gfx::Size(); | 36 return gfx::Size(); |
37 } | 37 } |
38 | 38 |
39 void ImageWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, | 39 void ImageWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, |
40 const gfx::Rect& new_bounds) { | 40 const gfx::Rect& new_bounds) { |
41 window_size_ = new_bounds.size(); | 41 window_size_ = new_bounds.size(); |
42 if (!image_.IsEmpty()) | 42 if (!image_.IsEmpty()) |
43 size_mismatch_ = window_size_ != image_.AsImageSkia().size(); | 43 size_mismatch_ = window_size_ != image_.AsImageSkia().size(); |
44 } | 44 } |
45 | 45 |
| 46 void ImageWindowDelegate::OnPropertyChanged(const void* key, intptr_t old) { |
| 47 } |
| 48 |
46 gfx::NativeCursor ImageWindowDelegate::GetCursor(const gfx::Point& point) { | 49 gfx::NativeCursor ImageWindowDelegate::GetCursor(const gfx::Point& point) { |
47 return gfx::kNullCursor; | 50 return gfx::kNullCursor; |
48 } | 51 } |
49 | 52 |
50 int ImageWindowDelegate::GetNonClientComponent(const gfx::Point& point) const { | 53 int ImageWindowDelegate::GetNonClientComponent(const gfx::Point& point) const { |
51 return HTNOWHERE; | 54 return HTNOWHERE; |
52 } | 55 } |
53 | 56 |
54 bool ImageWindowDelegate::ShouldDescendIntoChildForEventHandling( | 57 bool ImageWindowDelegate::ShouldDescendIntoChildForEventHandling( |
55 aura::Window* child, | 58 aura::Window* child, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 } | 91 } |
89 | 92 |
90 bool ImageWindowDelegate::HasHitTestMask() const { | 93 bool ImageWindowDelegate::HasHitTestMask() const { |
91 return false; | 94 return false; |
92 } | 95 } |
93 | 96 |
94 void ImageWindowDelegate::GetHitTestMask(gfx::Path* mask) const { | 97 void ImageWindowDelegate::GetHitTestMask(gfx::Path* mask) const { |
95 } | 98 } |
96 | 99 |
97 } // namespace content | 100 } // namespace content |
OLD | NEW |