diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-24 15:57:31 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-24 15:57:31 +0000 |
commit | f5a38d53a017fb3f2966028c606608e8e275e398 (patch) | |
tree | f9bc45d733fe98609d156e06cfa49338aeb689b3 /views/widget/widget.cc | |
parent | b0e688e49baa2d22ec306b9aecbe212e4bb8b32c (diff) | |
download | chromium_src-f5a38d53a017fb3f2966028c606608e8e275e398.zip chromium_src-f5a38d53a017fb3f2966028c606608e8e275e398.tar.gz chromium_src-f5a38d53a017fb3f2966028c606608e8e275e398.tar.bz2 |
Convert some WidgetWin construction to use CreateParams.
BUG=72040
TEST=none
R=erg@chromium.org,estade@chromium.org
Review URL: http://codereview.chromium.org/6719006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79279 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/widget.cc')
-rw-r--r-- | views/widget/widget.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/views/widget/widget.cc b/views/widget/widget.cc index 62f9cf9..4963ce6 100644 --- a/views/widget/widget.cc +++ b/views/widget/widget.cc @@ -21,6 +21,7 @@ Widget::CreateParams::CreateParams() : type(TYPE_TOPLEVEL), transparent(false), accept_events(true), + can_activate(true), delete_on_destroy(true), mirror_origin_in_rtl(true), has_dropshadow(false), @@ -31,6 +32,7 @@ Widget::CreateParams::CreateParams(Type type) : type(type), transparent(false), accept_events(true), + can_activate(type != TYPE_POPUP && type != TYPE_MENU), delete_on_destroy(true), mirror_origin_in_rtl(true), has_dropshadow(false), @@ -131,8 +133,12 @@ void Widget::SetBounds(const gfx::Rect& bounds) { native_widget_->SetBounds(bounds); } -void Widget::MoveAbove(Widget* widget) { - native_widget_->MoveAbove(widget); +void Widget::MoveAboveWidget(Widget* widget) { + native_widget_->MoveAbove(widget->GetNativeView()); +} + +void Widget::MoveAbove(gfx::NativeView native_view) { + native_widget_->MoveAbove(native_view); } void Widget::SetShape(gfx::NativeRegion shape) { |