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

Side by Side Diff: chrome/browser/cocoa/nswindow_local_state.h

Issue 536086: Mac: Save/restore task manager window pos and size. (Closed)
Patch Set: comments Created 10 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 class PrefService;
6 @class NSWindow;
7
8 // These additions to NSWindow assist in saving and restoring a window's
9 // position to Chromium's local state preferences.
10
11 @interface NSWindow (LocalStateAdditions)
12
13 // Saves the window's origin into the given PrefService. Caller is responsible
14 // for making sure |prefs| is not NULL.
15 - (void)saveWindowPositionToPrefs:(PrefService*)prefs
16 withPath:(const wchar_t*)path;
17
18 - (void)restoreWindowPositionFromPrefs:(PrefService*)prefs
19 withPath:(const wchar_t*)path;
20
21 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698