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

Side by Side Diff: chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.mm

Issue 12334073: Remove WebContents methods that duplicate WebContentsView methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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) 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698