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 #include "webkit/glue/webclipboard_impl.h" | 5 #include "webkit/glue/webclipboard_impl.h" |
6 | 6 |
7 #include "app/clipboard/clipboard.h" | 7 #include "app/clipboard/clipboard.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 } | 166 } |
167 } | 167 } |
168 | 168 |
169 bool WebClipboardImpl::ConvertBufferType(Buffer buffer, | 169 bool WebClipboardImpl::ConvertBufferType(Buffer buffer, |
170 Clipboard::Buffer* result) { | 170 Clipboard::Buffer* result) { |
171 switch (buffer) { | 171 switch (buffer) { |
172 case BufferStandard: | 172 case BufferStandard: |
173 *result = Clipboard::BUFFER_STANDARD; | 173 *result = Clipboard::BUFFER_STANDARD; |
174 break; | 174 break; |
175 case BufferSelection: | 175 case BufferSelection: |
176 #if defined(OS_LINUX) | 176 #if defined(USE_X11) |
177 *result = Clipboard::BUFFER_SELECTION; | 177 *result = Clipboard::BUFFER_SELECTION; |
178 break; | 178 break; |
179 #endif | 179 #endif |
180 default: | 180 default: |
181 NOTREACHED(); | 181 NOTREACHED(); |
182 return false; | 182 return false; |
183 } | 183 } |
184 return true; | 184 return true; |
185 } | 185 } |
186 | 186 |
187 } // namespace webkit_glue | 187 } // namespace webkit_glue |
OLD | NEW |