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

Unified Diff: chrome/browser/ui/views/find_bar_host_gtk.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_aura.cc ('k') | chrome/browser/ui/views/find_bar_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/find_bar_host_gtk.cc
diff --git a/chrome/browser/ui/views/find_bar_host_gtk.cc b/chrome/browser/ui/views/find_bar_host_gtk.cc
index ca516d64324506741bbc0f9cca8bdf2ee29005ec..3b32c647416c70d67b8f039664de25759e14b5d7 100644
--- a/chrome/browser/ui/views/find_bar_host_gtk.cc
+++ b/chrome/browser/ui/views/find_bar_host_gtk.cc
@@ -4,26 +4,11 @@
#include "chrome/browser/ui/views/find_bar_host.h"
-#include "chrome/browser/ui/find_bar/find_bar_controller.h"
-#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
-#include "chrome/browser/ui/views/frame/browser_view.h"
-#include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h"
-#include "content/browser/tab_contents/tab_contents.h"
-#include "content/browser/tab_contents/tab_contents_view.h"
-
void FindBarHost::AudibleAlert() {
// TODO(davemoore) implement.
NOTIMPLEMENTED();
}
-void FindBarHost::GetWidgetPositionNative(gfx::Rect* avoid_overlapping_rect) {
- gfx::Rect frame_rect = host()->GetTopLevelWidget()->GetWindowScreenBounds();
- TabContentsView* tab_view = find_bar_controller_->tab_contents()->view();
- gfx::Rect webcontents_rect;
- tab_view->GetViewBounds(&webcontents_rect);
- avoid_overlapping_rect->Offset(0, webcontents_rect.y() - frame_rect.y());
-}
-
bool FindBarHost::ShouldForwardKeyEventToWebpageNative(
const views::KeyEvent& key_event) {
return true;
« no previous file with comments | « chrome/browser/ui/views/find_bar_host_aura.cc ('k') | chrome/browser/ui/views/find_bar_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698