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

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

Issue 23338005: Mac InfoBar: Use cross platform infobar classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/keystone_infobar_delegate.h" 5 #include "chrome/browser/ui/cocoa/keystone_infobar_delegate.h"
6 6
7 #import <AppKit/AppKit.h> 7 #import <AppKit/AppKit.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/ui/tabs/tab_strip_model.h" 23 #include "chrome/browser/ui/tabs/tab_strip_model.h"
24 #include "chrome/common/chrome_switches.h" 24 #include "chrome/common/chrome_switches.h"
25 #include "chrome/common/pref_names.h" 25 #include "chrome/common/pref_names.h"
26 #include "content/public/browser/navigation_details.h" 26 #include "content/public/browser/navigation_details.h"
27 #include "content/public/browser/web_contents.h" 27 #include "content/public/browser/web_contents.h"
28 #include "grit/chromium_strings.h" 28 #include "grit/chromium_strings.h"
29 #include "grit/generated_resources.h" 29 #include "grit/generated_resources.h"
30 #include "grit/theme_resources.h" 30 #include "grit/theme_resources.h"
31 #include "ui/base/l10n/l10n_util.h" 31 #include "ui/base/l10n/l10n_util.h"
32 32
33 #if 0
34
33 class SkBitmap; 35 class SkBitmap;
34 36
35 namespace { 37 namespace {
36 38
37 // KeystonePromotionInfoBarDelegate ------------------------------------------- 39 // KeystonePromotionInfoBarDelegate -------------------------------------------
38 40
39 class KeystonePromotionInfoBarDelegate : public ConfirmInfoBarDelegate { 41 class KeystonePromotionInfoBarDelegate : public ConfirmInfoBarDelegate {
40 public: 42 public:
41 // If there's an active tab, creates a keystone promotion delegate and adds it 43 // If there's an active tab, creates a keystone promotion delegate and adds it
42 // to the InfoBarService associated with that tab. 44 // to the InfoBarService associated with that tab.
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 223
222 @end // @implementation KeystonePromotionInfoBar 224 @end // @implementation KeystonePromotionInfoBar
223 225
224 // static 226 // static
225 void KeystoneInfoBar::PromotionInfoBar(Profile* profile) { 227 void KeystoneInfoBar::PromotionInfoBar(Profile* profile) {
226 KeystonePromotionInfoBar* promotionInfoBar = 228 KeystonePromotionInfoBar* promotionInfoBar =
227 [[[KeystonePromotionInfoBar alloc] init] autorelease]; 229 [[[KeystonePromotionInfoBar alloc] init] autorelease];
228 230
229 [promotionInfoBar checkAndShowInfoBarForProfile:profile]; 231 [promotionInfoBar checkAndShowInfoBarForProfile:profile];
230 } 232 }
233
234 #endif
235
236 void KeystoneInfoBar::PromotionInfoBar(Profile* profile) {
237 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698