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

Side by Side Diff: chrome/browser/ui/cocoa/info_bubble_window.mm

Issue 12279015: Mac Chromium style checker cleanup (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 #import "chrome/browser/ui/cocoa/info_bubble_window.h" 5 #import "chrome/browser/ui/cocoa/info_bubble_window.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_nsobject.h" 9 #include "base/memory/scoped_nsobject.h"
10 #include "chrome/common/chrome_notification_types.h" 10 #include "chrome/common/chrome_notification_types.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // A helper class to proxy app notifications to the window. 32 // A helper class to proxy app notifications to the window.
33 class AppNotificationBridge : public content::NotificationObserver { 33 class AppNotificationBridge : public content::NotificationObserver {
34 public: 34 public:
35 explicit AppNotificationBridge(InfoBubbleWindow* owner) : owner_(owner) { 35 explicit AppNotificationBridge(InfoBubbleWindow* owner) : owner_(owner) {
36 registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING, 36 registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING,
37 content::NotificationService::AllSources()); 37 content::NotificationService::AllSources());
38 } 38 }
39 39
40 // Overridden from content::NotificationObserver. 40 // Overridden from content::NotificationObserver.
41 void Observe(int type, 41 virtual void Observe(
42 const content::NotificationSource& source, 42 int type,
43 const content::NotificationDetails& details) { 43 const content::NotificationSource& source,
44 const content::NotificationDetails& details) OVERRIDE {
44 switch (type) { 45 switch (type) {
45 case chrome::NOTIFICATION_APP_TERMINATING: 46 case chrome::NOTIFICATION_APP_TERMINATING:
46 [owner_ appIsTerminating]; 47 [owner_ appIsTerminating];
47 break; 48 break;
48 default: 49 default:
49 NOTREACHED() << L"Unexpected notification"; 50 NOTREACHED() << L"Unexpected notification";
50 } 51 }
51 } 52 }
52 53
53 private: 54 private:
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 - (void)sendEvent:(NSEvent*)theEvent { 222 - (void)sendEvent:(NSEvent*)theEvent {
222 if (!closing_) 223 if (!closing_)
223 [super sendEvent:theEvent]; 224 [super sendEvent:theEvent];
224 } 225 }
225 226
226 - (BOOL)isClosing { 227 - (BOOL)isClosing {
227 return closing_; 228 return closing_;
228 } 229 }
229 230
230 @end 231 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698