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

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

Issue 154203002: Remove unnecessary uses of aura::Env::GetDispatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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/views/focus/accelerator_handler.h ('k') | ui/views/test/views_test_base.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) 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 #include "ui/views/focus/accelerator_handler.h" 5 #include "ui/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 bool AcceleratorHandler::Dispatch(const base::NativeEvent& event) { 12 bool AcceleratorHandler::Dispatch(const base::NativeEvent& event) {
13 #if defined(OS_WIN) 13 #if defined(OS_WIN)
14 TranslateMessage(&event); 14 TranslateMessage(&event);
15 DispatchMessage(&event); 15 DispatchMessage(&event);
16 #endif // defined(OS_WIN) 16 #endif // defined(OS_WIN)
17 return true; 17 return true;
18 } 18 }
19 19
20 #if defined(USE_X11)
21 bool DispatchXEvent(XEvent* xev) {
22 return false;
23 }
24 #endif // defined(USE_X11)
25
26 } // namespace views 20 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/focus/accelerator_handler.h ('k') | ui/views/test/views_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698