summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/panels/display_settings_provider.h
diff options
context:
space:
mode:
authorjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-11 20:09:28 +0000
committerjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-11 20:09:28 +0000
commit8d621b39610e1f15f3c41a14254fa6ce4e67f60b (patch)
tree8db2d8b60fb9a38ead75350aeb5cd838ea49c4b0 /chrome/browser/ui/panels/display_settings_provider.h
parent04be1128ebd1075a622fad990dfff2d8b811c912 (diff)
downloadchromium_src-8d621b39610e1f15f3c41a14254fa6ce4e67f60b.zip
chromium_src-8d621b39610e1f15f3c41a14254fa6ce4e67f60b.tar.gz
chromium_src-8d621b39610e1f15f3c41a14254fa6ce4e67f60b.tar.bz2
Make sure that the panel cannot be dragged or resized under any top-aligned menu or taskbar.
This is platform-independent work that adds constraint logic to drag and resize controller. For Windows, we do not have problem for panel resizing since we rely on system resizing that does the correct thing. Also the MacOS specific fix for dragging issue is not longer needed. In addition, I addressed some more feedbacks from http://codereview.chromium.org/10356007/. BUG=122669 TEST=new tests Review URL: https://chromiumcodereview.appspot.com/10389048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136645 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/panels/display_settings_provider.h')
-rw-r--r--chrome/browser/ui/panels/display_settings_provider.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/browser/ui/panels/display_settings_provider.h b/chrome/browser/ui/panels/display_settings_provider.h
index f7fcce6..8354eea 100644
--- a/chrome/browser/ui/panels/display_settings_provider.h
+++ b/chrome/browser/ui/panels/display_settings_provider.h
@@ -61,9 +61,26 @@ class DisplaySettingsProvider {
void AddFullScreenObserver(FullScreenObserver* observer);
void RemoveFullScreenObserver(FullScreenObserver* observer);
+ //
+ // Primary Screen Area:
+ // This is the screen area of the primary monitor.
+ // Work Area:
+ // This is the standard work area returned by the system. It is usually
+ // computed by the system as the part of primary screen area that excludes
+ // top-most system menu or bars aligned to the screen edges.
+ // Display Area:
+ // This is the area further trimmed down for the purpose of showing panels.
+ // On Windows, we also exclude auto-hiding taskbars. For all other
+ // platforms, it is same as work area.
+ //
+
// Returns the bounds of the display area.
gfx::Rect GetDisplayArea();
+ // Returns the bounds of the primary screen area. This can be overridden by
+ // the testing code.
+ virtual gfx::Rect GetPrimaryScreenArea() const;
+
// Invoked when the display settings has changed, due to any of the following:
// 1) screen resolution changes
// 2) the thickness of desktop bar changes