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

Unified Diff: chrome/browser/ui/views/dropdown_bar_host_win.cc

Issue 12334073: Remove WebContents methods that duplicate WebContentsView methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/dropdown_bar_host_win.cc
diff --git a/chrome/browser/ui/views/dropdown_bar_host_win.cc b/chrome/browser/ui/views/dropdown_bar_host_win.cc
index f636a78f910ee46f8264c0bbd319731003b1342f..04bb65d7e8fe313825f36880c09e34379c8cf8d7 100644
--- a/chrome/browser/ui/views/dropdown_bar_host_win.cc
+++ b/chrome/browser/ui/views/dropdown_bar_host_win.cc
@@ -19,7 +19,7 @@ using content::WebContents;
NativeWebKeyboardEvent DropdownBarHost::GetKeyboardEvent(
const WebContents* contents,
const ui::KeyEvent& key_event) {
- HWND hwnd = contents->GetContentNativeView();
+ HWND hwnd = contents->GetView()->GetContentNativeView();
WORD key = WindowsKeyCodeForKeyboardCode(key_event.key_code());
MSG msg = { hwnd, key_event.native_event().message, key, 0 };

Powered by Google App Engine
This is Rietveld 408576698