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

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

Issue 10383239: Move NativeWebKeyboardEvent to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "chrome/browser/ui/find_bar/find_bar_controller.h" 9 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
10 #include "chrome/browser/ui/find_bar/find_tab_helper.h" 10 #include "chrome/browser/ui/find_bar/find_tab_helper.h"
11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
12 #include "chrome/browser/ui/view_ids.h" 12 #include "chrome/browser/ui/view_ids.h"
13 #include "chrome/browser/ui/views/find_bar_view.h" 13 #include "chrome/browser/ui/views/find_bar_view.h"
14 #include "chrome/browser/ui/views/frame/browser_view.h" 14 #include "chrome/browser/ui/views/frame/browser_view.h"
15 #include "content/public/browser/render_view_host.h" 15 #include "content/public/browser/render_view_host.h"
16 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
17 #include "content/public/browser/web_contents_view.h" 17 #include "content/public/browser/web_contents_view.h"
18 #include "ui/base/keycodes/keyboard_codes.h" 18 #include "ui/base/keycodes/keyboard_codes.h"
19 #include "ui/views/focus/external_focus_tracker.h" 19 #include "ui/views/focus/external_focus_tracker.h"
20 #include "ui/views/focus/view_storage.h" 20 #include "ui/views/focus/view_storage.h"
21 #include "ui/views/widget/root_view.h" 21 #include "ui/views/widget/root_view.h"
22 #include "ui/views/widget/widget.h" 22 #include "ui/views/widget/widget.h"
23 23
24 using content::NativeWebKeyboardEvent;
25
24 namespace browser { 26 namespace browser {
25 27
26 // Declared in browser_dialogs.h so others don't have to depend on our header. 28 // Declared in browser_dialogs.h so others don't have to depend on our header.
27 FindBar* CreateFindBar(BrowserView* browser_view) { 29 FindBar* CreateFindBar(BrowserView* browser_view) {
28 return new FindBarHost(browser_view); 30 return new FindBarHost(browser_view);
29 } 31 }
30 32
31 } // namespace browser 33 } // namespace browser
32 34
33 //////////////////////////////////////////////////////////////////////////////// 35 ////////////////////////////////////////////////////////////////////////////////
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 content::WebContentsView* tab_view = 335 content::WebContentsView* tab_view =
334 find_bar_controller_->tab_contents()->web_contents()->GetView(); 336 find_bar_controller_->tab_contents()->web_contents()->GetView();
335 gfx::Rect webcontents_rect; 337 gfx::Rect webcontents_rect;
336 tab_view->GetViewBounds(&webcontents_rect); 338 tab_view->GetViewBounds(&webcontents_rect);
337 avoid_overlapping_rect->Offset(0, webcontents_rect.y() - frame_rect.y()); 339 avoid_overlapping_rect->Offset(0, webcontents_rect.y() - frame_rect.y());
338 } 340 }
339 341
340 FindBarView* FindBarHost::find_bar_view() { 342 FindBarView* FindBarHost::find_bar_view() {
341 return static_cast<FindBarView*>(view()); 343 return static_cast<FindBarView*>(view());
342 } 344 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_host_win.cc ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698