| 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 "chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.h" | 5 #include "chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "content/public/browser/render_view_host.h" | 9 #include "content/public/browser/render_view_host.h" |
| 10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 NSView* view = native_view(); | 23 NSView* view = native_view(); |
| 24 NSRect frame = [view frame]; | 24 NSRect frame = [view frame]; |
| 25 frame.size.width = new_size.width(); | 25 frame.size.width = new_size.width(); |
| 26 frame.size.height = new_size.height(); | 26 frame.size.height = new_size.height(); |
| 27 | 27 |
| 28 [view setFrame:frame]; | 28 [view setFrame:frame]; |
| 29 [view setNeedsDisplay:YES]; | 29 [view setNeedsDisplay:YES]; |
| 30 } | 30 } |
| 31 | 31 |
| 32 gfx::NativeView BalloonViewHost::native_view() const { | 32 gfx::NativeView BalloonViewHost::native_view() const { |
| 33 return web_contents_->GetContentNativeView(); | 33 return web_contents_->GetView()->GetContentNativeView(); |
| 34 } | 34 } |
| OLD | NEW |