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

Unified Diff: ui/base/x/selection_requestor.cc

Issue 2924343002: Move ui::GetAtom to gfx::GetAtom (Closed)
Patch Set: fix CrOs build Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/x/selection_owner.cc ('k') | ui/base/x/selection_requestor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/selection_requestor.cc
diff --git a/ui/base/x/selection_requestor.cc b/ui/base/x/selection_requestor.cc
index a6e402c3f9bb01e568d2c4923acc0312f9b9f7b7..c4b8a7ec599e03edfa85c9bdc08e9431da34afb2 100644
--- a/ui/base/x/selection_requestor.cc
+++ b/ui/base/x/selection_requestor.cc
@@ -13,6 +13,7 @@
#include "ui/base/x/x11_util.h"
#include "ui/events/platform/platform_event_dispatcher.h"
#include "ui/events/platform/platform_event_source.h"
+#include "ui/gfx/x/x11_atom_cache.h"
#include "ui/gfx/x/x11_types.h"
namespace ui {
@@ -62,7 +63,7 @@ SelectionRequestor::SelectionRequestor(XDisplay* x_display,
x_property_(None),
dispatcher_(dispatcher),
current_request_index_(0u) {
- x_property_ = GetAtom(kChromeSelection);
+ x_property_ = gfx::GetAtom(kChromeSelection);
}
SelectionRequestor::~SelectionRequestor() {}
@@ -162,7 +163,7 @@ void SelectionRequestor::OnSelectionNotify(const XEvent& event) {
if (event_property != None)
XDeleteProperty(x_display_, x_window_, event_property);
- if (request->out_type == GetAtom(kIncr)) {
+ if (request->out_type == gfx::GetAtom(kIncr)) {
request->data_sent_incrementally = true;
request->out_data.clear();
request->out_data_items = 0u;
« no previous file with comments | « ui/base/x/selection_owner.cc ('k') | ui/base/x/selection_requestor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698