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

Unified Diff: views/controls/native_control.cc

Issue 114059: Refactors HWNDView, NativeViewHostGtk and NativeViewHost so that they match t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « views/controls/native_control.h ('k') | views/controls/native_control_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/native_control.cc
===================================================================
--- views/controls/native_control.cc (revision 17161)
+++ views/controls/native_control.cc (working copy)
@@ -15,7 +15,7 @@
#include "base/win_util.h"
#include "views/background.h"
#include "views/border.h"
-#include "views/controls/hwnd_view.h"
+#include "views/controls/native/native_view_host.h"
#include "views/focus/focus_manager.h"
#include "views/widget/widget.h"
#include "base/gfx/native_theme.h"
@@ -182,7 +182,7 @@
void NativeControl::ValidateNativeControl() {
if (hwnd_view_ == NULL) {
- hwnd_view_ = new HWNDView();
+ hwnd_view_ = new NativeViewHost;
AddChildView(hwnd_view_);
}
@@ -202,7 +202,7 @@
void NativeControl::ViewHierarchyChanged(bool is_add, View *parent,
View *child) {
- if (is_add && GetWidget()) {
+ if (is_add && child == this && GetWidget()) {
ValidateNativeControl();
Layout();
}
« no previous file with comments | « views/controls/native_control.h ('k') | views/controls/native_control_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698