Gets the findbar to at least show up.
[chromium-blink-merge.git] / chrome / browser / ui / views / dropdown_bar_host_aura.cc
blobbfeee0fe1deeb6846789c29a8f66dabf9e7ab319
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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/views/dropdown_bar_host.h"
7 #include "base/logging.h"
8 #include "ui/aura/window.h"
9 #include "views/widget/widget.h"
11 NativeWebKeyboardEvent DropdownBarHost::GetKeyboardEvent(
12 const TabContents* contents,
13 const views::KeyEvent& key_event) {
14 return NativeWebKeyboardEvent(key_event.native_event());
17 void DropdownBarHost::SetWidgetPositionNative(const gfx::Rect& new_pos,
18 bool no_redraw) {
19 if (!host_->IsVisible())
20 host_->GetNativeView()->Show();
21 host_->GetNativeView()->SetBounds(new_pos);