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

Side by Side Diff: chrome/browser/ui/views/find_bar_host_gtk.cc

Issue 6598086: Update more includes that were pointing to the old locations. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 9 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/find_bar_host.h" 5 #include "chrome/browser/ui/views/find_bar_host.h"
6 6
7 #include "chrome/browser/tab_contents/tab_contents.h"
8 #include "chrome/browser/tab_contents/tab_contents_view.h"
9 #include "chrome/browser/ui/find_bar/find_bar_controller.h" 7 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 8 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
11 #include "chrome/browser/ui/views/frame/browser_view.h" 9 #include "chrome/browser/ui/views/frame/browser_view.h"
10 #include "content/browser/tab_contents/tab_contents.h"
11 #include "content/browser/tab_contents/tab_contents_view.h"
12 #include "views/widget/widget_gtk.h" 12 #include "views/widget/widget_gtk.h"
13 13
14 void FindBarHost::AudibleAlert() { 14 void FindBarHost::AudibleAlert() {
15 // TODO(davemoore) implement. 15 // TODO(davemoore) implement.
16 NOTIMPLEMENTED(); 16 NOTIMPLEMENTED();
17 } 17 }
18 18
19 void FindBarHost::GetWidgetPositionNative(gfx::Rect* avoid_overlapping_rect) { 19 void FindBarHost::GetWidgetPositionNative(gfx::Rect* avoid_overlapping_rect) {
20 gfx::Rect frame_rect, webcontents_rect; 20 gfx::Rect frame_rect, webcontents_rect;
21 host()->GetTopLevelWidget()->GetBounds(&frame_rect, true); 21 host()->GetTopLevelWidget()->GetBounds(&frame_rect, true);
22 TabContentsView* tab_view = find_bar_controller_->tab_contents()->view(); 22 TabContentsView* tab_view = find_bar_controller_->tab_contents()->view();
23 tab_view->GetViewBounds(&webcontents_rect); 23 tab_view->GetViewBounds(&webcontents_rect);
24 avoid_overlapping_rect->Offset(0, webcontents_rect.y() - frame_rect.y()); 24 avoid_overlapping_rect->Offset(0, webcontents_rect.y() - frame_rect.y());
25 } 25 }
26 26
27 bool FindBarHost::ShouldForwardKeyEventToWebpageNative( 27 bool FindBarHost::ShouldForwardKeyEventToWebpageNative(
28 const views::KeyEvent& key_event) { 28 const views::KeyEvent& key_event) {
29 return true; 29 return true;
30 } 30 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download_shelf_view.cc ('k') | chrome/browser/ui/views/location_bar/click_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698