summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/chromeos/input_method/candidate_window.cc5
-rw-r--r--chrome/browser/ui/views/dom_view_browsertest.cc8
-rw-r--r--chrome/browser/ui/views/extensions/extension_popup.cc8
-rw-r--r--chrome/browser/ui/views/frame/contents_container.cc8
-rw-r--r--chrome/browser/ui/views/notifications/balloon_view.cc13
-rw-r--r--chrome/browser/ui/views/status_bubble_views.cc9
-rw-r--r--chrome/browser/ui/views/theme_install_bubble_view.cc8
7 files changed, 26 insertions, 33 deletions
diff --git a/chrome/browser/chromeos/input_method/candidate_window.cc b/chrome/browser/chromeos/input_method/candidate_window.cc
index aacee58..14ad5be 100644
--- a/chrome/browser/chromeos/input_method/candidate_window.cc
+++ b/chrome/browser/chromeos/input_method/candidate_window.cc
@@ -1286,10 +1286,7 @@ bool CandidateWindowController::Impl::Init() {
void CandidateWindowController::Impl::CreateView() {
// Create a non-decorated frame.
frame_.reset(views::Widget::CreatePopupWidget(
- views::Widget::NotTransparent,
- views::Widget::AcceptEvents,
- views::Widget::DeleteOnDestroy,
- views::Widget::MirrorOriginInRTL));
+ views::Widget::CreateParams(views::Widget::CreateParams::TYPE_POPUP)));
// The size is initially zero.
frame_->Init(NULL, gfx::Rect(0, 0));
diff --git a/chrome/browser/ui/views/dom_view_browsertest.cc b/chrome/browser/ui/views/dom_view_browsertest.cc
index 1e7ed8d7..a4e77c1 100644
--- a/chrome/browser/ui/views/dom_view_browsertest.cc
+++ b/chrome/browser/ui/views/dom_view_browsertest.cc
@@ -14,11 +14,9 @@ using namespace views;
class DOMViewTest : public InProcessBrowserTest {
public:
Widget* CreatePopupWindow() {
- Widget* window =
- Widget::CreatePopupWidget(Widget::NotTransparent,
- Widget::AcceptEvents,
- Widget::DeleteOnDestroy,
- Widget::DontMirrorOriginInRTL);
+ Widget::CreateParams params(Widget::CreateParams::TYPE_POPUP);
+ params.mirror_origin_in_rtl = false;
+ Widget* window = Widget::CreatePopupWidget(params);
window->Init(NULL, gfx::Rect(0, 0, 400, 400));
return window;
}
diff --git a/chrome/browser/ui/views/extensions/extension_popup.cc b/chrome/browser/ui/views/extensions/extension_popup.cc
index 2f8b1a2..da3f9a1 100644
--- a/chrome/browser/ui/views/extensions/extension_popup.cc
+++ b/chrome/browser/ui/views/extensions/extension_popup.cc
@@ -99,10 +99,10 @@ ExtensionPopup::ExtensionPopup(ExtensionHost* host,
static_cast<views::WidgetGtk*>(border_widget_)->MakeTransparent();
static_cast<views::WidgetGtk*>(border_widget_)->make_transient_to_parent();
#else
- border_widget_ = Widget::CreatePopupWidget(Widget::Transparent,
- Widget::NotAcceptEvents,
- Widget::DeleteOnDestroy,
- Widget::MirrorOriginInRTL);
+ Widget::CreateParams params(Widget::CreateParams::TYPE_POPUP);
+ params.transparent = true;
+ params.accept_events = false;
+ border_widget_ = Widget::CreatePopupWidget(params);
#endif
border_widget_->Init(native_window, bounds());
#if defined(OS_CHROMEOS)
diff --git a/chrome/browser/ui/views/frame/contents_container.cc b/chrome/browser/ui/views/frame/contents_container.cc
index f35ac74..9c08d54 100644
--- a/chrome/browser/ui/views/frame/contents_container.cc
+++ b/chrome/browser/ui/views/frame/contents_container.cc
@@ -151,10 +151,10 @@ void ContentsContainer::Layout() {
void ContentsContainer::CreateOverlay(int initial_opacity) {
DCHECK(!active_overlay_);
- active_overlay_ = views::Widget::CreatePopupWidget(views::Widget::Transparent,
- views::Widget::NotAcceptEvents,
- views::Widget::DeleteOnDestroy,
- views::Widget::MirrorOriginInRTL);
+ views::Widget::CreateParams params(views::Widget::CreateParams::TYPE_POPUP);
+ params.transparent = true;
+ params.accept_events = false;
+ active_overlay_ = views::Widget::CreatePopupWidget(params);
active_overlay_->SetOpacity(initial_opacity);
gfx::Point screen_origin;
views::View::ConvertPointToScreen(active_, &screen_origin);
diff --git a/chrome/browser/ui/views/notifications/balloon_view.cc b/chrome/browser/ui/views/notifications/balloon_view.cc
index 26bee52..a4aba18 100644
--- a/chrome/browser/ui/views/notifications/balloon_view.cc
+++ b/chrome/browser/ui/views/notifications/balloon_view.cc
@@ -316,19 +316,16 @@ void BalloonViewImpl::Show(Balloon* balloon) {
gfx::Rect contents_rect = GetContentsRectangle();
html_contents_.reset(new BalloonViewHost(balloon));
html_contents_->SetPreferredSize(gfx::Size(10000, 10000));
- html_container_ = Widget::CreatePopupWidget(Widget::NotTransparent,
- Widget::AcceptEvents,
- Widget::DeleteOnDestroy,
- Widget::DontMirrorOriginInRTL);
+ Widget::CreateParams params(Widget::CreateParams::TYPE_POPUP);
+ params.mirror_origin_in_rtl = false;
+ html_container_ = Widget::CreatePopupWidget(params);
html_container_->SetAlwaysOnTop(true);
html_container_->Init(NULL, contents_rect);
html_container_->SetContentsView(html_contents_->view());
gfx::Rect balloon_rect(x(), y(), GetTotalWidth(), GetTotalHeight());
- frame_container_ = Widget::CreatePopupWidget(Widget::Transparent,
- Widget::AcceptEvents,
- Widget::DeleteOnDestroy,
- Widget::DontMirrorOriginInRTL);
+ params.transparent = true;
+ frame_container_ = Widget::CreatePopupWidget(params);
frame_container_->set_widget_delegate(this);
frame_container_->SetAlwaysOnTop(true);
frame_container_->Init(NULL, balloon_rect);
diff --git a/chrome/browser/ui/views/status_bubble_views.cc b/chrome/browser/ui/views/status_bubble_views.cc
index f7d2f97..398ae3e 100644
--- a/chrome/browser/ui/views/status_bubble_views.cc
+++ b/chrome/browser/ui/views/status_bubble_views.cc
@@ -557,10 +557,11 @@ StatusBubbleViews::~StatusBubbleViews() {
void StatusBubbleViews::Init() {
if (!popup_.get()) {
- popup_.reset(Widget::CreatePopupWidget(Widget::Transparent,
- Widget::NotAcceptEvents,
- Widget::NotDeleteOnDestroy,
- Widget::MirrorOriginInRTL));
+ Widget::CreateParams params(Widget::CreateParams::TYPE_POPUP);
+ params.transparent = true;
+ params.accept_events = false;
+ params.delete_on_destroy = false;
+ popup_.reset(Widget::CreatePopupWidget(params));
views::Widget* frame = base_view_->GetWidget();
if (!view_)
view_ = new StatusView(this, popup_.get(), frame->GetThemeProvider());
diff --git a/chrome/browser/ui/views/theme_install_bubble_view.cc b/chrome/browser/ui/views/theme_install_bubble_view.cc
index 7c0be9f..ddb2016 100644
--- a/chrome/browser/ui/views/theme_install_bubble_view.cc
+++ b/chrome/browser/ui/views/theme_install_bubble_view.cc
@@ -71,10 +71,10 @@ ThemeInstallBubbleView::ThemeInstallBubbleView(TabContents* tab_contents)
NotificationService::AllSources());
gfx::Rect rc(0, 0, 0, 0);
- popup_ = views::Widget::CreatePopupWidget(views::Widget::Transparent,
- views::Widget::NotAcceptEvents,
- views::Widget::DeleteOnDestroy,
- views::Widget::MirrorOriginInRTL);
+ views::Widget::CreateParams params(views::Widget::CreateParams::TYPE_POPUP);
+ params.transparent = true;
+ params.accept_events = false;
+ popup_ = views::Widget::CreatePopupWidget(params);
popup_->SetOpacity(0xCC);
popup_->Init(tab_contents->GetNativeView(), rc);
popup_->SetContentsView(this);