summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/find_bar_host_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/find_bar_host_win.cc')
-rw-r--r--chrome/browser/views/find_bar_host_win.cc33
1 files changed, 0 insertions, 33 deletions
diff --git a/chrome/browser/views/find_bar_host_win.cc b/chrome/browser/views/find_bar_host_win.cc
deleted file mode 100644
index e1e5a50..0000000
--- a/chrome/browser/views/find_bar_host_win.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2006-2009 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/views/find_bar_host.h"
-
-#include "chrome/browser/find_bar_controller.h"
-#include "chrome/browser/renderer_host/render_view_host.h"
-#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/browser/tab_contents/tab_contents_view.h"
-#include "chrome/browser/views/frame/browser_view.h"
-#include "views/controls/scrollbar/native_scroll_bar.h"
-#include "views/widget/widget_win.h"
-
-void FindBarHost::AudibleAlert() {
- MessageBeep(MB_OK);
-}
-
-void FindBarHost::GetWidgetPositionNative(gfx::Rect* avoid_overlapping_rect) {
- RECT frame_rect = {0}, webcontents_rect = {0};
- ::GetWindowRect(
- static_cast<views::WidgetWin*>(host())->GetParent(), &frame_rect);
- ::GetWindowRect(
- find_bar_controller_->tab_contents()->view()->GetNativeView(),
- &webcontents_rect);
- avoid_overlapping_rect->Offset(0, webcontents_rect.top - frame_rect.top);
-}
-
-bool FindBarHost::ShouldForwardKeystrokeToWebpageNative(
- const views::Textfield::Keystroke& key_stroke) {
- // We specifically ignore WM_CHAR. See http://crbug.com/10509.
- return key_stroke.message() == WM_KEYDOWN || key_stroke.message() == WM_KEYUP;
-}