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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views.cc

Issue 239183007: Merge 262965 "Linux: App windows with frame: none now have resiz..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1916/src/
Patch Set: Created 6 years, 8 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/ui/views/apps/shaped_app_window_targeter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
===================================================================
--- chrome/browser/ui/views/apps/chrome_native_app_window_views.cc (revision 264053)
+++ chrome/browser/ui/views/apps/chrome_native_app_window_views.cc (working copy)
@@ -332,11 +332,14 @@
}
void ChromeNativeAppWindowViews::InstallEasyResizeTargeterOnContainer() const {
- aura::Window* root_window = widget()->GetNativeWindow()->GetRootWindow();
+ aura::Window* window = widget()->GetNativeWindow();
gfx::Insets inset(kResizeInsideBoundsSize, kResizeInsideBoundsSize,
kResizeInsideBoundsSize, kResizeInsideBoundsSize);
- root_window->SetEventTargeter(scoped_ptr<ui::EventTargeter>(
- new wm::EasyResizeWindowTargeter(root_window, inset, inset)));
+ // Add the EasyResizeWindowTargeter on the window, not its root window. The
+ // root window does not have a delegate, which is needed to handle the event
+ // in Linux.
+ window->SetEventTargeter(scoped_ptr<ui::EventTargeter>(
+ new wm::EasyResizeWindowTargeter(window, inset, inset)));
}
apps::AppWindowFrameView*
@@ -671,7 +674,7 @@
extensions::ExtensionKeybindingRegistry::PLATFORM_APPS_ONLY,
NULL));
-#if defined(OS_WIN)
+#if !defined(OS_CHROMEOS)
if ((IsFrameless() || has_frame_color_) &&
chrome::GetHostDesktopTypeForNativeWindow(widget()->GetNativeWindow()) !=
chrome::HOST_DESKTOP_TYPE_ASH) {
« no previous file with comments | « no previous file | chrome/browser/ui/views/apps/shaped_app_window_targeter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698