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

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

Issue 10867096: Make HWNDMessageHandler subclass WindowImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_frame_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/external_tab_container_win.cc
===================================================================
--- chrome/browser/ui/views/external_tab_container_win.cc (revision 153741)
+++ chrome/browser/ui/views/external_tab_container_win.cc (working copy)
@@ -66,6 +66,7 @@
#include "ui/base/view_prop.h"
#include "ui/views/controls/webview/webview.h"
#include "ui/views/layout/grid_layout.h"
+#include "ui/views/win/hwnd_message_handler.h"
using content::BrowserThread;
using content::LoadNotificationDetails;
@@ -173,7 +174,7 @@
handle_top_level_requests_ = handle_top_level_requests;
route_all_top_level_navigations_ = route_all_top_level_navigations;
- set_window_style(WS_POPUP | WS_CLIPCHILDREN);
+ GetMessageHandler()->set_window_style(WS_POPUP | WS_CLIPCHILDREN);
views::Widget::InitParams params(views::Widget::InitParams::TYPE_POPUP);
params.bounds = bounds;
@@ -593,7 +594,7 @@
}
gfx::NativeWindow ExternalTabContainerWin::GetFrameNativeWindow() {
- return hwnd();
+ return GetNativeView();
}
bool ExternalTabContainerWin::TakeFocus(content::WebContents* source,
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_frame_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698