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

Unified Diff: chrome/browser/views/extensions/extension_popup.cc

Issue 307030: New widget factories & methods to support desktop notifications, GTK stubs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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/views/status_bubble_views.cc » ('j') | views/widget/widget_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/extensions/extension_popup.cc
===================================================================
--- chrome/browser/views/extensions/extension_popup.cc (revision 29817)
+++ chrome/browser/views/extensions/extension_popup.cc (working copy)
@@ -16,8 +16,10 @@
#include "views/widget/root_view.h"
+using views::Widget;
+
ExtensionPopup::ExtensionPopup(ExtensionHost* host,
- views::Widget* frame,
+ Widget* frame,
const gfx::Rect& relative_to)
: BrowserBubble(host->view(), frame, gfx::Point()),
relative_to_(relative_to),
@@ -30,7 +32,9 @@
// We should see if we can unify these classes.
// |true| here means the widget is set to delete on destroy.
- border_widget_ = views::Widget::CreateTransparentPopupWidget(true);
+ border_widget_ = Widget::CreatePopupWidget(Widget::Transparent,
+ Widget::NotAcceptEvents,
+ Widget::DeleteOnDestroy);
gfx::NativeView native_window = frame->GetNativeView();
border_widget_->Init(native_window, bounds());
border_ = new BubbleBorder;
« no previous file with comments | « no previous file | chrome/browser/views/status_bubble_views.cc » ('j') | views/widget/widget_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698