summaryrefslogtreecommitdiffstats
path: root/chrome/views/custom_frame_window.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-22 04:34:39 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-22 04:34:39 +0000
commiteb1d38270b666c548b9f537fa97e5ac8e411364a (patch)
tree7686ddf95d7ca474d209d77738ba8990a826441d /chrome/views/custom_frame_window.h
parentfb6ab40ad779b56fbb45df03747540e8948f15ba (diff)
downloadchromium_src-eb1d38270b666c548b9f537fa97e5ac8e411364a.zip
chromium_src-eb1d38270b666c548b9f537fa97e5ac8e411364a.tar.gz
chromium_src-eb1d38270b666c548b9f537fa97e5ac8e411364a.tar.bz2
forgot these files
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/custom_frame_window.h')
-rw-r--r--chrome/views/custom_frame_window.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/views/custom_frame_window.h b/chrome/views/custom_frame_window.h
index ed03230..0c2b7f9 100644
--- a/chrome/views/custom_frame_window.h
+++ b/chrome/views/custom_frame_window.h
@@ -63,8 +63,16 @@ class CustomFrameWindow : public Window {
virtual LRESULT OnSetIcon(UINT size_type, HICON new_icon);
virtual LRESULT OnSetText(const wchar_t* text);
virtual void OnSize(UINT param, const CSize& size);
+ virtual void OnSysCommand(UINT notification_code, CPoint click);
private:
+ class ScopedRedrawLock;
+
+ // Lock or unlock the window from being able to redraw itself in response to
+ // updates to its invalid region.
+ void LockUpdates();
+ void UnlockUpdates();
+
// Resets the window region.
void ResetWindowRegion();
@@ -78,6 +86,9 @@ class CustomFrameWindow : public Window {
// True if this window is the active top level window.
bool is_active_;
+ // True if updates to this window are currently locked.
+ bool lock_updates_;
+
// Static resource initialization.
static void InitClass();
enum ResizeCursor {