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

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

Issue 10917270: linux_aura: Make X11 selection buffers work on text in both direction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // buffer. 171 // buffer.
172 enum Buffer { 172 enum Buffer {
173 BUFFER_STANDARD, 173 BUFFER_STANDARD,
174 BUFFER_SELECTION, 174 BUFFER_SELECTION,
175 }; 175 };
176 176
177 static bool IsValidBuffer(int32 buffer) { 177 static bool IsValidBuffer(int32 buffer) {
178 switch (buffer) { 178 switch (buffer) {
179 case BUFFER_STANDARD: 179 case BUFFER_STANDARD:
180 return true; 180 return true;
181 #if defined(USE_X11) && !defined(USE_AURA) 181 #if defined(USE_X11) && !defined(OS_CHROMEOS)
182 case BUFFER_SELECTION: 182 case BUFFER_SELECTION:
183 return true; 183 return true;
184 #endif 184 #endif
185 } 185 }
186 return false; 186 return false;
187 } 187 }
188 188
189 static Buffer FromInt(int32 buffer) { 189 static Buffer FromInt(int32 buffer) {
190 return static_cast<Buffer>(buffer); 190 return static_cast<Buffer>(buffer);
191 } 191 }
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 class AuraX11Details; 389 class AuraX11Details;
390 scoped_ptr<AuraX11Details> aurax11_details_; 390 scoped_ptr<AuraX11Details> aurax11_details_;
391 #endif 391 #endif
392 392
393 DISALLOW_COPY_AND_ASSIGN(Clipboard); 393 DISALLOW_COPY_AND_ASSIGN(Clipboard);
394 }; 394 };
395 395
396 } // namespace ui 396 } // namespace ui
397 397
398 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ 398 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698