Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: ui/base/clipboard/clipboard.h

Issue 113763003: Add use_clibpard_aurax11 gyp flag to allow chromeos-chrome to access X11 Clipboard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | ui/ui.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698