OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
6 #define UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 void SetGtkClipboard(ClipboardType type); | 377 void SetGtkClipboard(ClipboardType type); |
378 // Insert a mapping into clipboard_data_. | 378 // Insert a mapping into clipboard_data_. |
379 void InsertMapping(const char* key, char* data, size_t data_len); | 379 void InsertMapping(const char* key, char* data, size_t data_len); |
380 | 380 |
381 // Find the gtk clipboard for the passed type enum. | 381 // Find the gtk clipboard for the passed type enum. |
382 GtkClipboard* LookupBackingClipboard(ClipboardType type) const; | 382 GtkClipboard* LookupBackingClipboard(ClipboardType type) const; |
383 | 383 |
384 TargetMap* clipboard_data_; | 384 TargetMap* clipboard_data_; |
385 GtkClipboard* clipboard_; | 385 GtkClipboard* clipboard_; |
386 GtkClipboard* primary_selection_; | 386 GtkClipboard* primary_selection_; |
387 #elif defined(USE_AURA) && defined(USE_X11) && !defined(OS_CHROMEOS) | 387 #elif defined(USE_CLIPBOARD_AURAX11) |
388 private: | 388 private: |
389 // We keep our implementation details private because otherwise we bring in | 389 // We keep our implementation details private because otherwise we bring in |
390 // the X11 headers and break chrome compile. | 390 // the X11 headers and break chrome compile. |
391 class AuraX11Details; | 391 class AuraX11Details; |
392 scoped_ptr<AuraX11Details> aurax11_details_; | 392 scoped_ptr<AuraX11Details> aurax11_details_; |
393 #endif | 393 #endif |
394 | 394 |
395 DISALLOW_COPY_AND_ASSIGN(Clipboard); | 395 DISALLOW_COPY_AND_ASSIGN(Clipboard); |
396 }; | 396 }; |
397 | 397 |
398 } // namespace ui | 398 } // namespace ui |
399 | 399 |
400 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 400 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
OLD | NEW |