From 74ed092bdb8856b20352d2275d4aa0913b0a4cac Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Thu, 3 Jun 2010 16:14:16 +0000 Subject: Save/restore position for the preferences window based on prefs, BUG=34644 TEST=Try moving the preferences window and confirm it works. Patch from Mingmin Xie Review URL: http://codereview.chromium.org/2592001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48834 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/pref_names.cc | 4 ++++ chrome/common/pref_names.h | 1 + 2 files changed, 5 insertions(+) (limited to 'chrome/common') diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc index aa47bc49..5500fa6 100644 --- a/chrome/common/pref_names.cc +++ b/chrome/common/pref_names.cc @@ -644,6 +644,10 @@ const wchar_t kPageInfoWindowPlacement[] = L"page_info.window_placement"; const wchar_t kKeywordEditorWindowPlacement[] = L"keyword_editor.window_placement"; +// A collection of position, size, and other data relating to the preferences +// window to restore on startup. +const wchar_t kPreferencesWindowPlacement[] = L"preferences.window_placement"; + // An integer specifying the total number of bytes to be used by the // renderer's in-memory cache of objects. const wchar_t kMemoryCacheSize[] = L"renderer.memory_cache.size"; diff --git a/chrome/common/pref_names.h b/chrome/common/pref_names.h index ec33553..fad9b53 100644 --- a/chrome/common/pref_names.h +++ b/chrome/common/pref_names.h @@ -229,6 +229,7 @@ extern const wchar_t kBrowserWindowPlacement[]; extern const wchar_t kTaskManagerWindowPlacement[]; extern const wchar_t kPageInfoWindowPlacement[]; extern const wchar_t kKeywordEditorWindowPlacement[]; +extern const wchar_t kPreferencesWindowPlacement[]; extern const wchar_t kMemoryCacheSize[]; extern const wchar_t kDownloadDefaultDirectory[]; -- cgit v1.1