Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6961)

Unified Diff: chrome/browser/ui/views/find_bar_host_win.cc

Issue 8573012: Unify views implementation of FindBarHost::GetWidgetPositionNative (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/find_bar_host_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/find_bar_host_win.cc
diff --git a/chrome/browser/ui/views/find_bar_host_win.cc b/chrome/browser/ui/views/find_bar_host_win.cc
index c542f37bd801b7f9f0c864a0fe83873960b31ae1..d63a111a79107a9efc157ed3097ff717a3c3dff1 100644
--- a/chrome/browser/ui/views/find_bar_host_win.cc
+++ b/chrome/browser/ui/views/find_bar_host_win.cc
@@ -17,16 +17,6 @@ void FindBarHost::AudibleAlert() {
MessageBeep(MB_OK);
}
-void FindBarHost::GetWidgetPositionNative(gfx::Rect* avoid_overlapping_rect) {
- RECT frame_rect = {0}, webcontents_rect = {0};
- ::GetWindowRect(::GetParent(host()->GetNativeView()), &frame_rect);
- ::GetWindowRect(
- find_bar_controller_->
- tab_contents()->tab_contents()->view()->GetNativeView(),
- &webcontents_rect);
- avoid_overlapping_rect->Offset(0, webcontents_rect.top - frame_rect.top);
-}
-
bool FindBarHost::ShouldForwardKeyEventToWebpageNative(
const views::KeyEvent& key_event) {
// We specifically ignore WM_CHAR. See http://crbug.com/10509.
« no previous file with comments | « chrome/browser/ui/views/find_bar_host_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698