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

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

Issue 6487002: Add a new constructor to KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/renderer_host/render_view_host.h" 7 #include "chrome/browser/renderer_host/render_view_host.h"
8 #include "chrome/browser/tab_contents/tab_contents.h" 8 #include "chrome/browser/tab_contents/tab_contents.h"
9 #include "chrome/browser/tab_contents/tab_contents_view.h" 9 #include "chrome/browser/tab_contents/tab_contents_view.h"
10 #include "chrome/browser/ui/find_bar/find_bar_controller.h" 10 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
(...skipping 13 matching lines...) Expand all
24 ::GetWindowRect( 24 ::GetWindowRect(
25 find_bar_controller_-> 25 find_bar_controller_->
26 tab_contents()->tab_contents()->view()->GetNativeView(), 26 tab_contents()->tab_contents()->view()->GetNativeView(),
27 &webcontents_rect); 27 &webcontents_rect);
28 avoid_overlapping_rect->Offset(0, webcontents_rect.top - frame_rect.top); 28 avoid_overlapping_rect->Offset(0, webcontents_rect.top - frame_rect.top);
29 } 29 }
30 30
31 bool FindBarHost::ShouldForwardKeyEventToWebpageNative( 31 bool FindBarHost::ShouldForwardKeyEventToWebpageNative(
32 const views::KeyEvent& key_event) { 32 const views::KeyEvent& key_event) {
33 // We specifically ignore WM_CHAR. See http://crbug.com/10509. 33 // We specifically ignore WM_CHAR. See http://crbug.com/10509.
34 return key_event.message() == WM_KEYDOWN || key_event.message() == WM_KEYUP; 34 return key_event.native_event().message == WM_KEYDOWN ||
35 key_event.native_event().message == WM_KEYUP;
35 } 36 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_host_win.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698