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

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

Issue 9019004: Rename PluginService to PluginServiceImpl. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "content/browser/renderer_host/render_view_host.h" 7 #include "content/browser/renderer_host/render_view_host.h"
8 #include "content/browser/renderer_host/render_widget_host_view_mac.h" 8 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
9 #include "content/browser/tab_contents/tab_contents.h" 9 #include "content/browser/tab_contents/tab_contents.h"
10 #include "content/browser/tab_contents/tab_contents_view.h" 10 #include "content/browser/tab_contents/tab_contents_view.h"
11 11
12 BalloonViewHost::BalloonViewHost(Balloon* balloon) 12 BalloonViewHost::BalloonViewHost(Balloon* balloon)
13 : BalloonHost(balloon) { 13 : BalloonHost(balloon) {
14 } 14 }
15 15
16 BalloonViewHost::~BalloonViewHost() { 16 BalloonViewHost::~BalloonViewHost() {
17 Shutdown(); 17 Shutdown();
18 } 18 }
19 19
20 void BalloonViewHost::UpdateActualSize(const gfx::Size& new_size) { 20 void BalloonViewHost::UpdateActualSize(const gfx::Size& new_size) {
21 tab_contents_->view()->SizeContents(new_size); 21 tab_contents_->GetView()->SizeContents(new_size);
22 NSView* view = native_view(); 22 NSView* view = native_view();
23 NSRect frame = [view frame]; 23 NSRect frame = [view frame];
24 frame.size.width = new_size.width(); 24 frame.size.width = new_size.width();
25 frame.size.height = new_size.height(); 25 frame.size.height = new_size.height();
26 26
27 [view setFrame:frame]; 27 [view setFrame:frame];
28 [view setNeedsDisplay:YES]; 28 [view setNeedsDisplay:YES];
29 } 29 }
30 30
31 gfx::NativeView BalloonViewHost::native_view() const { 31 gfx::NativeView BalloonViewHost::native_view() const {
32 return tab_contents_->GetContentNativeView(); 32 return tab_contents_->GetContentNativeView();
33 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698