summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/page_info_window_view.cc
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 18:24:56 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 18:24:56 +0000
commit6fbdc9ca2946e7841adf64e7b8bb9999d8810301 (patch)
tree6b8df37c7d52fbce42354ebf53f141da30f4f660 /chrome/browser/views/page_info_window_view.cc
parentf0037f16b1ce3bdecd6b99caff499f6ed5b6ef6a (diff)
downloadchromium_src-6fbdc9ca2946e7841adf64e7b8bb9999d8810301.zip
chromium_src-6fbdc9ca2946e7841adf64e7b8bb9999d8810301.tar.gz
chromium_src-6fbdc9ca2946e7841adf64e7b8bb9999d8810301.tar.bz2
Reverting 22070.
Review URL: http://codereview.chromium.org/159645 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22071 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/page_info_window_view.cc')
-rw-r--r--chrome/browser/views/page_info_window_view.cc27
1 files changed, 13 insertions, 14 deletions
diff --git a/chrome/browser/views/page_info_window_view.cc b/chrome/browser/views/page_info_window_view.cc
index df95004..4e3b020 100644
--- a/chrome/browser/views/page_info_window_view.cc
+++ b/chrome/browser/views/page_info_window_view.cc
@@ -15,7 +15,6 @@
#include "base/compiler_specific.h"
#include "chrome/browser/cert_store.h"
#include "chrome/browser/page_info_model.h"
-#include "chrome/browser/page_info_window.h"
#include "chrome/common/pref_names.h"
#include "grit/locale_settings.h"
#include "grit/generated_resources.h"
@@ -75,8 +74,8 @@ class PageInfoWindowView : public views::View,
// views::DialogDelegate methods:
virtual int GetDialogButtons() const;
- virtual string16 GetWindowTitle() const;
- virtual string16 GetWindowName() const;
+ virtual std::wstring GetWindowTitle() const;
+ virtual std::wstring GetWindowName() const;
virtual views::View* GetContentsView();
virtual views::View* GetExtraView();
virtual bool CanResize() const { return true; }
@@ -110,10 +109,10 @@ class PageInfoWindowView : public views::View,
// optional head-line (in bold) and a description.
class Section : public views::View {
public:
- Section(const string16& title,
+ Section(const std::wstring& title,
bool state,
- const string16& head_line,
- const string16& description);
+ const std::wstring& head_line,
+ const std::wstring& description);
virtual ~Section();
virtual int GetHeightForWidth(int w);
@@ -121,16 +120,16 @@ class Section : public views::View {
private:
// The text placed on top of the section (on the left of the separator bar).
- string16 title_;
+ std::wstring title_;
// Whether to show the good/bad icon.
bool state_;
// The first line of the description, show in bold.
- string16 head_line_;
+ std::wstring head_line_;
// The description, displayed below the head line.
- string16 description_;
+ std::wstring description_;
static SkBitmap* good_state_icon_;
static SkBitmap* bad_state_icon_;
@@ -238,11 +237,11 @@ int PageInfoWindowView::GetDialogButtons() const {
return MessageBoxFlags::DIALOGBUTTON_CANCEL;
}
-string16 PageInfoWindowView::GetWindowTitle() const {
+std::wstring PageInfoWindowView::GetWindowTitle() const {
return l10n_util::GetString(IDS_PAGEINFO_WINDOW_TITLE);
}
-string16 PageInfoWindowView::GetWindowName() const {
+std::wstring PageInfoWindowView::GetWindowName() const {
return prefs::kPageInfoWindowPlacement;
}
@@ -362,10 +361,10 @@ void PageInfoWindowView::ShowCertDialog(int cert_id) {
////////////////////////////////////////////////////////////////////////////////
// Section
-Section::Section(const string16& title,
+Section::Section(const std::wstring& title,
bool state,
- const string16& head_line,
- const string16& description)
+ const std::wstring& head_line,
+ const std::wstring& description)
: title_(title),
state_(state),
head_line_(head_line),