diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-22 20:15:05 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-22 20:15:05 +0000 |
commit | 959f02f686125777e7a744a81fbfcc240e648e54 (patch) | |
tree | f84a0fad2889cd7adcc798fcc204098fdcac6a89 /chrome/browser/chromeos/browser_extender.h | |
parent | a3a8fb6d3692cf61db8cfed20e15e83916e6602b (diff) | |
download | chromium_src-959f02f686125777e7a744a81fbfcc240e648e54.zip chromium_src-959f02f686125777e7a744a81fbfcc240e648e54.tar.gz chromium_src-959f02f686125777e7a744a81fbfcc240e648e54.tar.bz2 |
Enable System Context Menu for linux views.
* Chagned WindowGtk to pass through right click mouse event for
HTCAPTION so that ContextMenuController on Frame/Tab view works.
* Added ContetMenuController to NonClientView.
* Added "PointIsWithinWindowCaption to BrowserView to exclude chromeos specific components from Caption area.
Fix a minor bug in NonClientView
* GetViewForPoint was using wrong point. This wasn't causing any issue as the frame_view's origin was (0, 0)
BUG=None
TEST=run chromeos build and right click frame view and verify that you get system menu.
Review URL: http://codereview.chromium.org/303014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29807 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/browser_extender.h')
-rw-r--r-- | chrome/browser/chromeos/browser_extender.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/chromeos/browser_extender.h b/chrome/browser/chromeos/browser_extender.h index d1ae11a..3cc3d5d 100644 --- a/chrome/browser/chromeos/browser_extender.h +++ b/chrome/browser/chromeos/browser_extender.h @@ -42,9 +42,9 @@ class BrowserExtender { // bounds for tabstip to be layed out. virtual gfx::Rect Layout(const gfx::Rect& bounds) { return bounds; } - // Tests if the given |point|, which is given in window coordinates, + // Tests if the given |point|, which is given in BrowserView coordinates, // hits any of controls. - virtual bool NonClientHitTest(const gfx::Point& point) = 0; + virtual bool NonClientHitTest(const gfx::Point& browser_view_point) = 0; // Updates the title bar (if any). virtual void UpdateTitleBar() {} |