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

Side by Side Diff: views/focus/accelerator_handler_aura.cc

Issue 7850026: Aura under Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: First version that links (and crashes) Created 9 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
« ui/ui.gyp ('K') | « views/focus/accelerator_handler.h ('k') | 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 "views/focus/accelerator_handler.h" 5 #include "views/focus/accelerator_handler.h"
6 6
7 namespace views { 7 namespace views {
8 8
9 AcceleratorHandler::AcceleratorHandler() { 9 AcceleratorHandler::AcceleratorHandler() {
10 } 10 }
11 11
12 #if defined(OS_WIN)
12 bool AcceleratorHandler::Dispatch(const MSG& msg) { 13 bool AcceleratorHandler::Dispatch(const MSG& msg) {
13 #if defined(OS_WIN)
14 TranslateMessage(&msg); 14 TranslateMessage(&msg);
15 DispatchMessage(&msg); 15 DispatchMessage(&msg);
16 #endif
17 return true; 16 return true;
18 } 17 }
18 #else
19 base::MessagePumpDispatcher::DispatchStatus AcceleratorHandler::Dispatch(
20 XEvent*) {
21 // TODO(saintlou): figure out what we should do here.
22 return EVENT_QUIT;
23 }
24
25 bool DispatchXEvent(XEvent* xev) {
26 return false;
27 }
28 #endif
19 29
20 } // namespace views 30 } // namespace views
OLDNEW
« ui/ui.gyp ('K') | « views/focus/accelerator_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698