OLD | NEW |
| (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 | |
OLD | NEW |