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

Side by Side Diff: chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm

Issue 6657003: Update a bunch of files to the new location of notification files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 9 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) 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 "base/logging.h" 5 #include "base/logging.h"
6 #include "base/mac/mac_util.h" 6 #include "base/mac/mac_util.h"
7 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 7 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
8 #import "chrome/browser/ui/cocoa/animatable_view.h" 8 #import "chrome/browser/ui/cocoa/animatable_view.h"
9 #include "chrome/browser/ui/cocoa/infobars/infobar.h" 9 #include "chrome/browser/ui/cocoa/infobars/infobar.h"
10 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" 10 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h"
11 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h" 11 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h"
12 #import "chrome/browser/ui/cocoa/view_id_util.h" 12 #import "chrome/browser/ui/cocoa/view_id_util.h"
13 #include "chrome/common/notification_details.h"
14 #include "chrome/common/notification_source.h"
15 #include "content/browser/tab_contents/tab_contents.h" 13 #include "content/browser/tab_contents/tab_contents.h"
14 #include "content/common/notification_details.h"
15 #include "content/common/notification_source.h"
16 #include "skia/ext/skia_utils_mac.h" 16 #include "skia/ext/skia_utils_mac.h"
17 17
18 // C++ class that receives INFOBAR_ADDED and INFOBAR_REMOVED 18 // C++ class that receives INFOBAR_ADDED and INFOBAR_REMOVED
19 // notifications and proxies them back to |controller|. 19 // notifications and proxies them back to |controller|.
20 class InfoBarNotificationObserver : public NotificationObserver { 20 class InfoBarNotificationObserver : public NotificationObserver {
21 public: 21 public:
22 InfoBarNotificationObserver(InfoBarContainerController* controller) 22 InfoBarNotificationObserver(InfoBarContainerController* controller)
23 : controller_(controller) { 23 : controller_(controller) {
24 } 24 }
25 25
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 frame.size.width = NSWidth(containerBounds); 238 frame.size.width = NSWidth(containerBounds);
239 frame.origin.y = minY; 239 frame.origin.y = minY;
240 minY += frame.size.height - infobars::kAntiSpoofHeight; 240 minY += frame.size.height - infobars::kAntiSpoofHeight;
241 [view setFrame:frame]; 241 [view setFrame:frame];
242 } 242 }
243 243
244 [resizeDelegate_ resizeView:[self view] newHeight:[self desiredHeight]]; 244 [resizeDelegate_ resizeView:[self view] newHeight:[self desiredHeight]];
245 } 245 }
246 246
247 @end 247 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698