Chromium Code Reviews| Index: base/clipboard.h |
| =================================================================== |
| --- base/clipboard.h (revision 5863) |
| +++ base/clipboard.h (working copy) |
| @@ -175,7 +175,12 @@ |
| // Free a handle depending on its type (as intuited from format) |
| static void FreeData(FormatType format, HANDLE data); |
| - HWND clipboard_owner_; |
| + // Return the window that should be the clipboard owner, creating it |
| + // if neccessary. Marked const for lazily initialization by const methods. |
| + HWND GetClipboardWindow() const; |
| + |
| + // Mark this as mutable so const methods can still do lazy initialization. |
|
Peter Kasting
2008/11/25 06:46:13
Nit: Should probably comment that no one should ac
|
| + mutable HWND clipboard_owner_; |
| #elif defined(OS_LINUX) |
| // Data is stored in the |clipboard_data_| map until it is saved to the system |
| // clipboard. The Store* functions save data to the |clipboard_data_| map. The |