diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-29 12:08:28 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-29 12:08:28 +0000 |
commit | a2923b727341d341e7a701b609063a5bc7c9295a (patch) | |
tree | b39e627e96717933145863fc040ef4fa5630fe99 /chrome/browser/views | |
parent | 019a51ae07ea96cd0f6f5c5e1a86b577ebc22c5e (diff) | |
download | chromium_src-a2923b727341d341e7a701b609063a5bc7c9295a.zip chromium_src-a2923b727341d341e7a701b609063a5bc7c9295a.tar.gz chromium_src-a2923b727341d341e7a701b609063a5bc7c9295a.tar.bz2 |
[Windows] Remember the window placement of Keyword editor (Search Engines) to restore again it
in the same place where the user closed it for the last time.
BUG=22269
TEST=open Search engines, move it to a different location, close it, open it again, see if it is
opened in the latest location that you closed.
Review URL: http://codereview.chromium.org/243024
Patch from tfarina.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r-- | chrome/browser/views/keyword_editor_view.cc | 4 | ||||
-rw-r--r-- | chrome/browser/views/keyword_editor_view.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/views/keyword_editor_view.cc b/chrome/browser/views/keyword_editor_view.cc index 587dce6..580afa1 100644 --- a/chrome/browser/views/keyword_editor_view.cc +++ b/chrome/browser/views/keyword_editor_view.cc @@ -112,6 +112,10 @@ std::wstring KeywordEditorView::GetWindowTitle() const { return l10n_util::GetString(IDS_SEARCH_ENGINES_EDITOR_WINDOW_TITLE); } +std::wstring KeywordEditorView::GetWindowName() const { + return prefs::kKeywordEditorWindowPlacement; +} + int KeywordEditorView::GetDialogButtons() const { return MessageBoxFlags::DIALOGBUTTON_CANCEL; } diff --git a/chrome/browser/views/keyword_editor_view.h b/chrome/browser/views/keyword_editor_view.h index 361cc59..69ba388 100644 --- a/chrome/browser/views/keyword_editor_view.h +++ b/chrome/browser/views/keyword_editor_view.h @@ -56,9 +56,10 @@ class KeywordEditorView : public views::View, // Overriden to invoke Layout. virtual gfx::Size GetPreferredSize(); - // DialogDelegate methods: + // views::DialogDelegate methods: virtual bool CanResize() const; virtual std::wstring GetWindowTitle() const; + virtual std::wstring GetWindowName() const; virtual int GetDialogButtons() const; virtual bool Accept(); virtual bool Cancel(); |