summaryrefslogtreecommitdiff
path: root/chromium/ui/views/controls/webview/unhandled_keyboard_event_handler_default.cc
blob: f6cb4a38d17a1d4919657f6965fe6dbf13b687e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2013 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 "ui/views/controls/webview/unhandled_keyboard_event_handler.h"

#include "ui/events/event.h"
#include "ui/views/focus/focus_manager.h"

namespace views {

// static
bool UnhandledKeyboardEventHandler::HandleNativeKeyboardEvent(
    gfx::NativeEvent event,
    FocusManager* focus_manager) {
  return !focus_manager->OnKeyEvent(*(event->AsKeyEvent()));
}

}  // namespace views