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

Unified Diff: chrome/browser/ui/views/frame/browser_window_factory.cc

Issue 2714063003: views: don't try to SetProperty on NSWindows (Closed)
Patch Set: Created 3 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_window_factory.cc
diff --git a/chrome/browser/ui/views/frame/browser_window_factory.cc b/chrome/browser/ui/views/frame/browser_window_factory.cc
index f8b524f088e5977a47f7ed84a39a9a552fed907f..7fafcdee9c2030ed4381ad3751d26a7e7b696fb4 100644
--- a/chrome/browser/ui/views/frame/browser_window_factory.cc
+++ b/chrome/browser/ui/views/frame/browser_window_factory.cc
@@ -21,8 +21,12 @@ BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser,
(new BrowserFrame(view))->InitBrowserFrame();
view->GetWidget()->non_client_view()->SetAccessibleName(
l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
- // For now, all browser windows are true.
+
+#if defined(USE_AURA)
+ // For now, all browser windows are true. This only works when USE_AURA
+ // because it requires gfx::NativeWindow to be an aura::Window*.
view->GetWidget()->GetNativeWindow()->SetProperty(
sky 2017/02/24 18:35:16 An alternative is to call view->GetWidget()->SetNa
aura::client::kCreatedByUserGesture, user_gesture);
+#endif
return view;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698