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

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

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/find_bar_host.cc ('k') | chrome/browser/ui/views/find_bar_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ui/find_bar/find_bar_controller.h" 7 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
8 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 8 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
9 #include "chrome/browser/ui/views/frame/browser_view.h" 9 #include "chrome/browser/ui/views/frame/browser_view.h"
10 #include "content/browser/renderer_host/render_view_host.h" 10 #include "content/browser/renderer_host/render_view_host.h"
11 #include "content/browser/tab_contents/tab_contents.h" 11 #include "content/browser/tab_contents/tab_contents.h"
12 #include "content/browser/tab_contents/tab_contents_view.h" 12 #include "content/browser/tab_contents/tab_contents_view.h"
13 #include "ui/views/widget/widget.h"
13 #include "views/controls/scrollbar/native_scroll_bar.h" 14 #include "views/controls/scrollbar/native_scroll_bar.h"
14 #include "views/widget/widget.h"
15 15
16 void FindBarHost::AudibleAlert() { 16 void FindBarHost::AudibleAlert() {
17 MessageBeep(MB_OK); 17 MessageBeep(MB_OK);
18 } 18 }
19 19
20 bool FindBarHost::ShouldForwardKeyEventToWebpageNative( 20 bool FindBarHost::ShouldForwardKeyEventToWebpageNative(
21 const views::KeyEvent& key_event) { 21 const views::KeyEvent& key_event) {
22 // We specifically ignore WM_CHAR. See http://crbug.com/10509. 22 // We specifically ignore WM_CHAR. See http://crbug.com/10509.
23 return key_event.native_event().message == WM_KEYDOWN || 23 return key_event.native_event().message == WM_KEYDOWN ||
24 key_event.native_event().message == WM_KEYUP; 24 key_event.native_event().message == WM_KEYUP;
25 } 25 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/find_bar_host.cc ('k') | chrome/browser/ui/views/find_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698