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

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

Issue 6204002: Carnitas: Remove chrome/browser/views, update references. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yay, more syncing Created 9 years, 11 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) 2006-2009 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/views/dropdown_bar_host.h" 5 #include "chrome/browser/ui/views/dropdown_bar_host.h"
6 6
7 #include "app/keyboard_code_conversion_win.h" 7 #include "app/keyboard_code_conversion_win.h"
8 #include "chrome/browser/renderer_host/render_view_host.h" 8 #include "chrome/browser/renderer_host/render_view_host.h"
9 #include "chrome/browser/tab_contents/tab_contents.h" 9 #include "chrome/browser/tab_contents/tab_contents.h"
10 #include "chrome/browser/tab_contents/tab_contents_view.h" 10 #include "chrome/browser/tab_contents/tab_contents_view.h"
11 #include "chrome/browser/ui/find_bar/find_bar_controller.h" 11 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
12 #include "chrome/browser/views/frame/browser_view.h" 12 #include "chrome/browser/ui/views/frame/browser_view.h"
13 #include "views/controls/scrollbar/native_scroll_bar.h" 13 #include "views/controls/scrollbar/native_scroll_bar.h"
14 #include "views/widget/widget_win.h" 14 #include "views/widget/widget_win.h"
15 15
16 NativeWebKeyboardEvent DropdownBarHost::GetKeyboardEvent( 16 NativeWebKeyboardEvent DropdownBarHost::GetKeyboardEvent(
17 const TabContents* contents, 17 const TabContents* contents,
18 const views::KeyEvent& key_event) { 18 const views::KeyEvent& key_event) {
19 HWND hwnd = contents->GetContentNativeView(); 19 HWND hwnd = contents->GetContentNativeView();
20 WORD key = WindowsKeyCodeForKeyboardCode(key_event.GetKeyCode()); 20 WORD key = WindowsKeyCodeForKeyboardCode(key_event.GetKeyCode());
21 21
22 return NativeWebKeyboardEvent(hwnd, key_event.message(), key, 0); 22 return NativeWebKeyboardEvent(hwnd, key_event.message(), key, 0);
(...skipping 18 matching lines...) Expand all
41 if (!window_rect.IsEmpty()) 41 if (!window_rect.IsEmpty())
42 swp_flags |= SWP_NOSIZE; 42 swp_flags |= SWP_NOSIZE;
43 if (no_redraw) 43 if (no_redraw)
44 swp_flags |= SWP_NOREDRAW; 44 swp_flags |= SWP_NOREDRAW;
45 if (!host_->IsVisible()) 45 if (!host_->IsVisible())
46 swp_flags |= SWP_SHOWWINDOW; 46 swp_flags |= SWP_SHOWWINDOW;
47 47
48 ::SetWindowPos(host_->GetNativeView(), HWND_TOP, new_pos.x(), new_pos.y(), 48 ::SetWindowPos(host_->GetNativeView(), HWND_TOP, new_pos.x(), new_pos.y(),
49 new_pos.width(), new_pos.height(), swp_flags); 49 new_pos.width(), new_pos.height(), swp_flags);
50 } 50 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_host_gtk.cc ('k') | chrome/browser/ui/views/edit_search_engine_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698