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

Side by Side Diff: chrome/browser/ui/cocoa/base_bubble_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) 2010 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 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" 5 #import "chrome/browser/ui/cocoa/base_bubble_controller.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
9 #include "base/scoped_nsobject.h" 9 #include "base/scoped_nsobject.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #import "chrome/browser/ui/cocoa/info_bubble_view.h" 11 #import "chrome/browser/ui/cocoa/info_bubble_view.h"
12 #include "chrome/common/notification_observer.h" 12 #include "content/common/notification_observer.h"
13 #include "chrome/common/notification_registrar.h" 13 #include "content/common/notification_registrar.h"
14 #include "chrome/common/notification_service.h" 14 #include "content/common/notification_service.h"
15 #include "chrome/common/notification_type.h" 15 #include "content/common/notification_type.h"
16 #include "grit/generated_resources.h" 16 #include "grit/generated_resources.h"
17 #include "ui/base/l10n/l10n_util.h" 17 #include "ui/base/l10n/l10n_util.h"
18 18
19 @interface BaseBubbleController (Private) 19 @interface BaseBubbleController (Private)
20 - (void)updateOriginFromAnchor; 20 - (void)updateOriginFromAnchor;
21 @end 21 @end
22 22
23 namespace BaseBubbleControllerInternal { 23 namespace BaseBubbleControllerInternal {
24 24
25 // This bridge listens for notifications so that the bubble closes when a user 25 // This bridge listens for notifications so that the bubble closes when a user
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 if ([bubble_ arrowLocation] == info_bubble::kTopRight) { 191 if ([bubble_ arrowLocation] == info_bubble::kTopRight) {
192 origin.x -= NSWidth([window frame]) - offsets.width; 192 origin.x -= NSWidth([window frame]) - offsets.width;
193 } else { 193 } else {
194 origin.x -= offsets.width; 194 origin.x -= offsets.width;
195 } 195 }
196 origin.y -= NSHeight([window frame]); 196 origin.y -= NSHeight([window frame]);
197 [window setFrameOrigin:origin]; 197 [window setFrameOrigin:origin];
198 } 198 }
199 199
200 @end // BaseBubbleController 200 @end // BaseBubbleController
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator_browsertest.h ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698