summaryrefslogtreecommitdiffstats
path: root/chrome/views/native_control.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-21 20:51:20 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-21 20:51:20 +0000
commita0dde12f2e4f92f1a59885c45cfecd10dbfdfdfd (patch)
treed8283a980977f11c43542016d57f698d3a83b73d /chrome/views/native_control.cc
parent933cc00eb856db684b9e64b7486ca20edbb2c3ea (diff)
downloadchromium_src-a0dde12f2e4f92f1a59885c45cfecd10dbfdfdfd.zip
chromium_src-a0dde12f2e4f92f1a59885c45cfecd10dbfdfdfd.tar.gz
chromium_src-a0dde12f2e4f92f1a59885c45cfecd10dbfdfdfd.tar.bz2
Rename Container->Widget
R=erg review url = http://codereview.chromium.org/11348/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5849 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/native_control.cc')
-rw-r--r--chrome/views/native_control.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/views/native_control.cc b/chrome/views/native_control.cc
index fd81b4f..4236e27 100644
--- a/chrome/views/native_control.cc
+++ b/chrome/views/native_control.cc
@@ -11,11 +11,11 @@
#include "base/win_util.h"
#include "chrome/common/l10n_util.h"
+#include "chrome/views/background.h"
#include "chrome/views/border.h"
-#include "chrome/views/container.h"
#include "chrome/views/focus_manager.h"
#include "chrome/views/hwnd_view.h"
-#include "chrome/views/background.h"
+#include "chrome/views/widget.h"
#include "base/gfx/native_theme.h"
namespace views {
@@ -36,7 +36,7 @@ class NativeControlContainer : public CWindowImpl<NativeControlContainer,
explicit NativeControlContainer(NativeControl* parent) : parent_(parent),
control_(NULL) {
- Create(parent->GetContainer()->GetHWND());
+ Create(parent->GetWidget()->GetHWND());
::ShowWindow(m_hWnd, SW_SHOW);
}
@@ -199,14 +199,14 @@ void NativeControl::ValidateNativeControl() {
void NativeControl::ViewHierarchyChanged(bool is_add, View *parent,
View *child) {
- if (is_add && GetContainer()) {
+ if (is_add && GetWidget()) {
ValidateNativeControl();
Layout();
}
}
void NativeControl::Layout() {
- if (!container_ && GetContainer())
+ if (!container_ && GetWidget())
ValidateNativeControl();
if (hwnd_view_) {