OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 // TODO(darin): This include should not be necessary, but for some reason the | 5 // TODO(darin): This include should not be necessary, but for some reason the |
6 // Mac build requires it. | 6 // Mac build requires it. |
7 #include "config.h" | 7 #include "config.h" |
8 | 8 |
9 #include "webkit/glue/webkit_client_impl.h" | 9 #include "webkit/glue/webkitclient_impl.h" |
10 | 10 |
11 namespace webkit_glue { | 11 namespace webkit_glue { |
12 | 12 |
13 WebKit::WebClipboard* WebKitClientImpl::clipboard() { | 13 WebKit::WebClipboard* WebKitClientImpl::clipboard() { |
14 if (!clipboard_.get()) | 14 return &clipboard_; |
15 clipboard_.reset(new WebClipboardImpl()); | |
16 return clipboard_.get(); | |
17 } | 15 } |
18 | 16 |
19 } // namespace webkit_glue | 17 } // namespace webkit_glue |
OLD | NEW |