Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Side by Side Diff: content/browser/web_contents/aura/image_window_delegate.cc

Issue 434343004: Call OnNativeWindowChanged after maximizing and restoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implement in all subclasses. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698