From 8d8c773c297d22dbf01e2bbb69b7335f52208845 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Thu, 25 Aug 2011 22:35:13 +0000 Subject: Re-land: Create a new views_aura_desktop. Get views::Widget rendering working against an aura::Window NativeWidget. http://crbug.com/93944 TEST=none Original review URL: http://codereview.chromium.org/7741027 Review URL: http://codereview.chromium.org/7747032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98331 0039d316-1c4b-4281-b951-d872f2087c98 --- views/focus/accelerator_handler_aura.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 views/focus/accelerator_handler_aura.cc (limited to 'views/focus') diff --git a/views/focus/accelerator_handler_aura.cc b/views/focus/accelerator_handler_aura.cc new file mode 100644 index 0000000..8f2f31a --- /dev/null +++ b/views/focus/accelerator_handler_aura.cc @@ -0,0 +1,20 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "views/focus/accelerator_handler.h" + +namespace views { + +AcceleratorHandler::AcceleratorHandler() { +} + +bool AcceleratorHandler::Dispatch(const MSG& msg) { +#if defined(OS_WIN) + TranslateMessage(&msg); + DispatchMessage(&msg); +#endif + return true; +} + +} // namespace views -- cgit v1.1