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

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

Issue 9817025: Ash: Use right edge of screen to scroll maximized windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « ash/wm/window_util.cc ('k') | 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_frame_aura.cc
diff --git a/chrome/browser/ui/views/frame/browser_frame_aura.cc b/chrome/browser/ui/views/frame/browser_frame_aura.cc
index e0d1993d6092fe2821845392569af0240fbde70c..24eea1a6189f77c80ec7344970891f3194ee7196 100644
--- a/chrome/browser/ui/views/frame/browser_frame_aura.cc
+++ b/chrome/browser/ui/views/frame/browser_frame_aura.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/views/frame/browser_frame_aura.h"
+#include "ash/wm/frame_painter.h"
+#include "ash/wm/window_util.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/system_menu_model_delegate.h"
@@ -36,6 +38,15 @@ class BrowserFrameAura::WindowPropertyWatcher : public aura::WindowObserver {
if (key != aura::client::kShowStateKey)
return;
+ // Maximized windows don't want resize handles overlapping the content area,
+ // because when the user moves the cursor to the right screen edge we want
+ // them to be able to hit the scroll bar.
+ window->SetHitTestBoundsOverride(
+ ash::FramePainter::kResizeOutsideBoundsSize,
+ ash::wm::IsWindowMaximized(window) ?
+ 0 :
+ ash::FramePainter::kResizeInsideBoundsSize);
+
// Allow the frame to be replaced when maximizing an app.
if (browser_frame_->non_client_view() &&
browser_frame_aura_->browser_view()->browser()->is_app())
« no previous file with comments | « ash/wm/window_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698