// 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 "chrome/browser/ui/views/dropdown_bar_host.h" #include #include "chrome/browser/ui/views/frame/browser_view.h" #include "ui/views/controls/textfield/textfield.h" #include "ui/views/widget/widget.h" using content::WebContents; void DropdownBarHost::SetWidgetPositionNative(const gfx::Rect& new_pos, bool no_redraw) { host_->SetBounds(new_pos); host_->Show(); } NativeWebKeyboardEvent DropdownBarHost::GetKeyboardEvent( const WebContents* contents, const views::KeyEvent& key_event) { return NativeWebKeyboardEvent(key_event.gdk_event()); }