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

Side by Side Diff: ui/aura/desktop_host_linux.cc

Issue 8461004: Space key doesn't work in AURA enabled build because in case of space key, (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « no previous file | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "ui/aura/desktop_host.h" 5 #include "ui/aura/desktop_host.h"
6 6
7 #include <X11/cursorfont.h> 7 #include <X11/cursorfont.h>
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.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 case ui::VKEY_OEM_3: 208 case ui::VKEY_OEM_3:
209 case ui::VKEY_OEM_4: 209 case ui::VKEY_OEM_4:
210 case ui::VKEY_OEM_5: 210 case ui::VKEY_OEM_5:
211 case ui::VKEY_OEM_6: 211 case ui::VKEY_OEM_6:
212 case ui::VKEY_OEM_7: 212 case ui::VKEY_OEM_7:
213 case ui::VKEY_OEM_102: 213 case ui::VKEY_OEM_102:
214 case ui::VKEY_OEM_PLUS: 214 case ui::VKEY_OEM_PLUS:
215 case ui::VKEY_OEM_COMMA: 215 case ui::VKEY_OEM_COMMA:
216 case ui::VKEY_OEM_MINUS: 216 case ui::VKEY_OEM_MINUS:
217 case ui::VKEY_OEM_PERIOD: 217 case ui::VKEY_OEM_PERIOD:
218 case ui::VKEY_SPACE:
sadrul 2011/11/07 17:26:47 Move this up above VKEY_TAB.
Amruth Raj 2011/11/08 05:47:17 Done.
218 return true; 219 return true;
219 default: 220 default:
220 return false; 221 return false;
221 } 222 }
222 } 223 }
223 224
224 class DesktopHostLinux : public DesktopHost { 225 class DesktopHostLinux : public DesktopHost {
225 public: 226 public:
226 explicit DesktopHostLinux(const gfx::Rect& bounds); 227 explicit DesktopHostLinux(const gfx::Rect& bounds);
227 virtual ~DesktopHostLinux(); 228 virtual ~DesktopHostLinux();
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 return new DesktopHostLinux(bounds); 489 return new DesktopHostLinux(bounds);
489 } 490 }
490 491
491 // static 492 // static
492 gfx::Size DesktopHost::GetNativeDisplaySize() { 493 gfx::Size DesktopHost::GetNativeDisplaySize() {
493 ::Display* xdisplay = base::MessagePumpX::GetDefaultXDisplay(); 494 ::Display* xdisplay = base::MessagePumpX::GetDefaultXDisplay();
494 return gfx::Size(DisplayWidth(xdisplay, 0), DisplayHeight(xdisplay, 0)); 495 return gfx::Size(DisplayWidth(xdisplay, 0), DisplayHeight(xdisplay, 0));
495 } 496 }
496 497
497 } // namespace aura 498 } // namespace aura
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698