diff options
author | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-25 22:11:49 +0000 |
---|---|---|
committer | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-25 22:11:49 +0000 |
commit | 65bd67d12cbbf73a0c7842750bd30639ddad2306 (patch) | |
tree | c498514b6a1a3d3e50b62498a09fd642cb9aa139 /chrome/views/window.h | |
parent | c62b56cde3acdd5d16896795739d7ce894c6e1a7 (diff) | |
download | chromium_src-65bd67d12cbbf73a0c7842750bd30639ddad2306.zip chromium_src-65bd67d12cbbf73a0c7842750bd30639ddad2306.tar.gz chromium_src-65bd67d12cbbf73a0c7842750bd30639ddad2306.tar.bz2 |
Make the AeroGlassFrame better:
- client edge rendering is now pixel-perfect for all BrowserTypes.
- fix NCCALCSIZE handling that was making our top-right corner less than perfectly round
- make system menu work
- remove some unnecessary functions
B=1031854
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1340 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/window.h')
-rw-r--r-- | chrome/views/window.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/views/window.h b/chrome/views/window.h index ab3e7a5..ac496bb 100644 --- a/chrome/views/window.h +++ b/chrome/views/window.h @@ -97,6 +97,9 @@ class Window : public HWNDViewContainer { // Tell the window to update its icon from the delegate. virtual void UpdateWindowIcon(); + // Executes the specified SC_command. + void ExecuteSystemMenuCommand(int command); + // The parent of this window. HWND owning_window() const { return owning_hwnd_; } @@ -150,6 +153,9 @@ class Window : public HWNDViewContainer { void set_client_view(ClientView* client_view) { client_view_ = client_view; } + // Shows the system menu at the specified screen point. + void RunSystemMenu(const CPoint& point); + // Overridden from HWNDViewContainer: virtual void OnActivate(UINT action, BOOL minimized, HWND window); virtual void OnCommand(UINT notification_code, int command_id, HWND window); @@ -157,6 +163,8 @@ class Window : public HWNDViewContainer { virtual LRESULT OnEraseBkgnd(HDC dc); virtual LRESULT OnNCActivate(BOOL active); virtual LRESULT OnNCHitTest(const CPoint& point); + virtual void OnNCLButtonDown(UINT ht_component, const CPoint& point); + virtual void OnNCRButtonDown(UINT ht_component, const CPoint& point); virtual LRESULT OnSetCursor(HWND window, UINT hittest_code, UINT message); virtual void OnSize(UINT size_param, const CSize& new_size); virtual void OnSysCommand(UINT notification_code, CPoint click); |