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

Side by Side Diff: chrome/browser/extensions/crashed_extension_infobar.h

Issue 3127009: Convert infobar APIs to UTF-16. (Closed)
Patch Set: works Created 10 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_
6 #define CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 16 matching lines...) Expand all
27 const Extension* extension); 27 const Extension* extension);
28 28
29 const std::string extension_id() { return extension_id_; } 29 const std::string extension_id() { return extension_id_; }
30 30
31 // InfoBarDelegate 31 // InfoBarDelegate
32 virtual CrashedExtensionInfoBarDelegate* AsCrashedExtensionInfoBarDelegate() { 32 virtual CrashedExtensionInfoBarDelegate* AsCrashedExtensionInfoBarDelegate() {
33 return this; 33 return this;
34 } 34 }
35 35
36 // ConfirmInfoBarDelegate 36 // ConfirmInfoBarDelegate
37 virtual std::wstring GetMessageText() const; 37 virtual string16 GetMessageText() const;
38 virtual void InfoBarClosed(); 38 virtual void InfoBarClosed();
39 virtual SkBitmap* GetIcon() const; 39 virtual SkBitmap* GetIcon() const;
40 virtual int GetButtons() const; 40 virtual int GetButtons() const;
41 virtual std::wstring GetButtonLabel( 41 virtual string16 GetButtonLabel(
42 ConfirmInfoBarDelegate::InfoBarButton button) const; 42 ConfirmInfoBarDelegate::InfoBarButton button) const;
43 virtual bool Accept(); 43 virtual bool Accept();
44 44
45 private: 45 private:
46 ExtensionsService* extensions_service_; 46 ExtensionsService* extensions_service_;
47 47
48 const std::string extension_id_; 48 const std::string extension_id_;
49 const std::string extension_name_; 49 const std::string extension_name_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(CrashedExtensionInfoBarDelegate); 51 DISALLOW_COPY_AND_ASSIGN(CrashedExtensionInfoBarDelegate);
52 }; 52 };
53 53
54 #endif // CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ 54 #endif // CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698