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

Side by Side Diff: ui/base/x/selection_owner.h

Issue 93863005: ui: Rename ui_export.h to ui_base_export.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UI_BASE_IMPLEMENTATION Created 6 years, 11 months 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 | « ui/base/x/active_window_watcher_x_observer.h ('k') | ui/base/x/selection_requestor.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_X_SELECTION_OWNER_H_ 5 #ifndef UI_BASE_X_SELECTION_OWNER_H_
6 #define UI_BASE_X_SELECTION_OWNER_H_ 6 #define UI_BASE_X_SELECTION_OWNER_H_
7 7
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 9
10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class.
11 #undef RootWindow 11 #undef RootWindow
12 12
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "ui/base/ui_export.h" 17 #include "ui/base/ui_base_export.h"
18 #include "ui/base/x/selection_utils.h" 18 #include "ui/base/x/selection_utils.h"
19 #include "ui/gfx/x/x11_atom_cache.h" 19 #include "ui/gfx/x/x11_atom_cache.h"
20 20
21 namespace ui { 21 namespace ui {
22 22
23 // Owns a specific X11 selection on an X window. 23 // Owns a specific X11 selection on an X window.
24 // 24 //
25 // The selection owner object keeps track of which xwindow is the current 25 // The selection owner object keeps track of which xwindow is the current
26 // owner, and when its |xwindow_|, offers different data types to other 26 // owner, and when its |xwindow_|, offers different data types to other
27 // processes. 27 // processes.
28 class UI_EXPORT SelectionOwner { 28 class UI_BASE_EXPORT SelectionOwner {
29 public: 29 public:
30 SelectionOwner(Display* xdisplay, 30 SelectionOwner(Display* xdisplay,
31 ::Window xwindow, 31 ::Window xwindow,
32 ::Atom selection_name); 32 ::Atom selection_name);
33 ~SelectionOwner(); 33 ~SelectionOwner();
34 34
35 // Returns the current selection data. Useful for fast paths. 35 // Returns the current selection data. Useful for fast paths.
36 const SelectionFormatMap& selection_format_map() { return format_map_; } 36 const SelectionFormatMap& selection_format_map() { return format_map_; }
37 37
38 // Retrieves a list of types we're offering. 38 // Retrieves a list of types we're offering.
(...skipping 24 matching lines...) Expand all
63 SelectionFormatMap format_map_; 63 SelectionFormatMap format_map_;
64 64
65 X11AtomCache atom_cache_; 65 X11AtomCache atom_cache_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(SelectionOwner); 67 DISALLOW_COPY_AND_ASSIGN(SelectionOwner);
68 }; 68 };
69 69
70 } // namespace ui 70 } // namespace ui
71 71
72 #endif // UI_BASE_X_SELECTION_OWNER_H_ 72 #endif // UI_BASE_X_SELECTION_OWNER_H_
OLDNEW
« no previous file with comments | « ui/base/x/active_window_watcher_x_observer.h ('k') | ui/base/x/selection_requestor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698